• Wen Hui's avatar
    redis-cli - handle sensitive command redaction for variadic CONFIG SET (#11975) · a4a0eab5
    Wen Hui authored
    In the Redis 7.0 and newer version,
    config set command support multiply `<parameter> <value>` pairs, thus the previous
    sensitive command condition does not apply anymore
    
    For example:
    
    The command:
    **config set maxmemory 1GB masteruser aa** will be written to redis_cli historyfile
    
    In this PR, we update the condition for these sensitive commands
    config set masteruser <username>
    config set masterauth <master-password>
    config set requirepass foobared
    a4a0eab5
redis-cli.c 370 KB