vaultclient

package
v2.0.0-...-f3fe0fa Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

View Source
const SSHPrivateKey = "id_rsa"

SSHPrivateKey is the name of the output file with the the SSH private key (think: ssh -i id_rsa ....).

View Source
const SSHPublicKey = "id_rsa.pub"

SSHPublicKey is the corresponding public key, used for signing.

View Source
const SecretsServicePathV1 = "/secret/application-config/services/"
View Source
const SecretsServicePathV2 = "/kv/data/application-config/services/"

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSSTSCredential

type AWSSTSCredential struct {
	AccessKey    string
	SecretKey    string
	SessionToken string
}

type Authenticator

type Authenticator interface {
	Authenticate() (*util.WrappedToken, error)
}

func NewAuthenticator

func NewAuthenticator(client VaultClient, cliFlags util.CliFlags) (Authenticator, error)

type VaultClient

type VaultClient interface {
	VerifyVaultToken(vaultToken string) (*api.Secret, error)
	Delegate() *api.Client
	FetchAWSSTSCredential(awsConfig config.AWSType, stsTTL time.Duration) (*AWSSTSCredential, *util.WrappedToken, error)
	CreateSSHCertificate(sshConfig config.SSHCertificateType) error
	RefreshVaultToken() (*api.Secret, error)
	ServiceSecretPrefix(configVersion int) string

	Address() string
	ReadWithData(string, map[string][]string) (*api.Secret, error)
	Read(string) (*api.Secret, error)
	SetToken(token string)
}

func NewVaultClient

func NewVaultClient(secretsPrefix string, clientTimeout time.Duration, clientRetries int) (VaultClient, error)

NewVaultClient constructs a new VaultClient implementation.

Directories

Path Synopsis
Package mock_vaultclient is a generated GoMock package.
Package mock_vaultclient is a generated GoMock package.

Jump to

Keyboard shortcuts

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