containers icon indicating copy to clipboard operation
containers copied to clipboard

[bitnami/pgbouncer] Do not forward client_addr

Open gajus opened this issue 3 years ago • 2 comments

Name and Version

bitnami/pgbouncer:1

What is the problem this feature will solve?

Trying to login from a remote host.

So, for context, when I try to login to database directly, such as through:

'postgres://contra_api:SomePassword@[DATABASE_IP]:5432/contra'

it works, but when I try to login through pgbouncer, I am getting error about invalid credentials, i.e.

'postgres://contra_api:SomePassword@contra-pgbouncer:6432/contra'

The error is: "psql: FATAL: password authentication failed"

As far as I understand, the issue here is that we forward client_addr, though I am not 100% confident.

What is the feature you are proposing to solve the problem?

Do not forward client's IP address.

What alternatives have you considered?

No response

gajus avatar Jul 13 '22 04:07 gajus

Thanks @gajus

Could you share a docker-compose and/or some instructions to reproduce the issue? I tried to reproduce it with the docker-compose-password.yaml that we distribute, running the following command but I can not reproduce it:

$ docker run -it --name psql --rm docker.io/bitnami/postgresql psql -h host.docker.internal -p 6432

fmulero avatar Jul 19 '22 10:07 fmulero

We are going to transfer this issue to bitnami/containers

In order to unify the approaches followed in Bitnami containers and Bitnami charts, we are moving some issues in bitnami/bitnami-docker-<container> repositories to bitnami/containers.

Please follow bitnami/containers to keep you updated about the latest bitnami images.

More information here: https://blog.bitnami.com/2022/07/new-source-of-truth-bitnami-containers.html

fmulero avatar Jul 28 '22 12:07 fmulero

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

github-actions[bot] avatar Aug 13 '22 01:08 github-actions[bot]

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.

github-actions[bot] avatar Aug 19 '22 01:08 github-actions[bot]