ambari
ambari copied to clipboard
[AMBARI-25593] ambari-agent.log output prints password in plain text
What changes were proposed in this pull request?
Introduce a new ambari-agent parameter: secret_hidden_pattern to define which kind of attributes in log printing need to be hidden values. This parameter accepts regular expressions for users to custom hidden rule as the actual situation. The default value (?i).*(secret|password).* means that only the key contains keyword password would be handled. Usesr can easily custom the rule such as ``(?i).(secret|password).` or other rules to satisify their own requirements.
How was this patch tested?
manual tests
