Skip to content

fix: mask credential, private key, signature and auth keys - #326

Open
easyhooon wants to merge 1 commit into
mainfrom
fix/mask-more-credential-keys
Open

easyhooon wants to merge 1 commit into
mainfrom
fix/mask-more-credential-keys

Conversation

@easyhooon

Copy link
Copy Markdown
Owner

Summary

Covers case 5 of #320 on Android and iOS.

  • Contains-match keys: credential, privatekey, signature (also in key-value text as credential, private[_-]?key, signature).
  • Exact-match key: auth, so author stays visible. Like the other short keys, it isn't matched in plain text.
  • Tests in PayloadMaskerTest / PayloadMaskerTests, docs (en/ko) updated.

The other cases (cookie header, unquoted multi-word text, non-English keys, header tuple/flat arrays) are HTTP- or app-specific shapes outside the bridge payload scope; see the note on #320.

Closes #320

@coderabbitai

coderabbitai Bot commented Dec 5, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 30 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between eb27fb5 and d62816e.

Files selected for processing: 6

  • dari-ios/Sources/Dari/PayloadMasker.swift
  • dari-ios/Tests/DariTests/PayloadMaskerTests.swift
  • dari/src/main/kotlin/com/easyhooon/dari/masking/PayloadMasker.kt
  • dari/src/test/kotlin/com/easyhooon/dari/masking/PayloadMaskerTest.kt
  • documentation/content/docs/ko/masking.mdx
  • documentation/content/docs/masking.mdx
  • 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

This branch has not been deployed

No deployments
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.

PayloadMasker leaks values in five input shapes

1 participant