fix: use configured credentials for infrastructure PostgreSQL queries
All checks were successful
CI / build (push) Successful in 1m8s
CI / docker (push) Successful in 43s

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) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-04-14 23:01:00 +02:00
parent 553ecc1490
commit 03fb414981

View File

@@ -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 {