Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2243 from aiven/harshini-redis-commands
Browse files Browse the repository at this point in the history
Added restricted Redis commands
  • Loading branch information
harshini-rangaswamy authored Nov 21, 2023
2 parents 5e2763a + 326d567 commit a130795
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/vale/dicts/aiven.dic
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ DZone
Elasticsearch
Epicurious
etcd
eval
event_type
European Union
failover
Expand Down
2 changes: 2 additions & 0 deletions _toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1290,6 +1290,8 @@ entries:
title: Lua scripts
- file: docs/products/redis/concepts/memory-usage
title: Memory management and persistence
- file: docs/products/redis/concepts/restricted-redis-commands
title: Restrict Redis commands
- file: docs/products/redis/howto
title: HowTo
entries:
Expand Down
40 changes: 40 additions & 0 deletions docs/products/redis/concepts/restricted-redis-commands.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
Restricted Aiven for Redis®* commands
======================================

To maintain the stability and security of the Redis environment, the Aiven for Redis* service restricts certain Redis commands. This section aims to provide you with a list of disabled/restricted commands.


Disabled commands
------------------

The Aiven for Redis* service has disabled the following Redis commands:

- ``bgrewriteaof``: Initiates a background append-only file rewrite.
- ``cluster``: Manages Redis cluster commands.
- ``command``: Provides details about all Redis commands.
- ``debug``: Contains sub-commands for debugging Redis.
- ``failover``: Manages manual failover of a master to a replica.
- ``migrate``: Atomically transfers a key from a Redis instance to another one.
- ``role``: Returns the role of the instance in the context of replication.
- ``slaveof``: Makes the server a replica of another instance, or promotes it as master.
- ``acl``: Manages Redis Access Control Lists.
- ``bgsave``: Creates a snapshot of the dataset into a dump file.
- ``config``: Alters the configuration of a running Redis server.
- ``lastsave``: Returns the UNIX timestamp of the last successful save to disk.
- ``monitor``: Streams back every command processed by the Redis server.
- ``replicaof``: Makes the server a replica of another instance.
- ``save``: Synchronously saves the dataset to disk.
- ``shutdown``: Synchronously saves the dataset to disk and then shuts down the server.

Disabled eval commands
-------------------------
The following script evaluation commands in the Aiven for Redis* service are disabled. If you require these commands to be enabled, contact Aiven support.

- ``eval``: Executes a Lua script server-side.
- ``eval_ro``: Read-only variant of the `eval` command.
- ``evalsha``: Executes a script cached on the server side by its SHA1 digest.
- ``evalsha_ro``: Read-only variant of the `evalsha` command.
- ``fcall``: Calls a Redis function.
- ``fcall_ro``: Read-only variant of the `fcall` command.
- ``function``: Manages Redis functions.
- ``script``: Manages the script cache.

0 comments on commit a130795

Please sign in to comment.