shenyu icon indicating copy to clipboard operation
shenyu copied to clipboard

[Task] desensitization of main fields in logs #3861

Open huanccwang opened this issue 3 years ago • 1 comments

[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: 截屏2022-09-08 02 00 22 截屏2022-09-08 02 00 41 截屏2022-09-08 02 00 48

User can add keyword and choose maskType when they make the logging rules,like this: 截屏2022-09-08 02 00 03

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: 截屏2022-09-08 02 51 47

截屏2022-09-08 02 46 25

huanccwang avatar Sep 07 '22 18:09 huanccwang

pls use two input for keyword and condition

moremind avatar Sep 08 '22 04:09 moremind