Repository navigation
Narrow what a relayed machine stream can reach - #6769
Merged
Merged
Conversation
A web-machine stream now replays only GET and HEAD of the notice pages and static files, carries no local credential, and opens no loopback realtime socket. Plugin streams are refused because their grants arrive as plain claims the Mac cannot verify. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
hurttlocker
enabled auto-merge
November 24, 2026 21:40
📝 o8.run docs may need updatingThis PR changes source that the public docs describe. Review whether these pages are still accurate (and bump their stamp in o8-site if so):
Flagged by docs-drift against https://o8.run/api/docs/manifest. Docs only — nothing is auto-edited. |
🔍 PR Review Bot
Automated review — CI workflow |
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes
Machine attach stays off by default. While it is on, a relayed stream can now reach much less.
Route and method allowlist
GETandHEADof the desktop-app notice pages (/,/mobile,/dashboard),/icon.png,/favicon.icoand/_next/static/*(webMachineRouteAllowed).403 web_machine_route_forbiddenand never reach the local server.No operator credential on replay
Authorizationin the relay frame is dropped, and the local operator token is no longer attached. The allowlisted pages need none, so the narrowest token for the stream is no token./wssocket with the operator token for a relayed stream; realtime frames are dropped.authorizationOverrideis removed from the shared replay helper, since nothing uses it now.Plugin streams refused
mux-openwithsurface: "plugin"is now answered withmux-close 4403 plugin_grant_unverifiable, and nothing is replayed for it.src/lib/connect/plugin-relay.tsis deleted. The local plugin route and its locally minted capability are unchanged.To re-enable plugin streams, the account service needs to sign each grant with a key the Mac pins. The signature should bind the account, machine, client, scopes, relay stream id and a short expiry, and the Mac should verify it before it mints its local capability.
Docs:
docs/internals/connect-contract.mdanddocs/operations/browser-console-removal.mdnow describe the narrowed surface.Tests
src/lib/connect/machine-attach.test.ts:Authorizationheader;Against main's connector these fail (operator bearer attached, loopback socket opened).
src/lib/connect/machine-full-surface.test.ts, through the reference relay and its cookie-authenticated web edge:/api/panel/ws-infois refused before the local server;tests/plugin-relay-real-path.test.ts: a pluginmux-opengets the 4403 close and a request on that stream reaches nothing. It fails on main, where the stream is served.tests/plugin-front-door-real-path.test.tsandtests/plugin-task-draft-real-path.test.tsnow mint the local plugin capability directly, since the relay grant path is gone.npm run typecheck:fast,npm run verify:ci.🤖 Generated with Claude Code