shenyu
shenyu copied to clipboard
[Task] desensitization of main fields in logs #3861
[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:

User can add keyword and choose maskType when they make the logging rules,like this:

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:

pls use two input for keyword and condition