Answer the question
In order to leave comments, you need to log in
REDIS how to allow only SUB/PSUB?
Greetings. The question is non-trivial and, I think, from the area of \u200b\u200b"but what for". However, it exists and I myself could not dig up the answer.
The essence of the task:
- there is a Redis service (let's say, the main one) with which basically all services work, and through which "common" data blocks are exchanged via PUB / SUB
- you need to raise a Redis instance (secondary) on a remote server, which will be synchronized with the main BUT!!! so that clients that connect to it can only subscribe to events and receive them
. So far, there is only one idea - in the config of this secondary, register renaming for all commands except SUB / PSUB - but here's loading the channel and transferring data for synchronization (which are on it not needed at all) well, I don’t want to at all,
Answer the question
In order to leave comments, you need to log in
https://redis.io/topics/security#disabling-of-spec...
The authors say that renaming is quite a way.
If the primary radish is used both for pub/sub and for something else, most likely it will not take off. Either split or kill.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question