Skip to content

test: cover PayloadMasker edge cases - #319

Merged
easyhooon merged 1 commit into
mainfrom
test/payload-masker-edge-cases
Dec 5, 2026
Merged

easyhooon merged 1 commit into
mainfrom
test/payload-masker-edge-cases

Conversation

@easyhooon

Copy link
Copy Markdown
Owner

Closes #318

Pins current PayloadMasker behavior on edge cases: empty input, non-ASCII and emoji, number literals and non-string sensitive values, duplicate keys, triple-nested stringified JSON, leading whitespace, single-quoted pseudo-JSON, hyphenated query keys, 20,000-level nesting, and a 20,000-object payload.

The deep-nesting test checks only that nothing leaks, since whether it ends in REDACTION_FAILED depends on the thread's stack size.

The leaks listed under "Known gaps" in #318 are not fixed here.

@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 marked this pull request as ready for review December 5, 2026 07:02
@easyhooon
easyhooon merged commit f9504eb into main Dec 5, 2026
3 of 4 checks passed
@easyhooon
easyhooon deleted the test/payload-masker-edge-cases branch December 5, 2026 07:03
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.

test: cover PayloadMasker edge cases

1 participant