我正在尝试在users.acl文件中设置sentinel_user acl用户,该用户仅具有运行与sentinel相关的命令的有限权限。
我试着在redis documentaion下面设置这个用户:
ACL SETUSER sentinel_user ON nopass allchannels +multi +slaveof +ping +exec +subscribe +config|rewrite +role +publish +info +client|setname +client|kill +script|kill
但是我在启动sentinel_user时遇到了问题,因为它说# Aborting Redis startup because of ACL errors:Error in applying operation '+script|kill': Unknown command or category name in ACL
完整错误日志:
052811:X 25 Jul 2023 15:01:06.354 # Aborting Redis startup because of ACL errors: /home/somepath/redis-centinal-poc/redis-7.0.11/users.acl:6: Error in applying operation '+script|kill': Unknown command or category name in ACL. /home/somepath/redis-centinal-poc/redis-7.0.11/users.acl:6: Error in applying operation '+exec': Unknown command or category name in ACL. /home/somepath/redis-centinal-poc/redis-7.0.11/users.acl:6: Error in applying operation '+multi': Unknown command or category name in ACL. /home/somepath/redis-centinal-poc/redis-7.0.11/users.acl:6: Error in applying operation '+config|rewrite': Unknown command or category name in ACL. /home/somepath/redis-centinal-poc/redis-7.0.11/users.acl:6: Error in applying operation '+slaveof': Unknown command or category name in ACL. WARNING: ACL errors detected, no change to the previously active ACL rules was performed
1条答案
按热度按时间lyr7nygr1#
您尝试创建的用户必须在Redis示例中创建,而不是在Sentinel示例中创建。
有两个用户与Sentinel相关:
创建用户后,您必须在所有Sentinal示例中对其进行配置。在运行时执行此操作的示例: