Redis ACL,创建对不同密钥集具有不同权限的用户

Redis ACL, creation of a user who has different permission on different set of keys

我一直在尝试创建一个用户,该用户对一组特定的密钥(user.{userId}.)具有读取权限,并且必须具有对所有其他密钥执行任何命令的权限keys/a 键集(com.mycompany.).

你能帮我用 cli 在 Redis 中创建这样的用户吗?

我试过这样做

1 - >test123 ~user.user123.* +@read

上的 ACL SETUSER test3

2 - >test123 ~com.mycompany.* +@all

上的 ACL SETUSER test3

但是 +@all 覆盖读取,我可以在执行第二个命令后修改以 user.user123.* 开头的键,这不应该是这种情况。

Redis ACL暂不支持。 key accesscommand accessACL Rule 被拆分。因此不支持具有不同访问命令的不同密钥。