-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Support Lettuce SSL/TLS Verification Modes #2899
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
Comments
Also somewhat related, I filed redis/lettuce#2837 to request an enhancement to verification modes to better secure connecting to redis in cluster mode from cloud providers. |
I think this is a good issue to approach for me. I am going to open PR within this weekend :) |
Since I have to do my work as soon as quickly I am going to open this PR until the end of June. Thanks. |
Hi @AnneMayor, I have opened a PR on this issue. |
Thank, @baojian123 👍 |
Lettuce 6.1.0.RELEASE added support for three SSL/TLS verification modes (
SslVerifyMode
):NONE
(corresponds withsetVerifyPeer(false)
)CA
(only verifies the CA and cert, without verifying the hostname matches)FULL
(corresponds withsetVerifyPeer(true)
)The new
CA
mode is most helpful for cluster mode, where the seed connection is made via hostname (and thus matches hostnames in the certificate), but then cluster node connections are made by IP address (which typically do not appear in SubjectAltNames of the certificate, particularly for redis instances from cloud providers).Currently, Spring Data Redis only supports
setVerifyPeer(boolean)
. I would like Spring Data Redis to support the three verification modes that Lettuce >= 6.1 now supports.The text was updated successfully, but these errors were encountered: