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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: enable SNI #282

Merged
merged 1 commit into from May 16, 2024
Merged

fix: enable SNI #282

merged 1 commit into from May 16, 2024

Conversation

conradludgate
Copy link
Contributor

馃憢 At Neon, we use SNI to know which database endpoint is being requested to connect to. Our fallback options are using options which this library also doesn't support, or using cleartext passwords and encoding the database endpoint into the password. See https://neon.tech/docs/connect/connection-errors#the-endpoint-id-is-not-specified

Reading https://forum.crystal-lang.org/t/specifying-the-sni-hostname-for-an-openssl-context/3872 it seems like enabling SNI wasn't too challenging. Testing locally it does seem to work.

@maattdd
Copy link

maattdd commented May 15, 2024

I confirm it works fine, could this be merged ? cc @bcardiff

@bcardiff bcardiff merged commit c83388d into will:master May 16, 2024
@bcardiff
Copy link
Collaborator

Merged! Thanks for the nudge

@will
Copy link
Owner

will commented May 17, 2024

Thanks @conradludgate! (and also thanks @bcardiff for getting to this before I did)

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.

None yet

4 participants