Uploaded image for project: 'Spring Data Redis'
  1. Spring Data Redis
  2. DATAREDIS-1045

Redis Sentinel Authentication not supported

    Details

      Description

      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:

      I took a look, LettuceConnectionFactory sets only the password on the RedisURI but not the Sentinel URI's. The bug should probably be fixed 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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mp911de Mark Paluch
                Reporter:
                cdekker Chris
                Last updater:
                Mark Paluch
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: