vaulthelper

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthJwt added in v0.3.0

func AuthJwt(client *api.Client, mount string, role string, jwt string) (*api.Secret, error)

func GetVaultApiClient

func GetVaultApiClient() (*api.Client, error)

func PrintVaultToken added in v0.5.0

func PrintVaultToken(token string)

func ReadKv2SecretsEngineGeneric added in v0.4.0

func ReadKv2SecretsEngineGeneric(client *api.Client, mountPath string, secretPath string, attributeMap map[string]string) (map[string]string, error)

func SetVaultTokenFromEnvOrHandler added in v0.3.0

func SetVaultTokenFromEnvOrHandler(client *api.Client) error

Types

type AdSecretsEngineResponse

type AdSecretsEngineResponse struct {
	Username        string
	CurrentPassword string
	LastPassword    string
}

func ReadAdSecretsEngine

func ReadAdSecretsEngine(client *api.Client, rolename string, vaultpath string) (*AdSecretsEngineResponse, error)

type AwsStsSecretsEngineResponse

type AwsStsSecretsEngineResponse struct {
	AccessKey     string
	SecretKey     string
	SecurityToken string
}

func ReadAwsStsSecretsEngine

func ReadAwsStsSecretsEngine(client *api.Client, mount string, role string, rolearn string, ttl string) (*AwsStsSecretsEngineResponse, error)

func (*AwsStsSecretsEngineResponse) IsPopulated

func (r *AwsStsSecretsEngineResponse) IsPopulated() bool

type AzureSecretsEngineResponse added in v0.3.0

type AzureSecretsEngineResponse struct {
	ClientId     string
	ClientSecret string
}

func ReadAzureSecretsEngine added in v0.3.0

func ReadAzureSecretsEngine(client *api.Client, mount string, role string) (*AzureSecretsEngineResponse, error)

func (*AzureSecretsEngineResponse) IsPopulated added in v0.3.0

func (r *AzureSecretsEngineResponse) IsPopulated() bool

type Kv2SecretsEngineUserPassResponse added in v0.3.0

type Kv2SecretsEngineUserPassResponse struct {
	Username string
	Password string
}

func ReadKv2SecretsEngineUserPass added in v0.3.0

func ReadKv2SecretsEngineUserPass(client *api.Client, mountPath string, secretPath string, attributeMap map[string]string) (*Kv2SecretsEngineUserPassResponse, error)

Jump to

Keyboard shortcuts

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