Skip to content

id: PoC: verify DO jurisdiction mechanics and confirm vendor residency guarantees #2285

Closed

Description

@dezren39

Follow-up C from the Durable Object jurisdiction investigation on #2061
(doc: doc/2026-10-29T11-43-02Z_investigation_do_jurisdiction_pinning/, §5 and §1.5).

Parent epic: #2056. Context: #2044.

Needs a Cloudflare account to deploy a scratch Worker — not doable from a repo-only worker session. Two halves: code mechanics (small PoC) and a written vendor ask (not code).

Half 1 — PoC (one deployed scratch Worker, no user data)

  1. idFromName(name) vs jurisdiction("eu").idFromName(name) produce different IDs in this account (docs assert it; confirm).
  2. ctx.id.jurisdiction reads back eu inside the object, including from an alarm; confirm both undefined cases (unrestricted namespace; alarm scheduled before 2026-03-15).
  3. A mismatched namespace/ID pair throws; an unrestricted namespace silently accepts a foreign ID (the failure mode the design guards against).
  4. Export from an eu object, import into a us object: signatures still verify (migration path).
  5. R2: create an eu-jurisdiction bucket, confirm the Worker binding needs the jurisdiction field and that the S3 jurisdiction endpoint cannot reach outside the jurisdiction.

Half 2 — the written ask to Cloudflare (blocks any DPA that claims EU residency)

The docs guarantee the object "only run[s] and store[s] data within a region" and that it is never migrated out of the jurisdiction's data-centre list. They do not say that DO SQLite's storage replication path stays inside the jurisdiction:

  • SQLite commits are forwarded to five follower machines, each in a different physical data center, and WAL batches/snapshots go to object storage (blog). No jurisdiction statement appears in that post.
  • Point-in-time recovery / bookmark retention: jurisdiction-confined? Not documented either way.
  • Does fedramp jurisdiction for Durable Objects require a separate entitlement (R2's FedRAMP jurisdiction explicitly does; DO's docs say nothing)?

Ask Cloudflare support/account team in writing and record the answer on this issue. A negative or evasive answer changes the hosted edition's residency claim, so this is not optional polish.

Acceptance

  • PoC results recorded as a comment (or short doc) with what was observed, including failures.
  • The vendor answer, or the exact question as sent plus the date, recorded here.
  • Any gap the answer exposes filed as an issue.

Acceptance criteria

  • PoC results recorded here (or in a short doc): all five Half-1 mechanics confirmed or the failure recorded, including both ctx.id.jurisdiction undefined cases
  • The Cloudflare written ask (Half 2) sent verbatim and dated on this issue; the vendor answer recorded when it arrives
  • Any residency gap the answer exposes is filed as its own issue

