Closed kzanetty closed 4 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 100.00%. Comparing base (
d8831e2
) to head (c0e90cd
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Status
READY
Whats?
Add validation to ensure that the value is not null. If it is, the field should be completely masked.
Why?
Currently, if null is passed as the value, JsonMasking is aborted and AspNet.Serilog returns the object unchanged, exposing all data. This results in logs containing open card data and other sensitive information.
How?
This can be resolved by adding a simple validation. If the delegate is null, it should completely mask the data instead of aborting the JsonMasking.
Attachments (if appropriate)
Definition of Done: