feat(iroh): add isolated v2 worker boundary - #12312
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
All contributors have signed the CLA ✍️ ✅ |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
e7723e9 to
133021b
Compare
Problem
The IROH v2 contracts and client code had no isolated Cloudflare Worker entrypoint, so
/v2/behavior could not be exercised without touching the original implementation session.Changes
cmux-iroh-v2Worker with/v2/route gating and/healthzblockConcurrencyWhile, share HTTP and WebSocket dispatch, and consume enrollment challenges with EndpointID proofValidation
bun run test(19 passing)bun run typecheckbun run contracts:checkbunx wrangler deploy --dry-run --env stagingThis V3 branch is an isolated continuation of the active IROH v2 work and does not modify its worktree or surface.
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by cubic
Adds an isolated
cmux-iroh-v2Cloudflare Worker so IROH v2 behavior can run without touching the existing implementation session. The Worker authenticates Stack access or scoped cached tickets, then routes to one Durable Object per environment/project/team for HTTP and WebSocket control operations.Worker boundary
/v2/route gating with an unauthenticated/healthz.blockConcurrencyWhileand adds replay protection for device proofs.Client transport
V2ControlService, an actor owning the control socket, request map, and credential renewal lifecycle.V2WireSigningCodecfor canonical JSON and Ed25519 signatures matching the Worker verifier.Written for commit 133021b. Summary will update on new commits.