ThiagoBarradas / jsonmasking

Replace fields in json, replacing by something, don't care if property is in depth objects. Very useful to replace passwords credit card number, etc.
MIT License
174 stars 47 forks source link

[Feature] Add partial masking feature #8

Closed kzanetty closed 4 months ago

kzanetty commented 4 months ago

image

Status

IN REVIEW

Whats?

Add the option for a new blacklist where some properties do not need to be fully masked anymore. New rules can be applied to them for partial masking.

Why?

We need a way to display the card BINs, and the option to apply a custom partial mask would solve this problem.

How?

Add a new parameter, which is a dictionary where the key is the property to be masked and the value is a function that applies a specific masking rule to that property.

Definition of Done:

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (20ae088) to head (1f99665).

:exclamation: Current head 1f99665 differs from pull request most recent head 29af657

Please upload reports for the commit 29af657 to get more accurate results.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #8 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 1 1 Lines 33 56 +23 Branches 10 17 +7 ========================================= + Hits 33 56 +23 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.