From 2c32190eed5e6352723df65cde4efcf3b95af0f6 Mon Sep 17 00:00:00 2001 From: Max Coulombe <109547106+maxcoulombe@users.noreply.github.com> Date: Tue, 14 Feb 2023 08:29:27 -0500 Subject: [PATCH] Fix database sample payload doc (#19170) * * fix database static-user rotation statement in sample payload * + added changelog --- changelog/19170.txt | 3 +++ website/content/api-docs/secret/databases/index.mdx | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 changelog/19170.txt diff --git a/changelog/19170.txt b/changelog/19170.txt new file mode 100644 index 000000000..9a421dd18 --- /dev/null +++ b/changelog/19170.txt @@ -0,0 +1,3 @@ +```release-note:improvement +website/docs: fix database static-user sample payload +``` diff --git a/website/content/api-docs/secret/databases/index.mdx b/website/content/api-docs/secret/databases/index.mdx index 915014485..0d80764b7 100644 --- a/website/content/api-docs/secret/databases/index.mdx +++ b/website/content/api-docs/secret/databases/index.mdx @@ -519,7 +519,7 @@ this in order to know the password. "db_name": "mysql", "username": "static-database-user", "rotation_statements": [ - "ALTER USER \"{{name}}\" WITH PASSWORD '{{password}}';" + "ALTER USER \"{{name}}\" IDENTIFIED BY '{{password}}';" ], "rotation_period": "1h" } @@ -565,7 +565,7 @@ $ curl \ "db_name": "mysql", "username": "static-user", "rotation_statements": [ - "ALTER USER \"{{name}}\" WITH PASSWORD '{{password}}';" + "ALTER USER \"{{name}}\" IDENTIFIED BY '{{password}}';" ], "rotation_period": "1h" }