Skip to content

feat: add maskFields helper for redacting sensitive fields in logs - …#589

Open
mitchellecm7 wants to merge 1 commit into
accesslayerorg:mainfrom
mitchellecm7:feat/mask-fields-helper-569
Open

feat: add maskFields helper for redacting sensitive fields in logs - …#589
mitchellecm7 wants to merge 1 commit into
accesslayerorg:mainfrom
mitchellecm7:feat/mask-fields-helper-569

Conversation

@mitchellecm7

Copy link
Copy Markdown
  • Added maskFields(obj, fields) to log-field-sanitizer.utils.ts
  • Replaces named field values with [REDACTED]
  • Works recursively for nested objects
  • Does not mutate the original object
  • Non-existent field names ignored without error

Closes #569

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.

Add helper for masking sensitive fields before writing objects to structured logs

1 participant