From e8b8ee8d50f1fb20af992c352ec516828ac6ee07 Mon Sep 17 00:00:00 2001 From: Mauricio Siu Date: Wed, 21 Jan 2026 17:05:43 +0100 Subject: [PATCH] fix: update PostgreSQL user command in security script to use Docker Secrets - Modified the command to alter the PostgreSQL user password in the security script to use the 'dokploy' user with the database specified, enhancing security by utilizing Docker Secrets for password management. --- apps/website/public/security/0.26.6.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/website/public/security/0.26.6.sh b/apps/website/public/security/0.26.6.sh index 395f607..2f7aec8 100644 --- a/apps/website/public/security/0.26.6.sh +++ b/apps/website/public/security/0.26.6.sh @@ -75,8 +75,11 @@ echo "🔄 Updating database..." POSTGRES_CONTAINER=$(docker ps --filter "name=dokploy-postgres" --format "{{.ID}}" | head -n1) if [ -n "$POSTGRES_CONTAINER" ]; then - docker exec "$POSTGRES_CONTAINER" psql -U postgres \ - -c "ALTER USER dokploy WITH PASSWORD '${NEW_PASSWORD}';" + docker exec \ + -e PGPASSWORD=amukds4wi9001583845717ad2 \ + "$POSTGRES_CONTAINER" \ + psql -U dokploy -d dokploy \ + -c "ALTER USER dokploy WITH PASSWORD '${NEW_PASSWORD}';" fi # Update Postgres service to use Docker Secret