Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrValidation = errors.New("credentials validation error")
Functions ¶
func ValidateReaderClient ¶
func ValidateWriterClient ¶
ValidateWriterClient checks if the client is valid by writing and deleting a secret in the provided mount path.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager(opts *NewManagerOpts) (*Manager, error)
func (*Manager) DeleteCredentials ¶
DeleteCredentials deletes credentials and versions
func (*Manager) ReadCredentials ¶
ReadCredentials reads the latest version of the credentials
type NewManagerOpts ¶
type NewManagerOpts struct {
// Active Directory Tenant ID
TenantID string
// Registered application / service principal client ID
ClientID string
// Registered application / service principal client secret
ClientSecret string
// Vault URL
VaultURI string
// Optional secret prefix
SecretPrefix string
Logger log.Logger
Role credentials.Role
}
func (*NewManagerOpts) Validate ¶
func (o *NewManagerOpts) Validate() error
type SecretsRW ¶
type SecretsRW interface {
SetSecret(ctx context.Context, secretName string, params azsecrets.SetSecretParameters, options *azsecrets.SetSecretOptions) (azsecrets.SetSecretResponse, error)
GetSecret(ctx context.Context, secretName string, version string, options *azsecrets.GetSecretOptions) (azsecrets.GetSecretResponse, error)
DeleteSecret(ctx context.Context, secretName string, options *azsecrets.DeleteSecretOptions) (azsecrets.DeleteSecretResponse, error)
}
Click to show internal directories.
Click to hide internal directories.