Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator struct {
// contains filtered or unexported fields
}
Authenticator handles vault kubernetes authentication
func NewAuthenticator ¶
func NewAuthenticator(logger *logrus.Entry, client vaultClient) *Authenticator
NewAuthenticator returns a new Authenticator instance
func (*Authenticator) Authenticate ¶
func (f *Authenticator) Authenticate(forceLogin bool, kubeAuthPath, kubeAuthRole, kubeTokenFilePath, vaultTokenFilePath string) (*api.Secret, error)
Authenticate hands over the k8s SA token to vault, receiving the vault authentication token
Click to show internal directories.
Click to hide internal directories.