K8SPG-683 support ldap pgbouncer#1490
Merged
Merged
Conversation
egegunes
previously approved these changes
Mar 11, 2026
| // pg_hba.conf (see https://github.com/pgbouncer/pgbouncer/pull/731). PgBouncer | ||
| // authenticates the client against the LDAP server directly, then uses the | ||
| // received cleartext credential for the server-side PostgreSQL connection. | ||
| func pgbouncerHBAFileContents(cluster *v1beta1.PostgresCluster) string { |
Member
There was a problem hiding this comment.
shall we add a unit test for this?
mayankshah1607
previously approved these changes
Mar 12, 2026
egegunes
approved these changes
Mar 13, 2026
Contributor
Author
|
egegunes
approved these changes
Mar 13, 2026
mayankshah1607
approved these changes
Mar 13, 2026
nmarukovich
approved these changes
Mar 13, 2026
Collaborator
commit: 39e4bf7 |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

CHANGE DESCRIPTION
Problem:
Enables LDAP-authenticated PostgreSQL users to connect via PgBouncer by configuring PgBouncer to use its native LDAP HBA support (introduced in PgBouncer 1.25.0).
For checking the version we are currently using, run the following command:
Added connection checks to ldap/03-verify-ldap-auth.yaml and ldap-tls/04-verify-ldaps-auth.yaml. They verify that a user with a valid LDAP password can connect through PgBouncer and that a wrong password is rejected.
Cause:
Short explanation of the root cause of the issue if applicable.
Solution:
Short explanation of the solution we are providing with this PR.
CHECKLIST
Jira
Needs Doc) and QA (Needs QA)?Tests
Config/Logging/Testability