[DATAREDIS-1045] Redis Sentinel Authentication not supported Created: 10/Oct/19 Updated: 05/Jan/20 Resolved: 30/Oct/19
|Project:||Spring Data Redis|
|Affects Version/s:||2.2 GA (Moore)|
|Fix Version/s:||2.2.1 (Moore SR1), 2.3 M1 (Neumann)|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
|Pull Request URL:||https://github.com/spring-projects/spring-data-redis/pull/490/files|
It looks like spring-data-redis 2.2 with lettuce-core 5.2.0 added support for Authentication on Redis when using Sentinel, but only when the authentication is enabled on the Redis node. In my setup, where both the Redis and Sentinel node have authentication enabled, I cannot seem to get it to work.
For simplicity let's assume the same password is set on both, but in reality this could of course be different.
For more details, see the latest discussion on this ticket on lettuce-core where it discusses the support for authentication:
To quote Mark Paluch there:
Preferably, the spring.redis.password is used for both Redis and Sentinel nodes by default, while also adding a new spring.redis.sentinel.password property to deal with scenarios where the Sentinel and Redis node passwords are different.
|Comment by James Howe [ 08/Nov/19 ]|
This has broken any setup where sentinel doesn't have a password but redis does.
In particular, Redis before v5 (such as available in Ubuntu LTS) doesn't support sentinel auth at all.
|Comment by cverges-medallia [ 05/Jan/20 ]|
I'm also experiencing the same issue as James Howe. The PR appears to have made an assumption that the Redis and Sentinel passwords would be set the same, versus being independently controlled. Is there a workaround?
|Comment by Mark Paluch [ 05/Jan/20 ]|
The issue was addressed with