You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DATAREDIS-1060 - Redis password should not automatically be applied to Sentinel.
We now expose two separate properties in RedisSentinelConfiguration to configure the data password individually from the sentinel password. Original pull request: spring-projects#495.
Copy file name to clipboardExpand all lines: src/main/asciidoc/reference/redis.adoc
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -174,13 +174,14 @@ public RedisConnectionFactory lettuceConnectionFactory() {
174
174
.Configuration Properties
175
175
* `spring.redis.sentinel.master`: name of the master node.
176
176
* `spring.redis.sentinel.nodes`: Comma delimited list of host:port pairs.
177
+
* `spring.redis.sentinel.password`: The password to apply when authenticating with Redis Sentinel
177
178
====
178
179
179
180
Sometimes, direct interaction with one of the Sentinels is required. Using `RedisConnectionFactory.getSentinelConnection()` or `RedisConnection.getSentinelCommands()` gives you access to the first active Sentinel configured.
180
181
181
182
[NOTE]
182
183
====
183
-
Configuration options like password, timeouts, SSL... also get applied to Redis Sentinel when using https://lettuce.io/[Lettuce].
184
+
Sentinel authentication is only available using https://lettuce.io/[Lettuce].
"Configuration uses Redis Data Node password for authenticating with Sentinel. Please set 'RedisSentinelConfiguration.useDataNodeAuthenticationForSentinel(false)' before using this option.");
262
+
Assert.notNull(sentinelPassword, "SentinelPassword must not be null!");
"Configuration already defines a password for authenticating with Sentinel. Please use 'RedisSentinelConfiguration.setSentinelPassword(RedisPassword.none())' remove the password.");
0 commit comments