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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use system trust store if serverSslCert is not set #83

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

Conversation

Xiphoseer
Copy link

Currently, the R2DBC connector seems to differ from the JDBC connector in that it can't enable TLS without explicitly specifying a serverSslCert or picking the non-production ready trust mode, by explicitly throwing an error in this code path.

The same way JDBC does it, I think it's reasonable to interpret this as "defer to PKI" or more specifically "defer to the system truststore" instead. The netty SslContextBuilder says to pass null for this (which is slightly more explicit than just not calling a trustManager function at all in that case).

See: https://netty.io/4.1/api/io/netty/handler/ssl/SslContextBuilder.html#trustManager-javax.net.ssl.TrustManagerFactory-

@Xiphoseer Xiphoseer changed the title [misc] use system trust store if serverSslCert is not set Use system trust store if serverSslCert is not set Dec 9, 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.

1 participant