Documentation ¶
Index ¶
- func RegisterService(s *grpc.Server, service *Service)
- type Config
- type Service
- func (s *Service) FetchJWTSVIDs(ctx context.Context, req *delegatedidentityv1.FetchJWTSVIDsRequest) (resp *delegatedidentityv1.FetchJWTSVIDsResponse, err error)
- func (s *Service) SubscribeToJWTBundles(_ *delegatedidentityv1.SubscribeToJWTBundlesRequest, ...) error
- func (s *Service) SubscribeToX509Bundles(_ *delegatedidentityv1.SubscribeToX509BundlesRequest, ...) error
- func (s *Service) SubscribeToX509SVIDs(req *delegatedidentityv1.SubscribeToX509SVIDsRequest, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterService ¶
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 (*Service) FetchJWTSVIDs ¶ added in v1.3.0
func (s *Service) FetchJWTSVIDs(ctx context.Context, req *delegatedidentityv1.FetchJWTSVIDsRequest) (resp *delegatedidentityv1.FetchJWTSVIDsResponse, err error)
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) SubscribeToJWTBundles ¶ added in v1.3.0
func (s *Service) SubscribeToJWTBundles(_ *delegatedidentityv1.SubscribeToJWTBundlesRequest, stream delegatedidentityv1.DelegatedIdentity_SubscribeToJWTBundlesServer) error
func (*Service) SubscribeToX509Bundles ¶
func (s *Service) SubscribeToX509Bundles(_ *delegatedidentityv1.SubscribeToX509BundlesRequest, stream delegatedidentityv1.DelegatedIdentity_SubscribeToX509BundlesServer) error
func (*Service) SubscribeToX509SVIDs ¶
func (s *Service) SubscribeToX509SVIDs(req *delegatedidentityv1.SubscribeToX509SVIDsRequest, stream delegatedidentityv1.DelegatedIdentity_SubscribeToX509SVIDsServer) error
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.