Documentation
¶
Index ¶
Constants ¶
View Source
const UsageInsightsPrefix = "secrets_manager"
Variables ¶
This section is empty.
Functions ¶
func KeyLabel ¶
func KeyLabel(providerID ProviderID) string
KeyLabel returns a label for the data key that is unique to the current provider and today's date.
Types ¶
type Provider ¶
type Provider interface {
Encrypt(ctx context.Context, blob []byte) ([]byte, error)
Decrypt(ctx context.Context, blob []byte) ([]byte, error)
}
Provider is a fully configured key encryption key provider used for to encrypt and decrypt data keys for envelope encryption
type ProviderConfig ¶
type ProviderConfig struct {
CurrentProvider ProviderID
AvailableProviders ProviderMap
}
type ProviderID ¶
type ProviderID string
func (ProviderID) Kind ¶
func (id ProviderID) Kind() (string, error)
Kind returns the kind of the provider, e.g. "secret_key", "aws_kms", "azure_keyvault", "google_kms", "hashicorp_vault"
type ProviderMap ¶
type ProviderMap map[ProviderID]Provider
Click to show internal directories.
Click to hide internal directories.