mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
Don't log admin commands in MONITOR.
Otherwise there are security risks, especially when providing Redis as a service, the user may "sniff" for admin commands renamed to an unguessable string via rename-command in redis.conf.
This commit is contained in:
parent
97d43d0638
commit
d6410ed19a
@ -2033,7 +2033,7 @@ void call(redisClient *c, int flags) {
|
|||||||
* not generated from reading an AOF. */
|
* not generated from reading an AOF. */
|
||||||
if (listLength(server.monitors) &&
|
if (listLength(server.monitors) &&
|
||||||
!server.loading &&
|
!server.loading &&
|
||||||
!(c->cmd->flags & REDIS_CMD_SKIP_MONITOR))
|
!(c->cmd->flags & (REDIS_CMD_SKIP_MONITOR|REDIS_CMD_ADMIN)))
|
||||||
{
|
{
|
||||||
replicationFeedMonitors(c,server.monitors,c->db->id,c->argv,c->argc);
|
replicationFeedMonitors(c,server.monitors,c->db->id,c->argv,c->argc);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user