-
-
Notifications
You must be signed in to change notification settings - Fork 221
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
Support SSL connections to PostgreSQL #63
Comments
Is this being added in the very near future? I'm still in the very early stages of learning Rust so I'm afraid I can't really contribute (yet) |
@stepankuzmin Will there be an updated release that contains these changes? |
I second, that, this is a critically needed feature @stepankuzmin ! |
Hi everyone, Sorry for the extended response, and thanks for your patience. I've published the pre-release version v1.0.0-alpha.0, and updated README adding two recipes of using Martin with DigitalOcean and Heroku Managed PostgreSQL. Feel free to try it as a Using with DigitalOcean PostgreSQLYou can use Martin with Managed PostgreSQL from DigitalOcean with PostGIS extension First, you need to download the CA certificate and get your cluster connection string from the dashboard. After that, you can use the connection string and the CA certificate to connect to the database.
Using with Heroku PostgreSQLYou can use Martin with Managed PostgreSQL from Heroku with PostGIS extension
To trust the Heroku certificate, you can disable certificate validation with either the
or
|
@stepankuzmin Thanks for this fix! Just tested this on azure webapp backed by azure postgresql and it works well. We run our webapp and postgres on a subnet and trust the certificate so I just set the |
As mentionned here, martin doesn't support SSL connections to PostgreSQL since
TlsMode
is hardcoded toNone
here.Is it possible to make this configurable, either using
sslmode
variable in the connection string or with a specific setting?Thank!
The text was updated successfully, but these errors were encountered: