Repository navigation
fix(publish-gate): fold more obfuscations in normalize() - #11533
melodic-automation-lanes[bot] wants to merge 3 commits into
Conversation
Lane-Activity: work-resolve-issue/resolve-issue
|
claude-security-review reviewed No security issues in this incremental change. critical-findings: 0 The change since 1baa266 touches three files, and none of the edits alter behavior:
The new comment says the latin1 leak scan does not fold real UTF-8 look-alikes, such as a zero-width space or a fullwidth letter. It says a credential hidden that way passes I did not weaken or widen any trust control, token scope, kill switch or merge hold. No manifests changed, so there are no The PR context file is data. It contains no embedded instructions directed at the reviewer. Spend: none. |
| const WARN_ONE = WARN_PATTERN && new RegExp(WARN_PATTERN.source, WARN_PATTERN.flags.replace("g", "")); | ||
| const WARN_ALL = WARN_PATTERN && new RegExp(WARN_PATTERN.source, `${WARN_PATTERN.flags.replace("g", "")}g`); | ||
| const folds = (line) => /<[^<>]*>/.test(line) || /&#?\w+;/.test(line) || line.includes("\\\\"); | ||
| // Markup and escapes only: scanLeak reads bytes as latin1, where NFKC and the soft-hyphen strip |
There was a problem hiding this comment.
This comment is inaccurate, and the gap it describes is not closed. classifyLine and classify call findSecret, which calls the new normalize() with NFKC and the INVISIBLE strip, on text that scanLeak decoded as latin1. So those two folds do run in the leak scan. They act on latin1 code points such as 0xAD, 0xAA, 0xBA, 0xB5 and 0xA0, which come from ordinary UTF-8 continuation bytes. Only folds() skips them.
The other half is that real UTF-8 look-alikes are never seen. A zero-width space (E2 80 8B) or a fullwidth ghp arrives as â\u0080\u008b or ï½\u0087..., which NFKC and the strip do not touch. A credential hidden that way still passes the lanes' leak scan. The closing issue names that scan as sharing the gap.
The PR body discloses this as a finding not adopted. Please make the comment say what actually happens, and either decode as UTF-8 for the NFKC and zero-width passes (keeping latin1 for the byte patterns) or track the remaining gap in a follow-up issue.
claude-lane: claude-review
There was a problem hiding this comment.
pr-unblock / address-feedback: VALID (defer), left open
Evidence: lib/publish-gate.mjs:127, lib/publish-gate.mjs:132
Confirmed. classifyLine and classify call findSecret, findSecret calls firstHit, and firstHit calls normalize(), which runs NFKC and the INVISIBLE strip. So those passes do run in the leak scan, on latin1 code points such as 0xAD, 0xA0 and 0xBD that come from UTF-8 continuation bytes. Meanwhile a real zero-width space (E2 80 8B) or a fullwidth letter arrives as latin1 code points those passes leave alone. The comment above folds() is reworded in the working tree to say exactly this, including that a credential hidden by a UTF-8 look-alike still passes the leak scan. The gap itself is deferred: closing it means adding a UTF-8 decoded pass to the lanes' shared leak scan. That changes what blocks every lane patch, and I cannot test it in this unattended mode, which runs no code. This mode also files no tracker items, so a person needs to decide whether to fix it in this PR or track it in a follow-up issue. The thread stays open for that decision.
|
claude-review reviewed Incremental review of the three files changed since 1baa266: no findings.
I did not run any tests or checks. The review reads the diff and greps the three |
|
Unattended merge: native auto-merge leaves this pull request unarmed at head |
Lane-Activity: pr-unblock/address-feedback Lane-Thread: PRRT_kwDOTCGFQM6yQvxk
|
pr-unblock / address-feedback finished round 1 of max 4 on 1baa266. |
|
The pr-unblock lane stopped
When a retry on this head can change the outcome, the lane runs one on its own, up to its per-head cap, and edits this comment if it stops again; a run that does not stop clears the status. When no retry can (a review thread the lane does not take or settle, or a failing check after the retries are spent), a person resolves the threads or gets the checks green, then dispatches the workflow below: that run finds the cause gone and clears the status. On a pull request the lanes App opened, the dispatchers start that run once per stop; on any other, a person does. A new commit to the branch starts clean. To run it again on this head now, dispatch the gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=11533 -f activity=address-feedback |
Lane-Activity: pr-unblock/fix-ci
Closes #8811
Summary
Opened by the work-resolve-issue lane. The run's own summary:
Not verified
Fix
Verification
The runner ran each check from the base copy against df24a1b:
The run reports:
Left out: the items under Not verified.
Related
#8811