Skip to content

Commit 618a652

Browse files
committed
fix: use TCP connection for health checks to avoid socket auth
pg_hba.conf requires scram-sha-256 for local socket connections to supabase_admin but trusts TCP connections via 127.0.0.1. Add -h localhost to psql commands so they use the trusted TCP path.
1 parent 081a563 commit 618a652

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/ci-kilobase-runner.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,13 +148,13 @@ jobs:
148148
- name: Run PostgreSQL health checks
149149
run: |
150150
echo "=== PostgreSQL version ==="
151-
docker exec pg-test-17 psql -U supabase_admin -d postgres -c "SELECT version();"
151+
docker exec pg-test-17 psql -U supabase_admin -h localhost -d postgres -c "SELECT version();"
152152
153153
echo "=== Installed extensions ==="
154-
docker exec pg-test-17 psql -U supabase_admin -d postgres -c "SELECT name, default_version FROM pg_available_extensions ORDER BY name;"
154+
docker exec pg-test-17 psql -U supabase_admin -h localhost -d postgres -c "SELECT name, default_version FROM pg_available_extensions ORDER BY name;"
155155
156156
echo "=== Test basic SQL ==="
157-
docker exec pg-test-17 psql -U supabase_admin -d postgres -c "CREATE TABLE test_health (id serial PRIMARY KEY, data text); INSERT INTO test_health (data) VALUES ('ok'); SELECT * FROM test_health; DROP TABLE test_health;"
157+
docker exec pg-test-17 psql -U supabase_admin -h localhost -d postgres -c "CREATE TABLE test_health (id serial PRIMARY KEY, data text); INSERT INTO test_health (data) VALUES ('ok'); SELECT * FROM test_health; DROP TABLE test_health;"
158158
159159
- name: Cleanup test container
160160
if: always()

0 commit comments

Comments
 (0)