Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Add support for Redis Sentinel authentication #1002
I am trying to connect to the sentinel node of a Redis setup in AWS, and I am getting the message:
Just used a template for Spring Boot from
spring: redis: password: *********** sentinel: master: redis-master nodes: - redis-sentinel.host
It should connect without a problem.
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
Thanks a lot for the ticket. I wasn't aware of the sentinel change and TBH, I'm not quite sure how to deal with that.
Thanks for the heads up. I took a look and the
Redis now supports authentication against Redis Sentinel that was introduced with Redis 5.0.1. The password can be only set programmatically as URI-based user-info applies to the actual Redis server. RedisURI sentinelUrl = RedisURI.Builder.sentinel("host", 26379, "my-master", "some-password").build();
@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
I have this in my gradle file:
My application properties has this:
Yet, when starting up, I still get the same exception:
Upgraded Spring Data Redis to 2.2.0:
Still same issue.