- Each user will be a key prefixed with $$user_${user_name}
- Token to access that user will be the value of the key
- That token should be stored encrypted
- Permission will the stored as a key $$permission_${user_name} and as a string ... maybe use the rw linux like
- Per-database so we can easier manage a cluster with many customers
- There will be 2 kinds of base permission, allow, deny. Allow user will by default have no access and will have to have a list of keys they have access too. On the other hand deny user will have access to all keys and one can limit their access.
- The permission will be stored in the key
$$permission_${user_name}
as the first value e.g read,r *
or write:w test*
read and writerw
, incrementi
- e.g
set-permissions $user_name $type $keys $type $keys
command - e.g
set-permissions jose rw test
# Read write test - e.g
set-permission jose r test,$connections rw user_*
- Permission to became arbiter
- Read and write different permission
- Document how to set permission for all databases
- Set different permissions for multiple users