Description
Describe the bug
The value of db.statement
gets sanitized properly thanks to RedisCommandSanitizer
. However when there's a RedisCommandExecutionException thrown, the exception message, stacktrace & status description may contain sensitive data (e.g. password), and they get logged in plain text.
Steps to reproduce
N.A.
What did you expect to see?
the sensitive data should be redacted
What did you see instead?
the sensitive data is in plain text.
What version are you using?
latest version
Environment
Compiler: Jdk17
OS: Linux
Additional context
Checked the Lettuce core source code, it does not have special handling on the error output. The error message ("ERR unknown command HELLO
, with args beginning with: 3
, AUTH
, xxxx
, xxxxxxx
, ") seems directly from Redis server response.