Skip to content

Commit

Permalink
feat:pika support acl (OpenAtomFoundation#2013)
Browse files Browse the repository at this point in the history
copy from redis acl
---------

Co-authored-by: Chengyu Liu <chengyu_l@126.com>
  • Loading branch information
lqxhub and chengyu-l authored Jan 10, 2024
1 parent e6a5852 commit b7f6c58
Show file tree
Hide file tree
Showing 56 changed files with 5,339 additions and 907 deletions.
34 changes: 32 additions & 2 deletions conf/pika.conf
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ requirepass :
# [NOTICE] The value of this parameter must match the "requirepass" setting on the master.
masterauth :

# The [password of user], which is empty by default.
# The [password of user], which is empty by default.(Deprecated)
# [NOTICE] If this user password is the same as admin password (including both being empty),
# the value of this parameter will be ignored and all users are considered as administrators,
# in this scenario, users are not subject to the restrictions imposed by the userblacklist.
# PS: "admin password" refers to value of the parameter above: requirepass.
userpass :
# userpass :

# The blacklist of commands for users that logged in by userpass,
# the commands that added to this list will not be available for users except for administrator.
Expand Down Expand Up @@ -471,3 +471,33 @@ cache-maxmemory-samples: 5
# cache-lfu-decay-time
cache-lfu-decay-time: 1


# is possible to manage access to Pub/Sub channels with ACL rules as well. The
# default Pub/Sub channels permission if new users is controlled by the
# acl-pubsub-default configuration directive, which accepts one of these values:
#
# allchannels: grants access to all Pub/Sub channels
# resetchannels: revokes access to all Pub/Sub channels
#
# acl-pubsub-default defaults to 'resetchannels' permission.
# acl-pubsub-default : resetchannels

# ACL users are defined in the following format:
# user : <username> ... acl rules ...
#
# For example:
#
# user : worker on >password ~key* +@all

# Using an external ACL file
#
# Instead of configuring users here in this file, it is possible to use
# a stand-alone file just listing users. The two methods cannot be mixed:
# if you configure users here and at the same time you activate the external
# ACL file, the server will refuse to start.
#
# The format of the external ACL user file is exactly the same as the
# format that is used inside pika.conf to describe users.
#
# aclfile : ../conf/users.acl

Loading

0 comments on commit b7f6c58

Please sign in to comment.