Add support for Redis Sentinel authentication
See original GitHub issueBug Report
Current Behavior
I am trying to connect to the sentinel node of a Redis setup in AWS, and I am getting the message:
NOAUTH Authentication required.
Input Code
Just used a template for Spring Boot from start.spring.io
with redis my properties are
spring:
redis:
password: ***********
sentinel:
master: redis-master
nodes:
- redis-sentinel.host
Expected behavior/code
It should connect without a problem.
Environment
- Lettuce version(s): 5.1.4.RELEASE, 5.1.5.RELEASE
- Redis version: 5.0.1
Possible Solution
I think the problem is that from 5.0.1 and on they added authentication on the Sentinel and that’s why it’s failing. For more info check Redis 5 Release Notes
Issue Analytics
- State:
- Created 5 years ago
- Comments:16 (6 by maintainers)
Top Results From Across the Web
High availability with Redis Sentinel
Popular client libraries have Sentinel support, but not all. ... To use Sentinel with password-only authentication, add the requirepass configuration ...
Read more >Redis Sentinel Authentication - Stack Overflow
Redis servers configured as Sentinels do not support AUTH by design. Be sure to place Sentinels on a secure network. – Cy Rossignol....
Read more >Add support for sentinel authentication #594 - predis ... - GitHub
We really need to find a way to specify a common password for sentinels so that it's handled in a different way from...
Read more >Support Sentinel authentication through `requirepass` - GitLab
Problem to solve. As of now, it is not possible to enforce client authentication at Sentinel level, even if Redis auth is enabled....
Read more >Redis source · High availability · Administration · Help · GitLab
Step 3. Configuring the Redis Sentinel instances ... Sentinel is a special type of Redis server. It inherits most of the basic configuration...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
After some help i was able to connect to redis as :
@mp911de How is this to be used with Spring Boot? I am running into the same issue where I have a password on both my Sentinel and Redis node (same password), but upgrading to
lettuce-core
5.2.0.RELEASE
does not solve the issue.I have this in my gradle file:
When running
gradle dependencies
, I see that lettuce-core version is successfully overridden from 5.1.8. to 5.2.0:My application properties has this:
Yet, when starting up, I still get the same exception:
io.lettuce.core.RedisCommandExecutionException: NOAUTH Authentication required.