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

package ocikms

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

Copyright © 2019, Oracle and/or its affiliates.

Index

Package Files

ocikms.go

Constants

const (
    // OCI KMS key ID to use for encryption and decryption
    EnvOCIKMSSealKeyID = "VAULT_OCIKMS_SEAL_KEY_ID"
    // OCI KMS crypto endpoint to use for encryption and decryption
    EnvOCIKMSCryptoEndpoint = "VAULT_OCIKMS_CRYPTO_ENDPOINT"
    // OCI KMS management endpoint to manage keys
    EnvOCIKMSManagementEndpoint = "VAULT_OCIKMS_MANAGEMENT_ENDPOINT"
    // Maximum number of retries
    KMSMaximumNumberOfRetries = 5
    // keyID config
    KMSConfigKeyID = "key_id"
    // cryptoEndpoint config
    KMSConfigCryptoEndpoint = "crypto_endpoint"
    // managementEndpoint config
    KMSConfigManagementEndpoint = "management_endpoint"
    // authTypeAPIKey config
    KMSConfigAuthTypeAPIKey = "auth_type_api_key"
)

type OCIKMSMechanism Uses

type OCIKMSMechanism uint32

OCIKMSMechanism is the method used to encrypt/decrypt in auto unseal process

type OCIKMSSeal Uses

type OCIKMSSeal struct {
    // contains filtered or unexported fields
}

func NewSeal Uses

func NewSeal(logger log.Logger) *OCIKMSSeal

NewSeal creates a new OCIKMSSeal seal with the provided logger

func (*OCIKMSSeal) Decrypt Uses

func (k *OCIKMSSeal) Decrypt(ctx context.Context, in *physical.EncryptedBlobInfo) ([]byte, error)

func (*OCIKMSSeal) Encrypt Uses

func (k *OCIKMSSeal) Encrypt(ctx context.Context, plaintext []byte) (*physical.EncryptedBlobInfo, error)

func (*OCIKMSSeal) Finalize Uses

func (k *OCIKMSSeal) Finalize(context.Context) error

func (*OCIKMSSeal) Init Uses

func (k *OCIKMSSeal) Init(context.Context) error

func (*OCIKMSSeal) KeyID Uses

func (k *OCIKMSSeal) KeyID() string

func (*OCIKMSSeal) SealType Uses

func (k *OCIKMSSeal) SealType() string

func (*OCIKMSSeal) SetConfig Uses

func (k *OCIKMSSeal) SetConfig(config map[string]string) (map[string]string, error)

Package ocikms imports 16 packages (graph) and is imported by 1 packages. Updated 2019-09-06. Refresh now. Tools for package owners.