mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-04 20:06:27 +02: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:
parent
6dfde31f94
commit
55dac2a319
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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user