-
Notifications
You must be signed in to change notification settings - Fork 975
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
RedisURI.applySsl(…)
does not retain SslVerifyMode
#2328
Labels
type: bug
A general bug
Milestone
Comments
mp911de
changed the title
SslVerifyMode.CA mode does not work with cluster connections
Feb 15, 2023
RedisURI. applySsl(…)
does not retain SslVerifyMode
Thanks for the report and your bug fix. This is an oversight on our end and we need to fix it. |
mp911de
pushed a commit
that referenced
this issue
Feb 15, 2023
Co-authored-by: Jacob Halsey <jacob.d.halsey@oracle.com> Original pull request: #2329
mp911de
pushed a commit
that referenced
this issue
Feb 15, 2023
Co-authored-by: Jacob Halsey <jacob.d.halsey@oracle.com> Original pull request: #2329
That's fixed now. |
mp911de
changed the title
Feb 15, 2023
RedisURI. applySsl(…)
does not retain SslVerifyMode
RedisURI.applySsl(…)
does not retain SslVerifyMode
Thank you for the fast response and review! Any idea when this will be released? |
I'm a bit torn because I have little bandwidth these days. On the other side, Spring Data Redis could pick Lettuce up by Friday. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Current Behavior
When using RedisClusterClient the
SslVerifyMode.CA
mode is not respected.When attaching a debugger I can see the initial call to the cluster succeeds, but the RedisURI is then updated with the incorrect mode, and subsequent calls fail.
Stack trace
Input Code
Input Code
Environment
Possible Solution
I'm fairly certain the bug is coming from here:
https://github.com/lettuce-io/lettuce-core/blob/dcd7085f18e453cc2624b673f8da1c9fb56c9fe0/src/main/java/io/lettuce/core/RedisURI.java#L623-L630
The SslVerifyMode is not being fully propagated to the new RedisURIs.
I have opened a PR for this: #2329
Additional context
I think what has happened was when this commit added the
SslVerifyMode.CA
the code, theapplySsl()
function wasn't updated.Relates to: #1460
The text was updated successfully, but these errors were encountered: