Skip to content

cannot connect to proxy in Docker #4

@fridlundisme

Description

@fridlundisme

I tried running this in docker so I could hook it up to my current setup.
The logs show that I have successful connection but the connection just stops.

If I try to access the db with psql -U postgres -p 5433, or with my docker container thorugh docker ompose, then the end of these logs are the result, and I never enter into the psql shell.

dbpill-proxy  | [proxy] Certificate loaded successfully
dbpill-proxy  | [proxy] Key bytes: 1708 cert bytes: 977
dbpill-proxy  | Database connection successful. Starting proxy on port 5433
dbpill-proxy  |
dbpill-proxy  | [proxy] PostgreSQL proxy listening on port 5433 (TLS MITM ready, IPv4/IPv6)
dbpill-proxy  | → Connect to dbpill SQL proxy at postgresql://postgres:postgres@localhost:5433/postgres to intercept queries.
dbpill-proxy  | → Go to dbpill web UI at http://localhost:3000 to manage the results.
dbpill-proxy  | [proxy] TCP connection accepted from ::ffff:172.18.0.1 port 60752
dbpill-proxy  | [proxy] Received first data chunk: 0000000804d2162f
dbpill-proxy  | [proxy] Detected SSLRequest, upgrading to TLS
dbpill-proxy  | [proxy] Sent S response, creating TLS socket...
dbpill-proxy  | [proxy] TLS socket created, waiting for handshake...
dbpill-proxy  | [proxy] TLS keylog: SERVER_HANDSHAKE_TRAFFIC_SECRET def78baa3e484e8703efd045e1ea1e95ae1da940bf8cc50fc1c4555c32353190 
dbpill-proxy  |
dbpill-proxy  | [proxy] TLS keylog: CLIENT_HANDSHAKE_TRAFFIC_SECRET def78baa3e484e8703efd045e1ea1e95ae1da940bf8cc50fc1c4555c32353190 
dbpill-proxy  |
dbpill-proxy  | [proxy] TLS keylog: EXPORTER_SECRET def78baa3e484e8703efd045e1ea1e95ae1da940bf8cc50fc1c4555c32353190 
dbpill-proxy  |
dbpill-proxy  | [proxy] TLS keylog: SERVER_TRAFFIC_SECRET_0 def78baa3e484e8703efd045e1ea1e95ae1da940bf8cc50fc1c4555c32353190 
dbpill-proxy  |
dbpill-proxy  | [proxy] TLS keylog: CLIENT_TRAFFIC_SECRET_0 def78baa3e484e8703efd045e1ea1e95ae1da940bf8cc50fc1c4555c32353190 
dbpill-proxy  |
dbpill-proxy  | [proxy] Received first Postgres bytes after TLS handshake: 00000054000300007573657
dbpill-proxy  | [proxy] startPgProxy called. Pending buffer length: 84, socket is TLS: true
dbpill-proxy  | [proxy] Emitting 84 pending bytes to pg-server internal processing.
dbpill-proxy  | [proxy] bindSocket callback triggered for client command: Unknown
dbpill-proxy  | [proxy] bindSocket callback triggered for client command: 112

Any advice?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions