The problem/use-case that the feature addresses
The current ACL can only use ACL SETUSER myuser -select +select|0 to restrict users from using db,
First I use command ACL SETUSER myuser -select +select|1 to limit myuser only use db1
If I have selected 1 db with the command select 1 and then remove the select command with the command ACL SETUSER myuser -select, the myuser user can still manipulate the 1 db
Description of the feature
Add a new rule to the ACL to restrict user access to the db.
Alternatives you've considered
Add new rules, such as [0 1 2], to restrict user access to the db.
Add a new command ACL SETUSER myuser [2 to add user access to db0.
command ACL SETUSER myuser ]2 to restrict user access to db2.
command ACL SETUSER myuser [0 1 2 3] to override the user's access to db.
Additional information
Changes to db access rights take effect immediately. For example, the user myuser is already using db2. If you delete db2 access rights with a command, all subsequent operations to db2 by myuser will be unavailable
Comment From: lqxhub
If this feature is needed, I'd like to try it out
Comment From: sundb
@lqxhub this issue had been discussed in https://github.com/redis/redis/issues/8099 and was rejected.
Comment From: lqxhub
@lqxhub this issue had been discussed in #8099 and was rejected.
Thank you very much. I can see why