Documentation ¶
Index ¶
- type AzureKeyVaultSeal
- func (v *AzureKeyVaultSeal) Decrypt(ctx context.Context, in *physical.EncryptedBlobInfo) (pt []byte, err error)
- func (v *AzureKeyVaultSeal) Encrypt(ctx context.Context, plaintext []byte) (blob *physical.EncryptedBlobInfo, err error)
- func (v *AzureKeyVaultSeal) Finalize(context.Context) error
- func (v *AzureKeyVaultSeal) Init(context.Context) error
- func (v *AzureKeyVaultSeal) KeyID() string
- func (v *AzureKeyVaultSeal) SealType() string
- func (v *AzureKeyVaultSeal) SetConfig(config map[string]string) (map[string]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureKeyVaultSeal ¶
type AzureKeyVaultSeal struct {
// contains filtered or unexported fields
}
AzureKeyVaultSeal is an auto-seal that uses Azure Key Vault for crypto operations. Azure Key Vault currently does not support keys that can encrypt long data (RSA keys). Due to this fact, we generate and AES key and wrap the key using Key Vault and store it with the data
func NewSeal ¶
func NewSeal(logger log.Logger) *AzureKeyVaultSeal
func (*AzureKeyVaultSeal) Decrypt ¶
func (v *AzureKeyVaultSeal) Decrypt(ctx context.Context, in *physical.EncryptedBlobInfo) (pt []byte, err error)
Decrypt is used to decrypt the ciphertext.
func (*AzureKeyVaultSeal) Encrypt ¶
func (v *AzureKeyVaultSeal) Encrypt(ctx context.Context, plaintext []byte) (blob *physical.EncryptedBlobInfo, err error)
Encrypt is used to encrypt using Azure Key Vault. This returns the ciphertext, and/or any errors from this call.
func (*AzureKeyVaultSeal) Finalize ¶
func (v *AzureKeyVaultSeal) Finalize(context.Context) error
Finalize is called during shutdown. This is a no-op.
func (*AzureKeyVaultSeal) Init ¶
func (v *AzureKeyVaultSeal) Init(context.Context) error
Init is called during core.Initialize. This is a no-op.
func (*AzureKeyVaultSeal) KeyID ¶
func (v *AzureKeyVaultSeal) KeyID() string
KeyID returns the last known key id.
func (*AzureKeyVaultSeal) SealType ¶
func (v *AzureKeyVaultSeal) SealType() string
SealType returns the seal type for this particular seal implementation.