Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Redis Essentials

You're reading from   Redis Essentials Harness the power of Redis to integrate and manage your projects efficiently

Arrow left icon
Product type Paperback
Published in Sep 2015
Publisher Packt
ISBN-13 9781784392451
Length 230 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

The basic security


When Redis was designed, the main goals were maximum performance and simplicity, rather than maximum security. Although Redis implements a basic security mechanism, which is based on plain-text passwords, Redis does not implement Access Control List (ACL). Therefore, it is not possible to have users with different permission levels.

The authentication feature can be enabled through the configuration requirepass. Since Redis is superfast, requirepass could be dangerous as a malicious user could potentially guess thousands of passwords in a second. Avoid this by choosing a complex password of at least 64 characters.

After it is enabled, Redis will reject any commands from unauthenticated clients.

Copy the default redis.conf file to the chapter 7 folder, which is in the Redis source code directory. Every time the Redis configuration file is changed, the redis-server needs to be restarted; otherwise, the changes will not be applied.

Add the following to redis.conf:

requirepass...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image