diff options
author | Wen Hui <wen.hui.ware@gmail.com> | 2020-10-28 09:05:00 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-28 15:05:00 +0200 |
commit | efd17316ab122f5ddd9ecd89a98f30759b076a10 (patch) | |
tree | 01affd3497424449c5c0426358b9c27bfbcdc664 /sentinel.conf | |
parent | 434270374344bbdfa36545a93868b7920e4f47ce (diff) | |
download | redis-efd17316ab122f5ddd9ecd89a98f30759b076a10.tar.gz |
add acl related config in sentinel.conf (#7952)
Diffstat (limited to 'sentinel.conf')
-rw-r--r-- | sentinel.conf | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/sentinel.conf b/sentinel.conf index 50a36a314..39d6929e7 100644 --- a/sentinel.conf +++ b/sentinel.conf @@ -124,6 +124,42 @@ sentinel monitor mymaster 127.0.0.1 6379 2 # Default is 30 seconds. sentinel down-after-milliseconds mymaster 30000 +# IMPORTANT NOTE: starting with Redis 6.2 ACL capability is supported for +# Sentinel mode, please refer to the Redis website https://redis.io/topics/acl +# for more details. + +# Sentinel's ACL users are defined in the following format: +# +# user <username> ... acl rules ... +# +# For example: +# +# user worker +@admin +@connection ~* on >ffa9203c493aa99 +# +# For more information about ACL configuration please refer to the Redis +# website at https://redis.io/topics/acl and redis server configuration +# template redis.conf. + +# ACL LOG +# +# The ACL Log tracks failed commands and authentication events associated +# with ACLs. The ACL Log is useful to troubleshoot failed commands blocked +# by ACLs. The ACL Log is stored in memory. You can reclaim memory with +# ACL LOG RESET. Define the maximum entry length of the ACL Log below. +acllog-max-len 128 + +# 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 redis.conf to describe users. +# +# aclfile /etc/redis/sentinel-users.acl + # requirepass <password> # # You can configure Sentinel itself to require a password, however when doing |