ateletauth

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	TrustDomain    = "cluster.local"
	Namespace      = "ate-system"
	ServiceAccount = "atelet"
)

The SPIFFE identity that atelet client certs carry, as minted by the podidentity signer (cmd/podcertcontroller/internal/podidentitysigner).

These mirror the constants the atelet dialer verifies against in cmd/ateapi/internal/controlapi/dialer.go, duplicated rather than imported so that this package does not depend on controlapi for three strings.

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) (*Caller, error)

Authenticate verifies that the RPC arrived over mTLS from an atelet, 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