ateletauth

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package ateletauth authenticates RPCs that arrive from an atelet, for the ateapi services served only to atelet.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Caller

type Caller struct {
	PodName  string
	NodeName string
}

Caller is the verified identity of an atelet.

func Authenticate

func Authenticate(ctx context.Context, ateletSPIFFEID string) (*Caller, error)

Authenticate verifies that the RPC arrived over mTLS from an atelet presenting ateletSPIFFEID, and returns the identity that atelet's certificate asserts.

The certificate chain is already verified by the TLS layer against the pod-identity CA (see buildServerCreds in cmd/ateapi/main.go), so the extensions read here are trustworthy: only the pod-identity signer can mint a certificate carrying a given pod's node name.

Directories

Path Synopsis
Package ateletauthtest builds the peer contexts that the ateapi services served only to atelet authenticate against.
Package ateletauthtest builds the peer contexts that the ateapi services served only to atelet authenticate against.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL