vault

package
v0.0.0-...-83a8c6e Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config *Config) (providers.EncryptionClient, error)

New creates an instance of the KMS client.

Types

type Config

type Config struct {
	// The names of encryption key for Vault transit communication
	KeyNames []string `json:"keyNames" yaml:"keyNames"`

	// Vault listen address, for example https://localhost:8200
	Address string `json:"address" yaml:"address"`

	// Token authentication information
	Token string `json:"token" yaml:"token"`

	// TLS certificate authentication information
	ClientCert string `json:"clientCert" yaml:"clientCert"`
	ClientKey  string `json:"clientKey" yaml:"clientKey"`

	// AppRole authentication information
	RoleID   string `json:"roleID" yaml:"roleID"`
	SecretID string `json:"secretID" yaml:"secretID"`

	// CACert is the path to a PEM-encoded CA cert file to use to verify the
	// Vault server SSL certificate.
	VaultCACert string `json:"vaultCACert" yaml:"vaultCACert"`

	// TLSServerName, if set, is used to set the SNI host when connecting via TLS.
	TLSServerName string `json:"tlsServerName" yaml:"tlsServerName"`

	// The path for transit API, default is "transit"
	TransitPath string `json:"transitPath" yaml:"transitPath"`

	// The path for auth backend, default is "auth"
	AuthPath string `json:"authPath" yaml:"authPath"`
}

Config contains the details of connection.

Jump to

Keyboard shortcuts

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