encryption

package
v0.0.0-...-e3efe30 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL