Repository navigation
test(cloud): P0C3C actual local workerd tenant WebSocket end-to-end - #8
Draft
Nardo021 wants to merge 6 commits into
Conversation
…k lifecycle and isolation
…d deployment blockers
…/internal headers
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.
P0C3C — Stacked Draft PR (depends on P0C3B #7, P0C3A #6, P0C2 #5, P0C1 #4, P0B #3, P0A #2).
Implementation
cloud/wrangler.integration.ci.jsoncwith an isolated local-only D1 UUID andCLOUD_TENANTSDO binding, no public routes/worker.dev; no Cloudflare account credentials.cloud/scripts/test-local-realtime.mjsthat applies all three migrations into a temporary local D1, inserts exactly two synthetic accounts/devices/sessions, starts actual local workerd, makes HTTP requests and a hand-written RFC6455 WebSocket client (no new library dependencies).auth,heartbeat, phonelock, devicecommand_result, 10s TTL, cross-account 404, mismatched device credentials, offline 409 and no queued delivery..dev.varsexclusively created by the script and removed after; refuses to overwrite existing local credentials.docs/cloud-p0c3c-local-integration.md.Verification
GitHub Actions is required; do not mark passing until the latest head run is complete. This is local workerd, not Cloudflare's live D1/DO, Apple native token verification or real OS lock.
Production / Cloudflare safety
No Worker deployed to Cloudflare and no changes to old
mote-rcor production DNS. Real App ID and operator-controlled staging secrets are not provisioned; public customer service remains BLOCKED. Next separate step: real disabled, unroutable Cloud Worker deployment after verified configuration and CI, then live two-account/WSS/hardware adversarial acceptance.Final CI evidence (2026-11-17)
GitHub Actions CI #50 — 9/9 jobs success at HEAD
4bf132f3b943a1d972f64b1425257fad0d7098f8. The Mote Cloud staging job started local workerd with a separately migrated local D1 and actual tenant Durable Objects; its log includesCLOUD_WORKER_LOCAL_REALTIME_PASS: D1+DO+WebSocket auth/lock/owner/offline. Enhanced tests verify parallel A/B live device WebSockets and rejection of client-forged internal tenant headers. The other eight CI jobs (Relay/Protocol, Cloudflare Worker, Dashboard, macOS, Windows, Windows E2E, repository consistency and Windows test-mode release artifact) also passed.Proof boundary: This is real local workerd runtime, not the remote Cloudflare service. Cloudflare account inspection still finds
mote-rcand the isolatedmote-cloud-stagingD1, but NOmote-cloud-stagingWorker deployment. No actual Apple-signed iOS identity token, native client or physical OS lock was exercised. Remains Draft / public BLOCKED.