Skip to content

fix: mask the value of sensitive name/value pairs - #321

Merged
easyhooon merged 2 commits into
mainfrom
fix/mask-name-value-pairs
Dec 5, 2026
Merged

easyhooon merged 2 commits into
mainfrom
fix/mask-name-value-pairs

Conversation

@easyhooon

Copy link
Copy Markdown
Owner

Part of #320 (gap 1). Stacked on #319.

PayloadMasker now masks the value field of an object whose name or key field (any case) holds a string that would be a sensitive key, on Android and iOS:

[{"name":"Authorization","value":"xyz"}]  →  [{"name":"Authorization","value":"***"}]

This covers HAR headers/cookies, Postman key/value, AWS tags and Kubernetes env lists. It also hides non-secret pairs such as {"key":"login.password.hint","value":"..."}, which is the safe direction for an opt-in masker. The masking docs (en/ko) describe the rule.

Not covered: tuple arrays ([["authorization","x"]]) and flat name/value arrays (["Authorization","x"]), noted on #320.

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@easyhooon
easyhooon changed the base branch from test/payload-masker-edge-cases to main December 5, 2026 07:02
@easyhooon
easyhooon marked this pull request as ready for review December 5, 2026 07:10
@easyhooon
easyhooon merged commit d90b974 into main Dec 5, 2026
5 of 7 checks passed
@easyhooon
easyhooon deleted the fix/mask-name-value-pairs branch December 5, 2026 07:10
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.

1 participant