mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 18:48:08 +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:
		| @@ -224,12 +224,3 @@ func (m *MongoDB) RevokeUser(ctx context.Context, statements dbplugin.Statements | ||||
| func (m *MongoDB) RotateRootCredentials(ctx context.Context, statements []string) (map[string]interface{}, error) { | ||||
| 	return nil, errors.New("root credential rotation is not currently implemented in this database secrets engine") | ||||
| } | ||||
|  | ||||
| // GenerateCredentials returns a generated password | ||||
| func (m *MongoDB) GenerateCredentials(ctx context.Context) (string, error) { | ||||
| 	password, err := m.GeneratePassword() | ||||
| 	if err != nil { | ||||
| 		return "", err | ||||
| 	} | ||||
| 	return password, nil | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Clint
					Clint