cassandra-medusa
cassandra-medusa copied to clipboard
nodetool password displayed in logs when in debug mode
Detected version : 0.10.0
Nodetool user and password are stored in Nodetool class instance.
When a nodetool command is run (like here) and medusa is in debug
mode, all nodetool parameters are logged, including the password.
IMO, a password should never be logged anywhere, no matter what is the log level.
┆Issue is synchronized with this Jira Story by Unito
Agreed, and good catch 👍
I see two options:
- Generate safe command lines with sensitive data stripped out prior to log them
- Use a specific logger Formatter that uses a regex to replace sensitive data with a hardcoded string e.g.
***
Option 2 can be extended to include other secrets -- not only nodetool password.