From db822fa477f3667696c52e740e9186ea5d92b856 Mon Sep 17 00:00:00 2001 From: Edward Dale Date: Mon, 29 Jul 2024 17:31:58 +0200 Subject: [PATCH] Don't escape characters in passwords If a password contains a character that should be HTML escaped, it will be escaped. By using [triple braces](https://handlebarsjs.com/guide/expressions.html#html-escaping), that escaping is disabled. --- postgres-appliance/scripts/configure_spilo.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/postgres-appliance/scripts/configure_spilo.py b/postgres-appliance/scripts/configure_spilo.py index 3195327fb..1cc3d3b8b 100755 --- a/postgres-appliance/scripts/configure_spilo.py +++ b/postgres-appliance/scripts/configure_spilo.py @@ -260,7 +260,7 @@ def deep_update(a, b): {{#USE_ADMIN}} users: {{PGUSER_ADMIN}}: - password: {{PGPASSWORD_ADMIN}} + password: {{{PGPASSWORD_ADMIN}}} options: - createrole - createdb @@ -345,10 +345,10 @@ def deep_update(a, b): authentication: superuser: username: {{PGUSER_SUPERUSER}} - password: '{{PGPASSWORD_SUPERUSER}}' + password: '{{{PGPASSWORD_SUPERUSER}}}' replication: username: {{PGUSER_STANDBY}} - password: '{{PGPASSWORD_STANDBY}}' + password: '{{{PGPASSWORD_STANDBY}}}' callbacks: {{#CALLBACK_SCRIPT}} on_start: {{CALLBACK_SCRIPT}}