GoogleCloudPlatform / GoogleCloudPlatform/cloud-sql-go-connector
Retain `client_address` on Postgres connection when using Private IP
- Dominant language
- Go
- Stars
- 145
- Forks
- 35
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 5
Description
### Question
We're currently rewriting a number of our Golang services to use `cloudsqlconn` and overall things are working great.
However one thing that we've spotted is that there's no `client_address` reported on the connections within Postgres, even if we're using the instance private IP to connect.
However if we connect using `psql` from the same pod using the same details then the `client_address` _is_ recorded.
So is there a specific reason why the `client_address` isn't being reported when connecting via `cloudsqlconn` using the private IP?
### Code
_No response_
### Additional Details
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.