workload

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 26 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attestor added in v0.12.0

type Attestor interface {
	Attest(ctx context.Context) ([]*common.Selector, error)
}

type Config added in v0.12.0

type Config struct {
	Manager                       Manager
	Attestor                      Attestor
	AllowUnauthenticatedVerifiers bool
	AllowedForeignJWTClaims       map[string]struct{}
	TrustDomain                   spiffeid.TrustDomain
}

type Handler

type Handler struct {
	workload.UnsafeSpiffeWorkloadAPIServer
	// contains filtered or unexported fields
}

Handler implements the Workload API interface

func New added in v0.12.0

func New(c Config) *Handler

func (*Handler) FetchJWTBundles

FetchJWTBundles processes request for JWT bundles

func (*Handler) FetchJWTSVID

func (h *Handler) FetchJWTSVID(ctx context.Context, req *workload.JWTSVIDRequest) (resp *workload.JWTSVIDResponse, err error)

FetchJWTSVID processes request for a JWT-SVID. In case of multiple fetched SVIDs with same hint, the SVID that has the oldest associated entry will be returned.

func (*Handler) FetchX509Bundles added in v1.0.0

FetchX509Bundles processes request for x509 bundles

func (*Handler) FetchX509SVID

FetchX509SVID processes request for a x509 SVID. In case of multiple fetched SVIDs with same hint, the SVID that has the oldest associated entry will be returned.

func (*Handler) ValidateJWTSVID

ValidateJWTSVID processes request for JWT-SVID validation

type Manager added in v0.12.0

type Manager interface {
	SubscribeToCacheChanges(ctx context.Context, key cache.Selectors) (cache.Subscriber, error)
	MatchingRegistrationEntries(selectors []*common.Selector) []*common.RegistrationEntry
	FetchJWTSVID(ctx context.Context, entry *common.RegistrationEntry, audience []string) (*client.JWTSVID, error)
	FetchWorkloadUpdate([]*common.Selector) *cache.WorkloadUpdate
}

Jump to

Keyboard shortcuts

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