Search⌘ K

Redis Security

Understand how to enable authentication in Redis to protect your database from unauthorized access. Learn how to set passwords, authenticate users, and rename commands to restrict harmful operations. This lesson helps you implement basic security measures to safeguard your Redis instance.

It is important that the Redis database is secured so that any unwanted user is unable to access the data. Security is also required to restrict an attacker from executing a command, like FLUSHALL, which can delete the entire data.

Redis supports a very basic security system to protect the connection between the client and the server via a plain-text password. To secure Redis, the password should be set in the config file.

Redis only supports basic security mechanisms. Anyone who knows the password can access the data in Redis. It is not possible to have users with different permission levels in Redis.

How Redis is secured

By default, authentication is not ...