From 03fb414981e709b2718ccff29d4fc8b553d421c9 Mon Sep 17 00:00:00 2001 From: hsiegeln <37154749+hsiegeln@users.noreply.github.com> Date: Tue, 14 Apr 2026 23:01:00 +0200 Subject: [PATCH] fix: use configured credentials for infrastructure PostgreSQL queries pgConnection() had hardcoded dev credentials ("cameleer"/"cameleer_dev") instead of using the provisioning properties, causing "password authentication failed" on production installs where the password is generated. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../net/siegeln/cameleer/saas/vendor/InfrastructureService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/siegeln/cameleer/saas/vendor/InfrastructureService.java b/src/main/java/net/siegeln/cameleer/saas/vendor/InfrastructureService.java index fb85d67..0c8e453 100644 --- a/src/main/java/net/siegeln/cameleer/saas/vendor/InfrastructureService.java +++ b/src/main/java/net/siegeln/cameleer/saas/vendor/InfrastructureService.java @@ -271,7 +271,7 @@ public class InfrastructureService { // --- Private helpers --- private Connection pgConnection() throws SQLException { - return DriverManager.getConnection(props.datasourceUrl(), "cameleer", "cameleer_dev"); + return DriverManager.getConnection(props.datasourceUrl(), props.datasourceUsername(), props.datasourcePassword()); } private Connection chConnection() throws SQLException {