feat: leverage pgbouncer's auth_dbname by phisco · Pull Request #4939 · cloudnative-pg/cloudnative-pg
changed the title
feat: leverage auth_dbname for pooler
feat: leverage auth_dbname for poolers
phisco
changed the title
feat: leverage auth_dbname for poolers
feat: leverage pgbouncer's auth_dbname
phisco
marked this pull request as ready for review
leonardoce added a commit to leonardoce/cloudnative-pg that referenced this pull request
Sep 26, 2025Previously, CloudNativePG configured authentication by creating a `user_search` function in every accessible database and granting CONNECT privileges to the PgBouncer auth_user. This patch simplifies the process by using the `auth_dbname` configuration option, so that PgBouncer runs its authentication queries only against the `postgres` database. This results in a simpler reconciliation loop with no extra connections required for other databases. Closes: cloudnative-pg#4939 Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters