mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-29 09:42:25 +00:00
Fix Static Role Name Consistency in PostgreSQL Configuration (#29138)
* Updated the PostgreSQL database creation command to ensure the static role name is consistent. The role name specified in allowed_roles="my-role" under the section "Rootless Configuration and Password Rotation for Static Roles" should align with the static role name in step #3. Previously, the command incorrectly used "my-static-role"; it should be "my-role" to match the earlier step. The same role name should also be used when reading the static credentials in step #4 * Added the file changelog/29138.txt * Delete changelog/29138.txt --------- Co-authored-by: Yoko Hyakuna <yoko@hashicorp.com> Co-authored-by: akshya96 <87045294+akshya96@users.noreply.github.com> Co-authored-by: Violet Hynes <violet.hynes@hashicorp.com>
This commit is contained in:
@@ -128,7 +128,7 @@ DB in order to resolve any errors encountered during rotation.
|
||||
the `self_managed_password` parameter:
|
||||
|
||||
```shell-session
|
||||
$ vault write database/static-roles/my-static-role \
|
||||
$ vault write database/static-roles/my-role \
|
||||
db_name="my-postgresql-database" \
|
||||
username="staticuser" \
|
||||
self_managed_password="password" \
|
||||
@@ -138,7 +138,7 @@ DB in order to resolve any errors encountered during rotation.
|
||||
1. Read static credentials:
|
||||
|
||||
```shell-session
|
||||
$ vault read database/static-creds/static-test
|
||||
$ vault read database/static-creds/my-role
|
||||
Key Value
|
||||
--- -----
|
||||
last_vault_rotation 2024-09-11T14:15:13.764783-07:00
|
||||
|
||||
Reference in New Issue
Block a user