Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement deep JSON redaction #292

Merged
merged 1 commit into from
Sep 18, 2024
Merged

Implement deep JSON redaction #292

merged 1 commit into from
Sep 18, 2024

Conversation

briancordanyoung
Copy link

A recursive deep redaction of all fields in child objects.

Previously, objects were inspected only to see if a key matched, but ignoring all other keys. This meant if the value of a key was another object or array it was left untouched. In other words, the only field names inspected were at the top level of the JSON hierarchy. All child object fields were left un-redacted.

Fixes: Values of keys that were objects or arrays are ignored—leaving key/values untouched that should be redacted.
@kean
Copy link
Owner

kean commented Sep 18, 2024

Good catch, and thanks for address it!
I'm not sure how I missed it.

@kean kean merged commit 29c1ad5 into kean:main Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants