Closed shusaan closed 8 months ago
Hello @shusaan, sorry to hear that you've run into this problem.
I was able to replicate the problem, and I have some thoughts about the issue for you to try. But I'm first curious about what your use case is for disabling TLS?
That disabled TLS is the root of the problem here: PGO wants TLS in a few places including the pg_hba.conf line for the _crunchypgbouncer
user. When I run into this problem, I see the log
WARNING server login failed: FATAL pg_hba.conf rejects connection for host "<some IP>", user "_crunchypgbouncer", database "postgres", no encryption
In order to get around that line PGO writes to the pg_hba.conf, we would have to override some of the defaults written into that file. We have a ticket in our backlog to address how PGO determines pg_hba and how to allow users to customize lines that PGO sets, and I've linked this issue to that ticket, since that would be one way to solve it.
I do wonder if you could go forward now by, essentially, overriding the auth_user
and auth_file
that pgBouncer uses and setting a different pg_hba.conf line for that user than for the default _crunchypgbouncer
user.
But this seems like a fair amount of work to get around a problem this cluster has because TLS is disabled, which brings me back to my first question: what's the use case for disabling TLS?
Since we haven't heard back on this issue for some time, I am closing this issue. If you need further assistance, feel free to re-open this issue or ask a question in our Discord server.
Hi, Here is Postgres cluster config, I have disabled TLS on this cluster
When I Connect through
db-primary
service it is workingBut when I use the pgbouncer service
db-pgbouncer
Here is the error I am facing, Please HelpEnvironment
Please provide the following details:
Kubernetes
, RKE2.)13
)