akiyamaneko opened a new pull request #3267:
URL: https://github.com/apache/ambari/pull/3267


   ## 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
   
   
![ambari-agent-secret-shows-ok](https://user-images.githubusercontent.com/52202080/100372929-ea323380-3044-11eb-95d0-722dc4667f0a.png)
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to