Activity

  1. added
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    effort/sSmall: expected under 2 hours of work
    kind/questionQuestion or design decision to resolve
    on Oct 29, 2026
  2. developing-today commented on Oct 29, 2026

    @developing-today
    Contributor
  3. added
    priority/normalOrdinary priority (the default)
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Oct 29, 2026
  4. dezren39 commented on Oct 29, 2026

    @dezren39
    MemberAuthor

    Intake review

    Related: #2061 (jurisdiction investigation, §5/§1.5), #2044, #2283/#2284 (sibling follow-ups A/B), epic #2056

    Notes: Two halves: a small deployed-Worker PoC and a vendor ask. Needs a Cloudflare account — not doable from a repo-only session, per the body.

    Risks: An evasive vendor answer changes the hosted edition's residency claim — treat Half 2 as blocking for any EU-residency DPA language.

    Suggested approach: Half 1 via a scratch Worker on Drew's Cloudflare account; Half 2 via support/account team in writing.

    🤖 Agent note · filed

    • Agent: fleet monitor (repo-fleet-monitor)
    • Session / ID: repo-fleet-monitor run 2026-10-29T12:12Z (07:12 CDT)
    • Found via: monitor reconciliation
    • Task: Duty 2 intake enrichment — acceptance criteria appended (original body preserved verbatim above it), labels normalized, meta/enriched applied. Still-live check this pass: no merged PR or fix commit explicitly resolving this issue was found; where a queue triage task owns verification, it is named in the notes.
    • Expectation: see the effort label; done = the appended acceptance criteria are met.
    • Links: this issue
  5. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    Unblock read from task 5800 (queue triage of the #2285 → #3403 → #3399 chain). Posting here because #3399 Phase 1 is gated on this issue's evidence and has now parked twice (tasks 5798, 5800) without progress.

    Correction to the "not doable from a repo-only worker session" premise. The OpenChamber execution host has wrangler on PATH and CLOUDFLARE_API_TOKEN / CLOUDFLARE_ACCOUNT_ID present in the environment (names checked only — no values read). So Half 1's scratch-Worker PoC appears executable from here, not account-inaccessible. What is missing is not access but authorization: deploying a scratch Worker and an eu-jurisdiction R2 bucket creates billable/side-effecting resources on Drew's Cloudflare account.

    Decision required (Drew): authorize one scratch deployment under the jurisdiction PoC (no user data), i.e. may an agent run #2285 Half 1 non-interactively on that account?

    Unblocks on yes: #2285 Half 1 evidence → #3403 phase 0 → #3399 phase 1 (this chain, 3 tasks). Half 2 (written vendor/residency ask) remains Drew's regardless — it is correspondence, not code, and it is the part that gates EU-residency DPA language.

    Meanwhile: #3399 task 5800 is being blocked escalated-to-user (not parked again) so the chain stops burning a 30-minute park cycle on an unchanged gate. Nothing in the repo was edited.

  6. added
    source/creatorFiled by the new-issue-creator job
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 3, 2026
  7. developing-today commented on Nov 3, 2026

    @developing-today
    Contributor

    agent-note:v1
    state: reviewed (coverage loop-back)
    Coverage pass 2026-11-03, loop-back review: this issue was re-reviewed (drift / overlap / already-handled / stale / blockers / ordering) so every open issue in the four repos is reviewed and in the system. Verdict: still live; in the system as task 6817 (triage, queued, priority 50) in repo-health-code-pilot. Labels audited and synced. If it is already handled at current main, its triage closes it with evidence; if oversized, the triage files the split; blockers belong on this issue.
    Found via: coverage loop-back 2026-11-03

  8. 29 remaining items

  9. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 16, 2026
  10. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: done (Half 1 PoC)
    task: 17426
    lane: code-c (Muse, repo-worker-code)
    stage: claimed -> results recorded

    Half 1 PoC results — task 17426, 2026-11-16

    Scratch Worker poc-2285-jurisdiction (one Durable Object class PocObject, SQLite migration) deployed to the fleet Cloudflare account with the account-wide token from fleet secrets; no user data. All times 2026-11-16 ~09:12–09:20Z.

    Mechanic 1 — jurisdiction IDs differ: CONFIRMED. For name alpha: unrestricted idFromName = d775bc86…, jurisdiction("eu").idFromName = ebd60838…, jurisdiction("us").idFromName = 8a7cb6c3… — all three pairwise different.

    Mechanic 2 — ctx.id.jurisdiction readback: CONFIRMED, one case untestable by construction. Inside the eu object it reads eu, both in fetch and in the alarm() handler (alarm armed +1.5s, jurisdiction recorded from inside the alarm: eu). Inside an unrestricted object it is undefined, again in both fetch and alarm(). The second documented undefined case — an alarm scheduled before 2026-03-15 — cannot be exercised: alarms can only be scheduled in the future, so no alarm created today predates the cutoff. Recorded as not-testable rather than confirmed.

    Mechanic 3 — mismatched pair throws, unrestricted accepts: CONFIRMED. Presenting the eu ID to the us jurisdictional subnamespace throws TypeError: idFromString called on jurisdictional subnamespace with an ID from a different jurisdiction. Presenting the same eu ID to the unrestricted namespace silently succeeds and reaches the eu object (its whoami reports jurisdiction eu) — the failure mode the design guards against is real.

    Mechanic 4 — eu export → us import, signatures verify: CONFIRMED. The eu object generated an ECDSA P-256 keypair, signed a payload in-object, and exported {payload, signature, publicKeyJwk}; the us object imported the key and crypto.subtle.verify returned verified: true (signedInJurisdiction eu, verifiedInJurisdiction us).

    Mechanic 5 — R2 jurisdiction: MIXED — S3 endpoint isolation confirmed; the Worker-binding claim is REFUTED in this account, and wrangler bucket creation silently ignored the jurisdiction flag.

    • Setup trap found first: wrangler r2 bucket create poc-2285-eu --jurisdiction eu (wrangler 4.147.0) created a default bucket (location ENAM, no jurisdiction) with no warning. The EU bucket used for the real test, poc-2285-eu2, was created via the API with header cf-r2-jurisdiction: eu and verified in the create response: jurisdiction: "eu", location EEUR. (A jurisdiction-less API GET of an eu bucket also returns "does not exist" unless the cf-r2-jurisdiction: eu header is sent.)
    • Worker bindings against the verified eu bucket: a binding with jurisdiction = "eu" put/get/deleted fine — and so did a binding without any jurisdiction field. The claim "the Worker binding needs the jurisdiction field" does not hold on the current runtime (compat date 2025-09-01): a plain binding reached the eu-jurisdiction bucket. Any design that relies on a plain binding being unable to touch an eu bucket is unsafe today.
    • S3 endpoints (SigV4, fleet R2 key pair): eu endpoint → eu bucket 200; eu endpoint → default-jurisdiction bucket 404 NoSuchBucket (the jurisdiction endpoint cannot reach outside the jurisdiction — CONFIRMED); global endpoint → default bucket 200 (control); global endpoint → eu bucket 200 (observation: the non-jurisdiction endpoint can reach in — the reverse direction is not isolated).

    Half 2 (the written vendor ask) is out of scope for this task — cancelled by Drew 2026-11-16 (ledger cloudflare-scratch-poc-2285: "Don't send it"); nothing was sent.

    Cleanup: scratch Worker, DO, and both R2 buckets are being deleted in the same pass; a confirmation follows this comment.

  11. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: done (Half 1 PoC cleanup)
    task: 17426
    lane: code-c (Muse, repo-worker-code)

    Cleanup confirmed: scratch Worker poc-2285-jurisdiction deleted (workers.dev URL now 404); R2 buckets poc-2285-eu2 (eu) and poc-2285-default deleted — DELETE returned success for both, and a jurisdiction-headed GET of poc-2285-eu2 now returns 10006 "does not exist" (the bucket LIST view still shows the name minutes later; that is the same list-propagation lag observed during creation, the headed GET is authoritative). Local scratch dir removed. Nothing retained.

    Half 1 of issue #2285 is complete: mechanics 1–4 confirmed, mechanic 5 mixed (S3 jurisdiction-endpoint isolation confirmed; the Worker binding jurisdiction-field claim refuted on the current runtime; wrangler's --jurisdiction eu bucket-create flag silently produced a default bucket — API header route required). Half 2 remains cancelled by Drew (ledger cloudflare-scratch-poc-2285) and the issue stays open for its remaining tracking purpose; the dependent tasks (5798, 5800, 5801 / issue #3399) can now consume these results.

  12. removed their assignment
    on Nov 20, 2026
  13. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Reconciliation + close — Lane CA, 2026-11-22

    Picked up via fleet agent next (archer, shortlist rank 5; Lane BN's dep-order audit listed #2285 as a chain head gating dep-blocked tasks). Fresh revalidation this pass: issue OPEN, no live claim by another worker in its recent history, no open PR. Verdict: every acceptance line is substantively discharged; the issue stays open only as a stale chain head, and downstream #3403 is explicitly waiting on this issue closing (its 2026-11-16 note: "the broker returns it when #2285 closes").

    Acceptance disposition

    1. PoC results recorded — MET. Half 1 results posted 2026-11-16 (task 17426): mechanics 1–4 confirmed (jurisdiction IDs pairwise differ; ctx.id.jurisdiction reads eu in fetch and alarm, undefined in an unrestricted object in both; mismatched jurisdictional pair throws while an unrestricted namespace silently accepts a foreign ID; eu export → us import signatures verify). Mechanic 5 recorded as MIXED: S3 jurisdiction-endpoint isolation confirmed; the Worker-binding jurisdiction-field claim refuted on the current runtime; wrangler 4.147.0 --jurisdiction eu silently created a default bucket (API cf-r2-jurisdiction header route required). The one unconfirmed sub-case — an alarm scheduled before 2026-03-15 reading undefined — is recorded as not-testable by construction (alarms can only be scheduled in the future). Cleanup confirmed the same day: scratch Worker and both R2 buckets deleted, nothing retained.

    2. Vendor ask sent + answer recorded — VOID by Drew, recorded. Drew answered pending-decisions item cloudflare-scratch-poc-2285 on 2026-11-16: "Don't send it", rejecting the premise of seeking a residency commitment. Nothing was sent, and no hosted-edition residency claim may cite a Cloudflare commitment that was never obtained. The literal "sent verbatim" line is therefore void, not pending.

    3. Residency gaps filed as their own issue — MET via id: gate hosted jurisdiction provisioning on verified DO and R2 support #3403 (with id: add immutable jurisdiction and migration metadata to hosted directory #3399). The gaps the PoC exposed are carried by id: gate hosted jurisdiction provisioning on verified DO and R2 support #3403, the pre-filed follow-up that consumes this issue's evidence, including its decision record: keep hosted production signup/migration disabled until a provisioning surface validates the actual jurisdiction of each bucket; do not treat an R2 binding jurisdiction field as an isolation control; use verified API provisioning rather than trusting the wrangler flag. The residency-claim consequence is recorded on id: add immutable jurisdiction and migration metadata to hosted directory #3399 (gate-moved notice, 2026-11-16: acceptance must not wait on or claim a Cloudflare residency answer). A fresh search this pass found no other gap issue, and none is needed — id: gate hosted jurisdiction provisioning on verified DO and R2 support #3403 is the named home.

    Closing as completed so the dep chain (#3403 → #3399 and the tasks gated behind them) can move. Reopen if a vendor residency answer is ever actually sought.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/sSmall: expected under 2 hours of workepic/id-programReprioritization program epic (2026-11-12)kind/questionQuestion or design decision to resolvemeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions