Skip to content

Fix retained notification sanitization, Burrow credentials, and audit ledger reads - #1759

Merged
nedtwigg merged 4 commits into
mainfrom
audit-closeout
Nov 12, 2026
Merged

nedtwigg merged 4 commits into
mainfrom
audit-closeout

Conversation

@nedtwigg

@nedtwigg nedtwigg commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Pending OSC 99 notification chunks now lose control characters before retention, preserving whitespace across chunk boundaries and the existing size limits. Burrow WebSocket connections carry their credential in an Authorization header on every attempt; both Relays reject query credentials, including requests that also supply a valid header. Browser Client authentication is unchanged.

The audit's three private-ledger reads now paginate GitHub's repository issue connection instead of the asynchronous search index. Newly filed findings appear immediately, existing unindexed keys are deduplicated, and accumulated run reports cannot exhaust a fixed read cap. Any failed page fails the read. The owning specs and integration tests cover these contracts.

Validation: 343 targeted parser/Burrow/service tests, 321 Linux Relay tests, 200 Linux audit/canary tests, and 81 Tool registry tests passed. Library and Hosted type checks and spec/Markdown/workflow/network lints passed. The exact paginated query was checked against the real tracker. The standalone browser-dev harness boots. GitHub CI, Hosted verification, and Chromium/WebKit visual checks passed. The local full Hosted suite had 385 passes and three timeouts; all three reproduced on unchanged main in the same WSL environment.

Compatibility: this intentionally requires updated Relay and desktop code for both Hosted and self-host. The maintainer explicitly waived backward compatibility for this task and confirmed no self-hosted deployments are in use. No query-token fallback is retained.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Deploying mouseterm with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3d026b6
Status: ✅  Deploy successful!
Preview URL: https://1a663524.mouseterm.pages.dev
Branch Preview URL: https://audit-closeout.mouseterm.pages.dev

View logs

@dormouse-bot dormouse-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Three points need a change or a decision before this merges; details are inline.

  1. dormouse.yml now fails to load on the code it ships with. main retired $PROJECT_ROOT in favor of $HERE (38fa90d), and tool-registry.test.ts pins that $PROJECT_ROOT is rejected as an unknown substitution. This change fixes an older installed dor but breaks every repo Tool for current builds and for the next release.
  2. Hosted refuses every Burrow that v1.3.0 shipped. v1.3.0's BurrowRuntime authenticates /ws/burrow with ?token= and supports Hosted enrollment. Production Hosted deploys separately from desktop releases. So whichever ships first breaks the other: a header-only relay Worker 401s every released desktop, and a header-only desktop 401s against today's Worker. The compatibility note covers only self-hosted Relays, where the rule "update the Relay and desktop together" can be followed. Users update their own desktops, so that rule can't hold for Hosted.
  3. The ledger reads now count per-run reports toward the 1000-issue cap. The rationale this PR rewrites recorded 95 tracker issues filed in the month before 2026-11-09. At that rate the --state all snapshot fills its read in under a year, and from then on every audit run fails closed. This PR drops the "within a year" estimate from the rationale and adds nothing that keeps it from happening.

Comment thread dormouse.yml Resolved
Comment thread hosted/server/relay-sockets.ts Resolved
Comment thread .github/workflows/security-audit.yaml Resolved
@nedtwigg

Copy link
Copy Markdown
Member Author

Addressed the Tool and ledger points in the latest commit:

  • Restored $HERE; the earlier substitution was a workaround for this machine's older installed CLI, and should not have been committed. The library CI failure was this exact mismatch.
  • All three ledger reads now use gh api graphql --paginate over the repository issue connection. Regression coverage includes an unindexed finding beyond 1,000 run reports and a failure on a later page. All 200 audit/canary tests pass in Linux, and the exact query read the real tracker in pages of 100 and 8 issues.

On compatibility, the maintainer explicitly instructed: "none are currently in use. Don't worry about back-compat" in response to the deployment/credential-cleanup question. The requested decision is to keep this change header-only, with no legacy query-token path. The compatibility break for Hosted as well as self-host is intentional for this task; an old desktop must be updated when its Relay changes. Please review on that basis.

The 321 self-hosted Relay tests pass on Linux, and the Hosted socket authentication integration tests have passed in the ongoing full Hosted run.

@nedtwigg
nedtwigg merged commit 28e58bf into main Nov 12, 2026
19 checks passed
@nedtwigg
nedtwigg deleted the audit-closeout branch November 12, 2026 17:46
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.

2 participants