feat: harden anonymous production infrastructure - #3
Merged
Merged
Conversation
…nd ops runbook - Enforce rolling 24-hour resource budgets (2h remote browser, 2h container) with transparent server-side alarm multiplexing and structured error codes (EBUDGET, EIDLE, EOWNER, ECAPACITY). - Implement server-side idle reclamation: remote Chrome closes after 5m of inactivity/tab concealment; containers stop 5m after last exec. - Browser Worker: introduce BrowserLease Durable Object, serialize concurrent creates, retain and retry failed setup rollback, and rate-limit per IP and subject. - Computer Worker: introduce RuntimeLease Durable Object, multiplex container alarms, cap single write and batch request sizes, and sandbox published site origins. - Web client: introduce machine lock with take-over support, gate keyboard and tool access via inert container on inactive tabs, and stream activity heartbeats. - CI/CD & Docs: add GitHub Actions workflows, issue/PR templates, CONTRIBUTING.md, SECURITY.md, docs/OPERATIONS.md, and updated self-hosting guides.
| } | ||
|
|
||
| function json(request: Request, body: unknown, status = 200, headers: HeadersInit = {}): Response { | ||
| return new Response(JSON.stringify(body), { |
ilayalog
force-pushed
the
feat/scale-readiness
branch
from
September 3, 2026 23:54
251a20b to
256e13b
Compare
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
Prepare WebMCP Computer for anonymous production traffic: enforce browser/container budgets and idle reclamation, harden gateway and publishing boundaries, add per-workspace publish quotas, establish deployment/operations guidance, and add optional privacy-bounded usage analytics and replay.
Why
The hosted demo currently exposes cost-bearing, stateful infrastructure without production-scale accounting, cleanup, abuse backstops, or a repeatable staging-first cutover procedure.
How to verify
The private staging Site and both staging Workers were also exercised with live Browser Run, cloud execution/filesystem, isolated publishing, quota, and analytics checks.
Checklist
Deployment coordination
The Site and both Workers must be deployed together. Deploy production Workers first, verify them, then update the production Site with matching Worker URLs and gateway secret. Preserve legacy resources during the publication-retention grace period.