feat: adds variables to enable client tls on pgbouncer #585
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is related to #582.
Although this is a trivial change, I think that quite a few people could incur in the requirement of having to enable TLS at least between clients and pgbouncer.
This has been tried on a deployment of type "A". Without these configurations, trying to connect to the cluster
vip
using TLS fails:To allow encrypted connections, one could add to
/etc/pgbouncer/pgbouncer.ini
on each node:After restarting the
pgbouncer
service, encrypted connections are allowed on the cluster virtual ip.❯ PGSSLMODE=require psql --host pgdebian2.domain.lan --port 5000 --user testuser --db test --password psql (16.1, server 16.2 (Debian 16.2-1.pgdg120+2)) SSL connection (protocol: TLSv1.3, cipher: TLS_AES_256_GCM_SHA384, compression: off)
Let me know if you want me to add some tests.
Thanks!