Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SVIDDetails ¶
type SVIDDetails struct { PrivateKey crypto.Signer Certificate *x509.Certificate Intermediates []*x509.Certificate }
SVIDDetails captures the Private Key, Root and Intermediate Certificate from the SVID provided by spire for the workload.
func GetSVID ¶
func GetSVID(ctx context.Context, client SVIDFetcher) (SVIDDetails, error)
GetSVID attempts to request an SVID from the provided SPIRE Workload API socket. If attestation succeeds and an SVID is acquired the resulting X509 key & certificate pair will be returned as well as any intermediate certificates needed to establish trust to trust domain's root.
type SVIDFetcher ¶
type SVIDFetcher interface { FetchX509Context(ctx context.Context) (*workloadapi.X509Context, error) Close() error }
SVIDFetcher uses the context to connect to the spire and get the SVID associated with the workload.
Click to show internal directories.
Click to hide internal directories.