From ed8dacaa59f0f1f9e31c2f93a7fc36ce18ad93d3 Mon Sep 17 00:00:00 2001 From: davidmscholz <130749829+davidmscholz@users.noreply.github.com> Date: Thu, 29 Aug 2024 09:15:22 +0200 Subject: [PATCH] Fix fhir2sql db pw generation (#219) fix postgresql password generation so that the password does not contain problematic characters that mess with the connection string --- ccp/modules/fhir2sql-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ccp/modules/fhir2sql-setup.sh b/ccp/modules/fhir2sql-setup.sh index 6b27571..64fa7c0 100644 --- a/ccp/modules/fhir2sql-setup.sh +++ b/ccp/modules/fhir2sql-setup.sh @@ -3,5 +3,5 @@ if [ "$ENABLE_FHIR2SQL" == true ]; then log INFO "Dashboard setup detected -- will start Dashboard backend and FHIR2SQL service." OVERRIDE+=" -f ./$PROJECT/modules/fhir2sql-compose.yml" - DASHBOARD_DB_PASSWORD="$(echo \"This is a salt string to generate one consistent password for the Dashboard database. It is not required to be secret.\" | sha1sum | openssl pkeyutl -sign -inkey /etc/bridgehead/pki/${SITE_ID}.priv.pem | base64 | head -c 30)" + DASHBOARD_DB_PASSWORD="$(generate_simple_password 'fhir2sql')" fi