Skip to content

Conversation

@joshk
Copy link
Contributor

@joshk joshk commented Dec 18, 2023

What kind of change does this PR introduce?

This adds support for the ssl and ssl_opts Postgrex connection options.

What is the current behavior?

If a custom SSL cert is required then the connection will fail.

What is the new behavior?

Custom SSL certs can now be configured and used.

Additional context

Crunchy Bridge provides customers their own SSL PEM, and SSL is enforced with all db connections. This PR addresses issues with SSL details not being passed to Postgrex.

@joshk
Copy link
Contributor Author

joshk commented Dec 28, 2023

@Ziinc @filipecabaco sorry to ping you, I was wondering if this PR could be reviewed.

We have a change we are looking to merge into NervesHub (nerves-hub/nerves_hub_web#1151) and it would be great to not use my fork.

p.s. such a god damn smart use of postgres for node discovery!

@Ziinc
Copy link
Contributor

Ziinc commented Dec 28, 2023

@joshk could you add in some docs around the ssl options and example usage, as well as bump the patch version?

@joshk
Copy link
Contributor Author

joshk commented Dec 28, 2023

Thanks for the quick reply @Ziinc

Done! Let me know if you want something with extra detail.

Copy link
Contributor

@Ziinc Ziinc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, will only be able to publish this on 29th

@joshk
Copy link
Contributor Author

joshk commented Dec 28, 2023

Awesome, thank you!

@joshk
Copy link
Contributor Author

joshk commented Jan 3, 2024

@Ziinc Happy New Year!

any chance of having this merged?

@filipecabaco
Copy link
Member

hey! just a quick heads up that I'll review this one today. sorry for the delay 🙏

@joshk
Copy link
Contributor Author

joshk commented Jan 3, 2024

@filipecabaco thanks for the quick reply!

@Ziinc Ziinc merged commit 132b630 into supabase:main Jan 3, 2024
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