Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Data ¶
type Data struct {
// SPIFFEID is the SPIFFE ID of the SVID
SPIFFEID string `json:"spiffeID,omitempty"`
// X509SVID is the PEM encoded certificate chain. MAY include intermediates,
// the leaf certificate (or SVID itself) MUST come first
X509SVID string `json:"x509SVID,omitempty"`
// X509SVIDKey is the PEM encoded PKCS#8 private key.
X509SVIDKey string `json:"x509SVIDKey,omitempty"`
// Bundle is the PEM encoded X.509 bundle for the trust domain
Bundle string `json:"bundle,omitempty"`
// FederatedBundles is the CA certificate bundles belonging to foreign trust domains that the workload should trust,
// keyed by trust domain. Bundles are in encoded in PEM format.
FederatedBundles map[string]string `json:"federatedBundles,omitempty"`
}
func SecretFromProto ¶
func SecretFromProto(req *svidstorev1.PutX509SVIDRequest) (*Data, error)
type Repository ¶
func (*Repository) Clear ¶
func (repo *Repository) Clear()
func (*Repository) GetSVIDStoreNamed ¶
func (repo *Repository) GetSVIDStoreNamed(name string) (SVIDStore, bool)
func (*Repository) SetSVIDStore ¶
func (repo *Repository) SetSVIDStore(svidStore SVIDStore)
type SVID ¶
type SVID struct {
// SPIFFE ID of the SVID.
SPIFFEID spiffeid.ID
// Certificate and intermediates
CertChain []*x509.Certificate
// Private key
PrivateKey crypto.PrivateKey
// Bundle certificates
Bundle []*x509.Certificate
// Expiration timestamp
ExpiresAt time.Time
}
type V1 ¶
type V1 struct {
plugin.Facade
svidstorev1.SVIDStorePluginClient
}
func (*V1) DeleteX509SVID ¶
type V1Unofficial ¶ added in v1.2.0
type V1Unofficial struct {
plugin.Facade
svidstorev1unofficial.SVIDStorePluginClient
}
func (*V1Unofficial) DeleteX509SVID ¶ added in v1.2.0
func (v1 *V1Unofficial) DeleteX509SVID(ctx context.Context, metadata []string) error
func (*V1Unofficial) PutX509SVID ¶ added in v1.2.0
func (v1 *V1Unofficial) PutX509SVID(ctx context.Context, x509SVID *X509SVID) error
Click to show internal directories.
Click to hide internal directories.