kyoty opened a new pull request #5638: URL: https://github.com/apache/dolphinscheduler/pull/5638
## Purpose of the pull request Some password attributes can be viewd directly in the log,It may leads to the leakage of sensitive data : ### 1.  ### 2.  ### 3.  ## Brief change log 1. Enhanced the regex pattern of password >+ **The previous regex matches only lowercase, we can now match case insensitive letters** >+ **The previous regex matches only double quote, we can now also match single quote** >+ **The previous regex only matched to individual words of password, and words like userPassword did not match successfully** 2. Move the SensitiveDataConverter and related testcase from module `dolphinscheduler-server` to project `dolphinscheduler-service` so that all modules('MasterServer', 'WorkerServer', 'APIServer' and 'AlertServer') can use this function in the log xml. 3. The way in test cases to create` ILoggingEven`t cannot be reused. So I **use The `Function<String, ILoggingEvent>` interface of JDK8 to simplify the Creation of `ILoggingEvent`, to make it easier to add new testCases in the future**. ## Verify this pull request refactor the existed UTS and munutal test works well, like below: ### 1.after modified  ### 2.after modified  ### 3.after modified  -- 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]
