Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInferRoleClaims is returns when the authenticator fails to infer a role name ErrInferRoleClaims = errors.New("could not parse service-account name / role name from claims") )
Functions ¶
func EnsureAuthenticated ¶
EnsureAuthenticated verifies we have a valid token, or attempts to fetch a new one. Returns false if it is unable to become authenticated.
func InferK8SConfig ¶
InferK8SConfig attempts to replace default configuration parameters on K8S with ones inferred from the k8s environment
Types ¶
type AWSService ¶
type AWSService struct{}
AWSService is an external service that vault can authenticate requests against
type Authenticator ¶
type Authenticator interface { // Auth is used to authenticate to an external service Auth(*api.Client, cfg.Config) (string, error) }
Authenticator is an interface to represent an external source that should be authenticated against.
type AzureService ¶ added in v1.2.0
type AzureService struct{}
AzureService is an external service that vault can authenticate request against
type GCPService ¶
type GCPService struct{}
GCPService is an external service that vault can authenticate requests against
Click to show internal directories.
Click to hide internal directories.