wanghuan0606 opened a new pull request, #3927:
URL: https://github.com/apache/shenyu/pull/3927

   **[Task] desensitization of main fields in logs #3861**
   
   **In this pr, I mask logging data according keyword like uri,name,id et.**
   **I add two new plugin handler,and three dictionary value like this:**
   <img width="1920" alt="截屏2022-09-08 02 00 22" 
src="https://user-images.githubusercontent.com/61909123/188953074-e153867f-3fea-444c-b07e-a05ce42dcc6d.png";>
   <img width="1920" alt="截屏2022-09-08 02 00 41" 
src="https://user-images.githubusercontent.com/61909123/188953109-f7b1f473-ea1d-4c0b-8963-1b326ef294bc.png";>
   <img width="1920" alt="截屏2022-09-08 02 00 48" 
src="https://user-images.githubusercontent.com/61909123/188953133-43175e1a-67c1-4d55-8564-041eee49ed03.png";>
   
   **User can add keyword and choose maskType when they make the logging 
rules,like this**:
   <img width="1920" alt="截屏2022-09-08 02 00 03" 
src="https://user-images.githubusercontent.com/61909123/188952588-0b403f0d-709a-42fb-a13e-666e8bb5ebde.png";>
   
   **Now,I provide two mask types include charReplace and MD5,then user can 
extend their own mask types.Only need implements DataMaskInterface and create 
new dictionary that dictionary type is "maskType" and dictionary value is their 
function like this:**
   <img width="569" alt="截屏2022-09-08 02 51 47" 
src="https://user-images.githubusercontent.com/61909123/188955468-30b19d02-6dc1-4835-94ec-9b8a952f8421.png";>
   
   <img width="1920" alt="截屏2022-09-08 02 46 25" 
src="https://user-images.githubusercontent.com/61909123/188954718-530dd37e-c743-4c2f-8b67-4b817cba3e39.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.

To unsubscribe, e-mail: [email protected]

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

Reply via email to