Nam Nguyen
Nam Nguyen

Reputation: 5750

Redis database index restriction to IP

in Redis, is it possible to only allow certain IP addresses can update selective database index?

For example:

127.0.0.1 can only update database index 1
127.0.0.2 can update all database indexes           

Upvotes: 1

Views: 335

Answers (1)

Eli
Eli

Reputation: 38949

No. Per the docs:

While Redis does not try to implement Access Control, it provides a tiny layer of authentication that is optionally turned on editing the redis.conf file. When the authorization layer is enabled, Redis will refuse any query by unauthenticated clients. A client can authenticate itself by sending the AUTH command followed by the password.

A global password for authenticating is the only authentication Redis provides AFAIK.

Upvotes: 1

Related Questions