Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
Log logger.Logger
RequestSVIDFn RequestSVIDFn
// WriteIdentityToFile is used to write the identity private key and
// certificate chain to file. The certificate chain and private key will be
// written to the `tls.cert` and `tls.key` files respectively in the given
// directory.
WriteIdentityToFile *string
TrustAnchors trustanchors.Interface
}
type RequestSVIDFn ¶
type RequestSVIDFn func(context.Context, []byte) (*SVIDResponse, error)
RequestSVIDFn is the function type that requests SVIDs from a SPIFFE server, returning both X.509 certificates and a JWT token.
type SPIFFE ¶
type SPIFFE struct {
// contains filtered or unexported fields
}
SPIFFE is a readable/writeable store of SPIFFE SVID credentials. Used to manage workload SVIDs, and share read-only interfaces to consumers.
func (*SPIFFE) JWTSVIDSource ¶ added in v0.16.0
func (*SPIFFE) Ready ¶
Ready blocks until SPIFFE is ready or the context is done which will return the context error.
func (*SPIFFE) X509SVIDSource ¶ added in v0.16.0
type SVIDResponse ¶ added in v0.16.0
type SVIDResponse struct {
X509Certificates []*x509.Certificate
JWT *string
}
SVIDResponse represents the response from the SVID request function, containing both X.509 certificates and a JWT token.
Click to show internal directories.
Click to hide internal directories.