Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Able to use different username when internal backend connect to shards #664

Merged

Conversation

NitroLine
Copy link
Contributor

-Add a different auth configuration struct for backend auth rules (because AuthMethod is not used here).
-Add the ability to use different usernames when internal backend connects to shards.
This may be used when:

  • Different shards have different PostgreSQL usernames.
  • When using LDAP/GSS auth - SPQR as one entrypoint for many LDAP users able to connect.

pkg/auth/auth.go Outdated Show resolved Hide resolved
pkg/auth/auth.go Outdated Show resolved Hide resolved
pkg/auth/auth_test.go Outdated Show resolved Hide resolved
@NitroLine NitroLine requested a review from EinKrebs May 23, 2024 06:26
@Denchick Denchick merged commit 3416139 into pg-sharding:master May 24, 2024
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants