mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-29 09:42:25 +00:00
Fix potential error revoking privileges in postgres secret engine (#28519)
* Fix potential error revoking privileges in postgres secret engine * add changelog entry * fix changelog format --------- Co-authored-by: JM Faircloth <jmfaircloth@hashicorp.com>
This commit is contained in:
3
changelog/28519.txt
Normal file
3
changelog/28519.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
```release-note:bug
|
||||
database/postgresql: Fix potential error revoking privileges in postgresql database secrets engine when a schema contains special characters
|
||||
```
|
||||
@@ -529,7 +529,7 @@ func (p *PostgreSQL) defaultDeleteUser(ctx context.Context, username string) err
|
||||
}
|
||||
revocationStmts = append(revocationStmts, fmt.Sprintf(
|
||||
`REVOKE ALL PRIVILEGES ON ALL TABLES IN SCHEMA %s FROM %s;`,
|
||||
(schema),
|
||||
dbutil.QuoteIdentifier(schema),
|
||||
dbutil.QuoteIdentifier(username)))
|
||||
|
||||
revocationStmts = append(revocationStmts, fmt.Sprintf(
|
||||
|
||||
Reference in New Issue
Block a user