This command can be used to add,remove and configure users.
The acl data is stored separately from the main and does not get replicated.
ACL can only be used on the RESP interface defaulted to port 14000.
A special all flag can be used to grant or remove ALL permissions.
Available options are GETUSER,SETUSER and DEL
See examples below for usage.
Upon connection the default user is authenticated - if no rights are supplied then all rights are assumed.
ACL can be used to reduce rights of the default user.
defaultThe default password for the default user is empty if this password is changed no useful connection is possible because AUTH cannot succeed.
it would be better to use ACL SETUSER default -all +auth
ACL SETUSER default on >emptyThere are thirteen (13) categories to choose from when creating user permissions:
The > sign is used to set the user secret, the user edited is krease
> ACL GETUSER krease
(nil)
> ACL SETUSER krease on >test123 +read +write +keys +orderedset +hash +connection +list
OK
> ACL GETUSER krease
1) "connection"
2) true
3) "data"
4) true
5) "hash"
6) true
7) "keys"
8) true
9) "list"
10) true
11) "orderedset"
12) true
13) "read"
14) true
15) "write"
16) true
> ACL SETUSER krease on -list
OK
> ACL GETUSER krease
1) "connection"
2) true
3) "data"
4) true
5) "hash"
6) true
7) "keys"
8) true
9) "list"
10) false
11) "orderedset"
12) true
13) "read"
14) true
15) "write"
16) true
> ACL DEL krease
OK
> ACL GETUSER krease
(nil)