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

feat: support sslnegotiation flag #1180

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

conradludgate
Copy link

postgres 17 added support for "sslnegotiation=direct". This allows skipping the ssl negotiation handshake.

https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNECT-SSLNEGOTIATION

The implementation is simple. If sslnegotiation=direct, do not run the ssl negotiation. I have tested this against a known postgres provider that supports this connection mode and it works fine according to my wireshark inspection.

Something to consider: should we return an error if sslnegotiation is not one of "postgres" or "direct"?

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.

1 participant