Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions topics/acl.md
Original file line number Diff line number Diff line change
Expand Up @@ -654,11 +654,14 @@ Sentinel does not need to access any key in the database but does use Pub/Sub, s

Valkey replicas require the following commands to be allowed on the primary instance:

* PSYNC, REPLCONF, PING
* SYNC, PSYNC, REPLCONF, PING

For cluster deployments, Valkey 9.0 introduces the Atomic Slot Migration feature, which requires the replication user to be allowed to run `CLUSTER SYNCSLOTS`.
No keys need to be accessed, so this translates to the following rules:
For cluster deployments, Valkey 9.0 introduces the Atomic Slot Migration feature, which requires additional permissions:

ACL setuser replica-user on >somepassword +psync +replconf +ping +cluster|syncslots
* CLUSTER SYNCSLOTS, @write, SELECT

This translate to the following rules:

ACL setuser replica-user on >somepassword +sync +psync +replconf +ping +cluster|syncslots +@write +select ~*

Note that you don't need to configure the replicas to allow the primary to be able to execute any set of commands. The primary is always authenticated as the root user from the point of view of replicas.
Loading