-
Notifications
You must be signed in to change notification settings - Fork 999
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
Use TlsMode::Prefer instead of TlsMode:None in notification_listener #2097
Comments
Sadly, this is not as easy as it seems. The postgres v0.15.2 library support for TLS requires an old version of openssl - and upgrading runs into various issues (notably mutable borrowing of the Postgresql Client object for both Client.notifications() and a new JsonNotification object). It'd be great to get this looked into, because disabling TLS for this feels the wrong thing to do.. |
@joe-bowman are you still interested in this? We've since updated the |
Would hope this change gets deployed as when I tried to run the docker image with my own postgresql service, it failed because my postgresql enforces tls. |
Any update here? Does the graph-node support postgres over SSL? |
AFAIK not unfortunately. It is a big pity since most self maintained graphs would use a postgres instance that requires SSL. |
@joe-bowman how can one reproduce the issue? As I'm experimenting with enabling TLS and I would like to check if the issue with mutable borrowing still exists. |
I guess it can be closed now that #3503 is merged, although there is some room for improvements (e.g. don't turn the certificate validation off, but make it configurable). |
In notification_listener, we create a postgresql connection with the param
TlsMode::None
. There is no reason to not useTlsMode::Prefer
here and not force operators to run postgresql withHost
overSslHost
in pg_hba.conf.graph-node/store/postgres/src/notification_listener.rs
Line 121 in 39287ae
Elsewhere,
Diesel
is used and this respects thepostgres_url
passed on the command line.The text was updated successfully, but these errors were encountered: