[P16] Replace docker exec psql with direct PostgreSQL connection #109
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
provision_postgres()usesdocker exec postgres psqlto rotate passwords. This requires:postgresThis is fragile — if the postgres container restarts during deploy, or the Docker socket path changes, provision fails.
Fix
Use a direct PostgreSQL connection via
psycopg2orasyncpginstead ofdocker exec. The CI step container can connect to postgres via the CI network.This removes the Docker socket dependency for PostgreSQL provisioning.
Acceptance criteria
provision_postgres()connects directly to PostgreSQL, nodocker exec