mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 11:38:02 +00:00
Combined Database backend: Add GenerateCredentials to the CredentialsProducer Interface (#7010)
* Add GenerateCredentials to the CredentialsProducer Interface, add default implementation * Remove GenerateCredentials implementation from database plugins
This commit is contained in:
@@ -242,12 +242,3 @@ func (i *Influxdb) RotateRootCredentials(ctx context.Context, statements []strin
|
||||
i.rawConfig["password"] = password
|
||||
return i.rawConfig, nil
|
||||
}
|
||||
|
||||
// GenerateCredentials returns a generated password
|
||||
func (i *Influxdb) GenerateCredentials(ctx context.Context) (string, error) {
|
||||
password, err := i.GeneratePassword()
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
return password, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user