mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 10:37:56 +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:
		| @@ -500,12 +500,3 @@ func (p *PostgreSQL) RotateRootCredentials(ctx context.Context, statements []str | ||||
| 	p.RawConfig["password"] = password | ||||
| 	return p.RawConfig, nil | ||||
| } | ||||
|  | ||||
| // GenerateCredentials returns a generated password | ||||
| func (p *PostgreSQL) GenerateCredentials(ctx context.Context) (string, error) { | ||||
| 	password, err := p.GeneratePassword() | ||||
| 	if err != nil { | ||||
| 		return "", err | ||||
| 	} | ||||
| 	return password, nil | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Clint
					Clint