-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvcache.acl.example
More file actions
28 lines (28 loc) · 1.08 KB
/
vcache.acl.example
File metadata and controls
28 lines (28 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# vcache.acl – VoidCache ACL (Access Control List)
#
# Format: <username> <sha256_of_password_hex> <acl_flags>
#
# ACL flags:
# r – read (GET, KEYS, SCAN, EXISTS, TTL, TYPE, MGET, DBSIZE, INFO)
# w – write (SET, DEL, EXPIRE, INCR, APPEND, RENAME, MSET, FLUSHDB)
# a – admin (FLUSHDB, FLUSHALL, CONFIG, DEBUG, CLUSTER)
# p – pubsub (SUBSCRIBE, PUBLISH — future)
# * – all of the above
#
# To generate a password hash:
# echo -n "mypassword" | sha256sum
# ./vcli --hash-password mypassword (convenience helper)
#
# Example users:
#
# Full-access admin (password: "adminpass")
# admin 713bfda78870bf9d1b261f565286f85e97ee614efe5f0faf7c34e7ca4f65baca *
#
# Read-only service account (password: "readonly")
# reader 8171bacf32668a8f44b90087ad107ed63170f57154763ba7e44047bf9e5a7be3 r
#
# Application account with read+write (password: "apppass")
# app 46400f642c99584e51b14031f875ca9b7b33ccf94ff8d7657197a5bac06f4ffb rw
#
# Default user (no-username AUTH <password>) password: "secret"
default 2bb80d537b1da3e38bd30361aa855686bde0eacd7162fef6a25fe97bf527a25b rw