Home » Redis Security

Redis Security

Security is very necessary for a database to keep the data safe and secure. It provides an authentication so if a client want to make a connection needs to authenticate before executing a command.

You need to set a password in the config file to secure a Redis databse.

Example

Let’s see how to secure your Redis instance.

Use the “config get command”

Redis Security 1

You can see that the above property is blank means we don’t have any password for this instance. You can change this property and set a password for this instance by executing the following command.

Redis Security 2

Redis Security 3

When you set this password then if a client runs the command without authentication, he will get an error “NOAUTH Authentication required.”. Hence, the client needs to use AUTH command to authenticate himself.


Usage of AUTH Command

Redis Security 4

Next TopicRedis Benchmarks

You may also like