Issues with ACL rules for Sentinel

177 views
Skip to first unread message

Ankit Gupta

unread,
Apr 17, 2023, 3:44:22 AM4/17/23
to Redis DB
I am following #ACL rules for Sentinel and Replicas described in https://redis.io/docs/management/security/acl/
but getting below exception while running the command as-is.

127.0.0.1:26379> ACL SETUSER sentinel-user on >somepassword allchannels +multi +slaveof +ping +exec +subscribe +config|rewrite +role +publish +info +client|setname +client|kill +script|kill
(error) ERR Error in ACL SETUSER modifier '+multi': Unknown command or category name in ACL
127.0.0.1:26379>

In which use-cases will acl on sentinel will be helpful ?

Looking for a prompt response on this. Thanks in advance.



Itamar Haber

unread,
Apr 17, 2023, 6:20:35 AM4/17/23
to Redis DB
Hello Ankit,

The error suggests that you're configuring the ACL of the Sentinel instance (as `MULTI` is a Redis command, not Sentinels).

The use case for Sentinel's ACL is the same as any ACL - control of access to the resource. For example, you may want the application to be able to discover the active Redis masters but block it from performing configuration changes. This, and much more, can be accomplished with Sentinel's ACLs.

Cheers,
Itamar

Ankit Gupta

unread,
Apr 18, 2023, 3:31:56 AM4/18/23
to Redis DB
Thanks for the prompt response Itamer :)

Got confused as we were setting up sentinel-user.

Reply all
Reply to author
Forward
0 new messages