How to restrict commands in Azure Cache for Redis

Viewed 201

Redis Cache allows to disable, rename possibly harmful commands FLUSHALL, FLUSHDB, etc.

We use Azure Cache for Redis where:

The problem:

The same Redis Db is used by many apps using different key prefixes. Anyone can connect to that Redis Db (ex: dev env) via some UI Client and accidentally execute FLUSHALL and erase all data. And we even do not know who it was.

Question:

Is their a possibility to restrict, disable, rename FLUSHALL command to prevent accidental usage?

1 Answers

Is there a possibility to restrict, disable, rename FLUSHALL command to prevent accidental usage?

You can disable commands in Redis Cache or can rename them like FLUSHALL, FLUSHDB etc.

But it is not possible in Azure Redis Cache to restrict, disable, rename FLUSHALL command to prevent accidental usage.

Related