delegatedidentity

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: Apache-2.0 Imports: 25 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterService

func RegisterService(s *grpc.Server, service *Service)

RegisterService registers the delegated identity service on the provided server

Types

type Config

type Config struct {
	Log                 logrus.FieldLogger
	Metrics             telemetry.Metrics
	Manager             manager.Manager
	Attestor            workloadattestor.Attestor
	AuthorizedDelegates []string
}

type Service

type Service struct {
	delegatedidentityv1.UnsafeDelegatedIdentityServer
	// contains filtered or unexported fields
}

Service implements the delegated identity server

func New

func New(config Config) *Service

func (*Service) FetchJWTSVIDs added in v1.3.0

Attempt to attest and authorize the delegate, and then

- Take a pre-atttested set of selectors from the delegate - the PID the delegate gave us and attempt to attest that into a set of selectors

and provide a JWT SVID for those selectors.

NOTE: - If supplying a PID, the trusted delegate is responsible for ensuring the PID is valid and not recycled, from initiation of this call until the response is returned, and if it is, must discard any response provided by this call as invalid. - If supplying selectors, the trusted delegate is responsible for ensuring they are correct.

func (*Service) SubscribeToX509SVIDs

Attempt to attest and authorize the delegate, and then

- Take a pre-atttested set of selectors from the delegate - the PID the delegate gave us and attempt to attest that into a set of selectors

and provide a SVID subscription for those selectors.

NOTE: - If supplying a PID, the trusted delegate is responsible for ensuring the PID is valid and not recycled, from initiation of this call until the termination of the response stream, and if it is, must discard any stream contents provided by this call as invalid. - If supplying selectors, the trusted delegate is responsible for ensuring they are correct.

Jump to

Keyboard shortcuts

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