Skip to content

fix: keep JWT privacy scanning within the release gate - #18

Merged
Yuki9814 merged 1 commit into
mainfrom
agent/jwt-linear-release-gate
Jul 29, 2026
Merged

fix: keep JWT privacy scanning within the release gate#18
Yuki9814 merged 1 commit into
mainfrom
agent/jwt-linear-release-gate

Conversation

@Yuki9814

Copy link
Copy Markdown
Owner

Maintainer problem

The immutable v0.5.0 tag reached the release workflow, where the near-2,000,000-character repeated-JWT-prefix regression took 2.14 seconds against its 2.00-second Ubuntu budget. The release correctly stopped before publishing assets.

Change

  • replace bounded-regex JWT matching with one monotonic, delimiter-driven pass and a fixed 1,028-entry header window
  • retain the existing word-boundary and segment-length contract, including fourth segments and chained tokens
  • coalesce chained-token masks without exposing later segments or promoting incomplete nested headers to findings
  • bump the unreleased fix to 0.5.1; the existing v0.5.0 tag is untouched and will not be reused

Evidence and verification

  • lint
  • 134 unit/component tests
  • production build and Pages asset-path verification
  • offline dependency audit: 0 vulnerabilities
  • 13 Chromium E2E tests
  • independent review: no P0/P1/P2; 10,800 old-regex compatibility cases matched
  • near-2M adversarial p95: repeated prefixes 59.62 ms, dense separators 20.77 ms, dense nested prefixes 162.75 ms
  • security and local-first boundary reviewed

Remote CI must prove the online dependency audit and Ubuntu timing gate before merge.

Risk and rollback

No schema, import, browser-storage, CSP, dependency, or network behavior changes. Revert this commit to restore v0.5.0 matching behavior; do not move or reuse the v0.5.0 tag.

Part of #13. External maintainer evidence remains N=0, so #13 stays open.

@Yuki9814
Yuki9814 marked this pull request as ready for review July 29, 2026 14:47
@Yuki9814
Yuki9814 merged commit 730d8af into main Jul 29, 2026
2 checks passed
@Yuki9814
Yuki9814 deleted the agent/jwt-linear-release-gate branch July 29, 2026 14:47
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