Documentation ¶
Index ¶
Constants ¶
const ( // MethodAWSIAM authenticates to vault via AWS IAM Auth MethodAWSIAM = "aws-iam" // MethodAWSEC2 authenticates to vault via AWS EC2 Auth MethodAWSEC2 = "aws-ec2" // AWSAuthErrorMessage is the default error message for AWS IAM Authentication AWSAuthErrorMessage = "Error authenticating to vault via AWS IAM authentication" // AWSAuthHeaderKey is the header key used during AWS IAM authentication AWSAuthHeaderKey = "X-Vault-AWS-IAM-Server-ID" // NonceMaxBytes is the maximum number of bytes that will be read from the nonce file NonceMaxBytes = 1024 )
const ( // MethodGCPGCE is the GCP GCE authentication method MethodGCPGCE = "gcp-gce" // MethodGCPIAM is the GCP IAM authentication method MethodGCPIAM = "gcp-iam" )
const (
// MethodAgent assumes the vault_addr is an agent handling authentication
MethodAgent = "agent"
)
const (
// MethodAppRole authenticates to vault via the AppRole backend
MethodAppRole = "approle"
)
const (
// MethodCert authenticates to vault via client cert
MethodCert = "cert"
)
const MethodToken = "token"
MethodToken authenticates to vault via token
Variables ¶
This section is empty.
Functions ¶
func CheckAuthentication ¶
CheckAuthentication verifies that the connection to vault is setup correctly by retrieving information about the configured token
Types ¶
type AWSEC2Authenticater ¶
type AWSEC2Authenticater struct{}
func (*AWSEC2Authenticater) Authenticate ¶
Authenticate to vault via the AWS authentication method
type AWSIAMAuthenticater ¶
type AWSIAMAuthenticater struct{}
func (*AWSIAMAuthenticater) Authenticate ¶
Authenticate to vault via AWS IAM authentication
type AgentAuthenticater ¶ added in v1.13.0
type AgentAuthenticater struct{}
func (*AgentAuthenticater) Authenticate ¶ added in v1.13.0
Authenticate does nothing, assumes agent is handling authentication
type AppRoleAuthenticater ¶
type AppRoleAuthenticater struct{}
func (*AppRoleAuthenticater) Authenticate ¶
AppRole authenticates to vault via the AppRole backend
type Authenticater ¶
type CertAuthenticater ¶
type CertAuthenticater struct{}
func (*CertAuthenticater) Authenticate ¶
Authenticate to vault via the cert auth backend
type GCPGCEAuthenticater ¶ added in v1.13.0
type GCPGCEAuthenticater struct{}
GCPGCEAuthenticater authenticates into GCP using GCE metadata auth
func (*GCPGCEAuthenticater) Authenticate ¶ added in v1.13.0
Authenticate authenticates using GCE metadata auth
type GCPIAMAuthenticater ¶ added in v1.13.0
type GCPIAMAuthenticater struct{}
GCPIAMAuthenticater authenticates into GCP using IAM auth
func (*GCPIAMAuthenticater) Authenticate ¶ added in v1.13.0
Authenticate authenticates using IAM auth
type TokenAuthenticater ¶
type TokenAuthenticater struct{}
func (*TokenAuthenticater) Authenticate ¶
Authenticate to vault via token