networknt / light-4j

A fast, lightweight and more productive microservices framework
Apache License 2.0
3.61k stars 633 forks source link

Mask body in list or map format instead of string format #13

Open stevehu opened 7 years ago

stevehu commented 7 years ago

We have a mask module to mask sensitive data from header, query parameter, path parameter and body. It works with JSON object with JSON Path with configuration. With the introduction of Body module that parses body of application/json to list or map, we need to update the mask module to work with list and map. Regarding to traverse the list or map, here is an example. https://github.com/networknt/light-java/blob/master/sanitizer/src/main/java/com/networknt/sanitizer/SanitizerHandler.java

lanphan commented 5 years ago

I'll take this if @ddobrin busy, just because I'm reviewing this module

ddobrin commented 5 years ago

I have assigned this to you as well.

Please send a PR after you make changes. Thank you