Skip to content

Support TLS connections in Sentinel mode #1987

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

Closed
ae6rt opened this issue Jun 3, 2019 · 5 comments · Fixed by #2445
Closed

Support TLS connections in Sentinel mode #1987

ae6rt opened this issue Jun 3, 2019 · 5 comments · Fixed by #2445
Milestone

Comments

@ae6rt
Copy link

ae6rt commented Jun 3, 2019

Feature Request

Redis open source will support TLS in the not distant future. TLS support in the Sentinel will likely follow soon thereafter.

Please implement TLS support in Jedis to support Sentinel mode. This would include not only connecting to the Sentinel over TLS, but also connecting to the sentinel-reported master over TLS.

Is your feature request related to a problem? Please describe

Financial services and enterprise users of Jedis, including those using Jedis by way of Spring Data Redis, are increasingly being asked to ensure all service traffic is encrypted via TLS.

Describe alternatives you've considered

  • removing calls to the Sentinel API in our code, migrating to the lower level Redis API for Redis Cluster (when it supports TLS - see link above) or Redis Enterprise. This would be painful for the number of applications we have that program to the Sentinel API.
  • stunnel and spiped, neither of which work well for how our services are deployed and maintained
  • exotic IPSec solutions to encrypt traffic on the wire in lieu of first class TLS support in Sentinel mode
@gkorland
Copy link
Contributor

gkorland commented Jul 17, 2019

@ae6rt is #2024 what you need?

@ae6rt
Copy link
Author

ae6rt commented Jul 17, 2019

@gkorland Yes, this seems to be the same feature request.

@gkorland
Copy link
Contributor

@ae6rt so does that PR good enough? can you verify it's working on your environment?

@ae6rt
Copy link
Author

ae6rt commented Jul 18, 2019

@gkorland I need a few days to study my code and whether the code in #2024 slots into the way I build the connection factory.

@ae6rt
Copy link
Author

ae6rt commented Jul 18, 2019

I don't have a definitive answer for whether #2024 will work for me. However, I can say that this is the nexus of how we define our sentinel-based connection factory:

JedisConnectionFactory factory = new JedisConnectionFactory(new RedisSentinelConfiguration(sentinel.master, sentinel.nodes), poolConfig);

I don't see obvious support in the #2024 PR for me sticking with this idiom --- unless the TLS enabled flag is completely constrained to the sentinel pool config (poolConfig). Would it be?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants