From e69f2ace060741474a49231bf8330f97547c8b2b Mon Sep 17 00:00:00 2001 From: swati <164215811+swatibourai0560@users.noreply.github.com> Date: Fri, 17 Jan 2025 02:35:20 +0530 Subject: [PATCH] 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 Co-authored-by: akshya96 <87045294+akshya96@users.noreply.github.com> Co-authored-by: Violet Hynes --- website/content/docs/secrets/databases/postgresql.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/content/docs/secrets/databases/postgresql.mdx b/website/content/docs/secrets/databases/postgresql.mdx index fd84de5ab6..579d32b1c5 100644 --- a/website/content/docs/secrets/databases/postgresql.mdx +++ b/website/content/docs/secrets/databases/postgresql.mdx @@ -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