vault: github.com/hashicorp/vault/vault/seal/azurekeyvault Index | Files

package azurekeyvault

import "github.com/hashicorp/vault/vault/seal/azurekeyvault"

Index

Package Files

azurekeyvault.go

type AzureKeyVaultSeal Uses

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 Uses

func NewSeal(logger log.Logger) *AzureKeyVaultSeal

func (*AzureKeyVaultSeal) Decrypt Uses

func (v *AzureKeyVaultSeal) Decrypt(ctx context.Context, in *physical.EncryptedBlobInfo) (pt []byte, err error)

Decrypt is used to decrypt the ciphertext.

func (*AzureKeyVaultSeal) Encrypt Uses

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 Uses

func (v *AzureKeyVaultSeal) Finalize(context.Context) error

Finalize is called during shutdown. This is a no-op.

func (*AzureKeyVaultSeal) Init Uses

func (v *AzureKeyVaultSeal) Init(context.Context) error

Init is called during core.Initialize. This is a no-op.

func (*AzureKeyVaultSeal) KeyID Uses

func (v *AzureKeyVaultSeal) KeyID() string

KeyID returns the last known key id.

func (*AzureKeyVaultSeal) SealType Uses

func (v *AzureKeyVaultSeal) SealType() string

SealType returns the seal type for this particular seal implementation.

func (*AzureKeyVaultSeal) SetConfig Uses

func (v *AzureKeyVaultSeal) SetConfig(config map[string]string) (map[string]string, error)

SetConfig sets the fields on the AzureKeyVaultSeal object based on values from the config parameter.

Order of precedence: * Environment variable * Value from Vault configuration file * Managed Service Identity for instance

Package azurekeyvault imports 18 packages (graph) and is imported by 3 packages. Updated 2019-04-23. Refresh now. Tools for package owners.