-
Notifications
You must be signed in to change notification settings - Fork 875
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
fix: support tls for cluster refresh op #781
Conversation
Pull Request Test Coverage Report for Build 95
💛 - Coveralls |
This is a great find, thanks for submitting this PR! Is there any way to test this as part of the CI? I guess one would have to stand up a cluster with all nodes using TLS, correct? The docker image I use for cluster testing (https://github.com/Grokzen/docker-redis-cluster) unfortunately doesn't support TLS right now. Not a blocker to merge this, was just wondering if you might have a suggestion. |
@oliver006 This isn't quite as clean as the project you've referenced, but it does work for a local testing configuration that could be adapted to CI with a little work. I put together a docker-compose for this
This is what my redis conf file looks, each one is unique but only to specify a unique port for each of them
and my config for generating the certificate
My configuration here is heavily sourced from both of these: The latter has a guide on generating the TLS certificate. It's important to use With the following set
Running with these settings against the
When using the above changes, it should report the cluster node count
I also verified that this works in a plaintext cluster as well. |
This is probably the most complete and beautiful response I've ever seen in this repo - thanks for being so thorough and explaining everything. I shall link this from the README to preserve it for future generations of engineers that want to set up a Redis test cluster with TLS enabled. |
Released as v1.49.0 |
Closes #780