Repository navigation
sentinel protect mode & requirepass #3742
Replies: 2 comments
|
This is expected, but it depends on exactly where requirepass is set. A couple of things to check: Redis's protected-mode logic is: if protected-mode=yes and no bind directive is configured and no requirepass is set, non-loopback connections get rejected outright — regardless of the password you send. Once a valid requirepass is set on that instance, protected-mode should stop blocking external connections, since the password itself satisfies the security requirement protected-mode exists to enforce. Given you're seeing failures even with a password when protected-mode=yes, check: Is requirepass set on the Sentinel process itself (sentinel.conf), or only on the monitored Redis master? These are separate — Sentinel needs its own requirepass to authenticate clients connecting to Sentinel, and a separate sentinel auth-pass to authenticate to the monitored master/replicas. If you can share your sentinel.conf (with the password redacted), I can pin down exactly which layer is failing. |
|
Hi! These observations suggest that the Sentinel authentication configuration or the actual running configuration may differ from what you expect. A few important distinctions:
I would suggest checking the running configuration on the exact endpoint you are connecting to (typically port 26379 for Sentinel, versus 6379 for Redis). From a trusted local environment, check:
Also verify the active ACL configuration and whether the intended configuration file was actually loaded. If possible, could you share your Redis/Sentinel versions, the port you are connecting to, your sanitized configurations, and the exact error message? References: |
Uh oh!
There was an error while loading. Please reload this page.
Redis Sentinel, in my test:
Is that expected, or ?
All reactions