Skip to content

add rudimentary TLS support for postgres connections #2948

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

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

Conversation

conradludgate
Copy link

This fixes #2820. sqlx is also being configured to use rustls-native-certs, so using tokio-postgres-rustls and rustls-native-certs here is consistent with that.

I'm not happy with the error handling, tokio_postgres::Error does not let you construct it, so I cannot turn the rustls errors into a tokio_postgres::Error. I think the only way forward here is to create a custom MakeTlsConnect impl that lazily loads the certs, but that seems like a lot of effort for now.

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.

sslmode=required not working for rocket_db_pool with feature diesel_postgres
1 participant