-
Notifications
You must be signed in to change notification settings - Fork 426
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
Database user and auth_query do not work together #1072
Comments
Hmm, that sounds like an annoying bug. Could you check with the master branch if it still occurs there too? I'm hoping this might magically be fixed by the changes to our user management that I merged recently. |
May have made the issue in haste. I had got it working, and it was after I had excluded the Will attempt with the build from the latest on |
Used the latest version from |
Some further debug information. Normally I have been attempting to make a connection with a role different than the one defined in
This looks like pgbouncer is only querying for Saw in some other issues that pgbouncer keeps a list in memory for the users, so tried first authenticating with I guess the question is, is authenticating with a different user than the one defined in the |
So there's two stages of authentication that PgBouncer does:
For the first case it will use |
So to be clear. If you add a line to the auth_file saying |
Yes, adding it to the |
pgbouncer.ini
It appears that a combination of the
peers
setup with the "forced"user
in thedatabases
section breaks how pgbouncer handles the results of theauth_query
.With the above setup, pgbouncer returns with
Removing the
peers
section gives a successful connection.Adding the same password that is being returned by the
auth_query
to/opt/pgbouncer/auth/userslist
gives a successful connection as well (with thepeers
section still present).The text was updated successfully, but these errors were encountered: