Skip to content

Commit

Permalink
Fix Static Role Name Consistency in PostgreSQL Configuration (#29138)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
Co-authored-by: akshya96 <[email protected]>
Co-authored-by: Violet Hynes <[email protected]>
  • Loading branch information
4 people authored Jan 16, 2025
1 parent ad79edf commit e69f2ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/content/docs/secrets/databases/postgresql.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand All @@ -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
Expand Down

0 comments on commit e69f2ac

Please sign in to comment.