Cloudflare Worldedge community field guide

RETROSPECTIVE EDITION / 2026-04

Sandboxes:code を隔離し、intent を制限する

container isolation にも identity-scoped instance、command policy、timeout、network control、cleanup、current transport が必要です。

ISSUE
28 / 34
初回公開
SOURCE CHECK
Archive integrity

edition month は curriculum 上の位置です。本文は 32 本の retrospective edition の一つで、初回公開日は 2026-08-10、過去の公開・活動記録を装いません。

01 / DECISION

この primitive を選ぶ時

untrusted / generated code に isolated Linux environment が必要で Worker が boundary を制御する時は Sandboxes を使います。JavaScript・Python・WebAssembly だけで足りる場合は Dynamic Workers が軽い選択肢です。

02 / ARCHITECTURE

最小で説明可能な path を作る

trust boundary ごとの sandbox、explicit session、command / egress allowlist、resource / time limit、external secret proxy、destroy を設計します。

  1. 01contract を定義

    untrusted / generated code に isolated Linux environment が必要で Worker が boundary を制御する時は Sandboxes を使います。JavaScript・Python・WebAssembly だけで足りる場合は Dynamic Workers が軽い選択肢です。

  2. 02primitive を一つ追加

    trust boundary ごとの sandbox、explicit session、command / egress allowlist、resource / time limit、external secret proxy、destroy を設計します。

  3. 03failure evidence を残す

    forbidden command / destination、timeout / cleanup、session separation、secret exclusion を確認します。

03 / REPRODUCE

confidence の前に evidence

forbidden command / destination、timeout / cleanup、session separation、secret exclusion を確認します。

npm create cloudflare@latest -- sandbox-linux --category=hello-world --type=hello-world --lang=ts --no-deploy --no-git --no-agents

04 / BOUNDARY

Production boundary

isolation は arbitrary user intent の許可ではありません。Sandbox SDK 1.0 では自分で書く Durable Object class が制御を持ち、Durable Object scheduling policy への切り替えは rollback で戻せないため staging Worker で予行演習します。browser automation は Browser Run に置きます。

05 / FIRST-PARTY SOURCES

一次資料を authoritative に保つ

product behavior、limit、pricing、availability は変わります。実行前に source を再確認してください。

01 / SOURCESandboxes on Cloudflarehttps://developers.cloudflare.com/sandbox/02 / SOURCERun a Linux commandhttps://developers.cloudflare.com/sandbox/get-started/03 / SOURCEMigrate from Sandbox SDK 0.xhttps://developers.cloudflare.com/sandbox/sdk/migrate/