I searched google for this but didn't get a clue.
Suppose a user has full read/write access to Redis database. I am wondering, is there any way to connect to database in read-only mode?
Redis, until and including v5, does not have the notion of user privileges as it does not support the notion of users. There is one user as far as the database is concerned, and that user is omnipotent.
That said, since v2.6 replicas are configured by default to reject writes, effectively making them a read-only interface (the replica-read-only
configuration directive).
Note: it is expected that in its next major version, Redis will provide user access lists.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With