-
Notifications
You must be signed in to change notification settings - Fork 189
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
PGcat raises confusing error when client attempts to connect with GSSAPI encoding request #792
Comments
What does PgCat logs say.
Indicates that PgCat closed the connection immediately or panicked |
This is what raises in the logs.
80877104 refers to the GSSENCRequest message format documented in https://www.postgresql.org/docs/current/protocol-message-formats.html. Neither of the server or client error messages makes it obvious that the client needs to change the gssencmode query parameter without a lot of documentation searching. I have a patch that will enable pgcat to handle this scenario more gracefully if you are interested in a PR. |
PRs are always welcome! 😃 |
Just raised PR #797 to fix this issue. |
LDescribe the bug
PGcat does not support GSSAPI encoding (which is fine) but by default psql will try to use GSSAPI when there is an entry available in
klist
. Normally when no GSSAPI encoded connection is available it will downgrade to an unencoded connection but with pgcat it will raise the following error message. The workaround is to specify the libc parametergssencmode=disable
but this workaround is not obvious from the error message that is presented to the client.Problem
Workaround
Expected behavior
The client should be able to gracefully handle not being able to connect with GSSAPI encoding.
Graceful handling of gssapi encoding rejection
Expected error when gssencmode=require
Desktop
The text was updated successfully, but these errors were encountered: