Skip to content

OpenSandbox 1.3.0

Latest

Choose a tag to compare

@github-actions github-actions released this 30 Nov 08:15
· 4 commits to main since this release
8408f65

Stable cut of the 1.3.0 feature line, carrying everything merged since release-1.2.1 (2026-11-13) through four release candidates plus post-rc fixes. Platform images ship at release-1.3.0 and server, CLI, and all five SDK packages publish together at 1.3.0. Everyone on 1.2.x or 1.3.0-rc.* should upgrade; review Upgrade & Compatibility first for the Kubernetes 1.22 minimum, the execd-as-init default, Fast Sandbox egress defaulting to credential-bound interception, removed DevOps routes, and OTLP metric migrations. Baseline for every section below is release-1.2.1.

Highlights

  • Rootfs-only snapshots, resource overrides & Fast Sandbox hot-path performance: create_snapshot(mode="rootfsOnly") reaches the public lifecycle API across all five SDKs for both OCI/OverlayBD and native S3 Fast Sandbox runtimes with per-create CPU/memory overrides (OSEP-0028) and single-image OCI manifests, paired with async grpc.aio server creates, a shared SandboxPool informer, controller cache selectors, page-cache-aware memory admission, default OCI virtio-balloon free-page reporting, FAST_SANDBOX_NETWORK_CIDR (>126 slots per Fastlet), pre-warmed guest routes/NAT, overlaybd-ublkd hybrid uppers, O(1) egress nftables verdict maps with incremental removal, burst-churn Fastlet slot replenishment, and zero-wait baked MITM CA bootstrap (#2709 #2835 #2900 #2933 #2957 #3120 #3150 #3151 #3158 #3165 #3202 #3213 fast-sandbox#252 fast-sandbox#258 fast-sandbox#263 fast-sandbox#284 fast-sandbox#285 fast-sandbox#286 fast-sandbox#294)
  • End-to-end authentication and isolation hardening: execd-as-init (OSEP-0018) becomes the server default, Kubernetes sandboxes gain stateless HMAC-derived execd authentication ([execd].auth_signing_key_file) with opt-in EXECD_INIT_AUTH and an ingress :44772/internal/init 403 block, Fastlet control-plane auth (FSEP-0003) and optional TLS + ServiceAccount FastPath caller auth (OSEP-0032) harden Fast Sandbox RPCs without anonymous discovery bindings, controller and Fast Sandbox RBAC are tightened, and all five SDKs strip X-EXECD-ACCESS-TOKEN on cross-origin redirects (#2825 #2830 #2940 #2989 #3080 #3101 #3103 #3111 #3122 fast-sandbox#207 fast-sandbox#232 fast-sandbox#245)
  • Credential-bound Fast Sandbox egress default, forward mode & lifecycle reliability: Fast Sandbox egress defaults to credential-bound TLS interception (OSEP-0023, explicit all opt-out) alongside opt-in [egress] mode = "forward" (OSEP-0030) on Docker and non-pooled Kubernetes, Credential Vault header forwarding (OSEP-0025), additive multi-scope bindings, audit logs, and opt-in kernel drop telemetry; lifecycle reliability lands sticky BatchSandbox Completed phases, renewal/expiry workspace-loss fixes, restorable 409-rejected Docker snapshots, and truncated-stream detection across all SDKs (#2715 #2892 #2905 #2914 #2917 #3002 #3030 #3094 #3109 #3125 #3160 #3169)

Server

  • Rootfs-only snapshots & per-create resource overrides (OSEP-0028): CreateSnapshotRequest.mode: full | rootfsOnly (default full) and read-only Snapshot.mode are wired across the lifecycle API, SQLite, PostgreSQL, and the one-shot migration for both OCI/OverlayBD and native S3 Fast Sandbox runtimes; Docker and Kubernetes runtimes reject rootfsOnly with 409, while POST /sandboxes accepts partial or full resourceLimits overrides on Firecracker ResourceAware pools (falling back to CreateSandbox on LegacySlot pools without rejecting non-override restores) (#2709 #2900 #2933 #3097)
  • execd-as-init becomes the default (OSEP-0018): [runtime] execd_run_as_init now defaults to true, injecting EXECD_INIT=1 so execd --init owns the sandbox process tree (set false to retain the classic topology), accompanied by an in-sandbox privilege-reduction guide (#2825 #2830)
  • Stateless HMAC-derived execd authentication on Kubernetes: opt-in [execd].auth_signing_key_file (server.execdAuth.existingSecret in Helm, hot-reloaded on mtime/inode changes) injects one-way sha256:<kid>:<nonce>:<verifier> hashes into BatchSandbox (direct and pooled) and AgentSandbox workloads instead of plaintext tokens, recomputes X-EXECD-ACCESS-TOKEN on GetEndpoint(44772), and rejects use_server_proxy=true on port 44772 with 400 INVALID_PARAMETER (#3080)
  • Egress forward mode (OSEP-0030): opt-in [egress] mode = "forward" attaches egress unconditionally on Docker bridge and Kubernetes non-pooled (BatchSandbox template / AgentSandbox) runtimes (with an egress-init default-drop bootstrap fence on Kubernetes), drops NET_ADMIN/NET_RAW, injects sandbox/namespace/tenant identity headers, and rejects incompatible features (networkPolicy, credentialProxy, gVisor, pooled poolRef, Windows, Fast Sandbox) with HTTP 400 (#3002 #3030)
  • Async grpc.aio FastPath creates & shared SandboxPool informer: FastSandboxService.create_sandbox() runs directly on the FastAPI event loop via grpc.aio instead of serializing behind the 32-worker ThreadPoolExecutor (#3150), and resolves SandboxPool mode, resource profile, and action handlers from the shared K8sClient informer instead of per-create GetPool RPCs (with sandboxpools.sandbox.fast.io read RBAC and a 403 GetPool fallback during rolling upgrades) (#3120)
  • Dedicated Pod metadata sync & WorkloadProvider SPI: opt-in [kubernetes] metadata_sync_pods = true syncs accepted metadata PATCH changes (including null removals) to dedicated Pods with sandbox.opensandbox.io/pod-label-overrides persistence and resourceVersion fencing against concurrent clobbering (#2869 #2992); Kubernetes pool and allocation hooks move behind WorkloadProvider so non-BatchSandbox providers no longer fail on hardcoded pools.sandbox.opensandbox.io lookups and return 501 KUBERNETES::POOL_NOT_SUPPORTED on /v1/pools (#2884)
  • Pinned execd isolation config & egress drop-telemetry passthrough: opt-in runtime.execd_isolation_config sets EXECD_ISOLATION_CONFIG with precedence over caller env across Docker, Kubernetes Pods, and pool tasks (#3021); Docker and Kubernetes egress sidecars allowlist OPENSANDBOX_EGRESS_DROP_TELEMETRY, OPENSANDBOX_EGRESS_DROP_LOG_RATE, and OPENSANDBOX_EGRESS_DROP_COUNTER_POLL (#3125)
  • Richer lifecycle state reporting & deprecated DevOps removal: GET /v1/sandboxes/{id} maps BatchSandbox Completed to Terminated (SANDBOX_COMPLETED) and refuses pause/resume on completed sandboxes (#2715), preserves failing container details from PodFailed (#2966), and reports IMAGE_PULL_FAILING with kubelet error detail while a Pending container or init container is in ImagePullBackOff/ErrImagePull (#2967); deprecated DevOps plain-text routes are removed and diagnostics/logs/events now require scope (#2826)
  • Security fixes: reject volumeMounts.subPath values with Windows-separator traversal (foo\..\secret) or a leading backslash (#2749); stop echoing secure-access signing keys in config-validation errors including OPENSANDBOX_SECURE_ACCESS_KEYS (#2778); merge rather than overwrite BatchSandbox template securityContext.capabilities.drop when network policy is enabled and reject execd isolation with 400 INVALID_PARAMETER when SYS_ADMIN is dropped (#3037)
  • Lifecycle, snapshot & runtime correctness fixes: serialize Docker renewal with the per-sandbox lifecycle lock so a concurrently firing expiration can no longer delete a just-renewed sandbox (#2892); roll back a Docker snapshot's Deleting state to its prior Ready/Failed state when DELETE /snapshots/{id} is rejected with 409 SNAPSHOT::DELETE_CONFLICT so the snapshot stays restorable and is not deleted on the next recovery pass (#3160); refuse BatchSandbox pause on runsc/runsc-* gVisor runtimes (or missing Pods / unreadable RuntimeClasses) with 409 KUBERNETES::INVALID_STATE instead of losing --overlay2=root:self writes (#3076); page through all unfinished Creating/Deleting snapshots via a keyset cursor during startup recovery instead of stopping at 200 rows (#3027); reject pool specs where bufferMin > bufferMax with 422 (#2801); and dial host-mapped sandbox ports at docker.publish_host (#2846)
  • Smaller fixes: stop waiting immediately with 409 instead of timing out at 504 when a Kubernetes sandbox enters Stopping or disappears during creation (#3118); return the lifecycle ErrorResponse envelope (code/message) for Starlette-raised 404/405/400 framework errors (#3117); preserve all mounts when a BatchSandbox template mounts the same volume at multiple mountPaths (#3130); allow docker.pids_limit = 0 to disable the PID limit (#2786); return 400 INVALID_METADATA_FORMAT for malformed template-list metadata filters (#2790); skip non-object JSON renew-intent payloads cleanly (#2791); normalize reserved-metadata PATCH rejections to SANDBOX::INVALID_METADATA_LABEL across backends (#2793 #2796); log a missing snapshot informer CRD (LIST 404) once instead of repeating tracebacks every 30 seconds (#2875); fall back to the 30 s default on malformed tenant-provider ttl values (#2704); share one PoolService/K8sClient across /pools requests (#2852); consolidate list pagination and metadata patch validation across backends (#2860 #2863)

SDKs

Code changes below publish across all five SDKs at 1.3.0.

  • Rootfs-only snapshot mode & per-create resource overrides: all five SDKs expose mode (full | rootfsOnly) on snapshot creation and readback (omitting unset values for legacy servers and defaulting absent responses to full) and support resourceLimits overrides on RootfsOnly restores (#2709 #2835 #2900 #2933)
  • Incomplete foreground stream detection: all five SDKs (Python sync/async, JavaScript, Kotlin, C#, Go) fail foreground commands whose SSE stream hits EOF without an execution_complete or error event instead of returning a partial result (#2914)
  • Cross-origin redirect stripping & token redaction: Python, JavaScript, and Kotlin strip X-EXECD-ACCESS-TOKEN on cross-origin redirects (matching C# and Go; browser fetch requests take the guarded fail-closed redirect path) (#3101), and JavaScript and Kotlin redact X-EXECD-ACCESS-TOKEN in debug logs (#3080)
  • Code-interpreter readiness & exit codes: runtime probes require a confirmed zero exit in Python, JavaScript, and Kotlin (matching Go and C#) (#2807); readiness is bounded by the ready timeout in Python, JavaScript, and C# (#2856 #2857 #2858); and exit_code/exitCode is populated after codes.run() in Python and JavaScript (#2854)
  • Docs alignment: all five SDK READMEs document mode="rootfsOnly", byte-offset log cursor semantics and the 16 MiB cap on GET /command/{id}/logs, and Python/JS/C# READMEs document foreground exit codes, SandboxRateLimitException.retry_after, and ready timeouts (#3033 #3051 #3052)

Python

  • Cap built-in health probes (ping(), is_healthy(), pool warmup) at min(request_timeout, 5s) per request phase so a stalled first connection cannot exhaust the readiness budget (#3014)
  • Propagate code-interpreter caller handler exceptions as SandboxException instead of swallowing them mid-stream (#2697); preserve execd's structured error (error.code, request id, and SandboxRateLimitException.retry_after on 429) on streamed file download failures (#2696)
  • Smaller fixes: run legacy SSE normalization in linear time (#2845); log propagated adapter failures at DEBUG instead of ERROR (#2996); clarify in MCP sandbox_renew docs/tool description that timeout_seconds sets expiry from now rather than adding to the current expiry (#3026)

JavaScript

  • Return the renew response from SandboxManager.renewSandbox so callers can inspect the server-applied expiresAt (#2699)
  • Send data-plane headers (including OPEN-SANDBOX-API-KEY in server-proxy mode) and reuse the client on CodeInterpreter's fallback /ping probe (#2855); surface the server's error code and message on file download and upload failures (#2700); cancel and release code-interpreter codes.runStream()/codes.run() response readers in try/finally on early exit or handler rejection (#2179)

Kotlin

  • Enforce a max(requestTimeout, 30s) read timeout on SSE streams (commands.run, code interpreter, isolated sessions), raising SandboxTimeoutException instead of hanging indefinitely (#2847)
  • Surface SSE execution handler exceptions as SandboxException instead of swallowing them (#2994); preserve the first SSE event after a leading UTF-8 BOM so Execution.id is not null (#2800); eliminate a warmup-enqueue race in PoolWarmupLoggingTest (#3195)

C#

  • Bound SSE streams (commands, code, isolated sessions, code interpreter) with a per-read timeout of max(RequestTimeoutSeconds, 30s) so silent streams fail instead of blocking forever (#2848)
  • Scope endpoint cache invalidation to the in-flight key so pausing or killing one sandbox no longer discards another sandbox's freshly fetched endpoint (#2843)

Go

  • Cap each built-in health ping (Ping, IsHealthy, default WaitUntilReady) at min(requestTimeout, 5s) without mutating the shared client timeout so a stalled first connection retries within the readiness budget (#3190)
  • Honor explicit OPEN-SANDBOX-API-KEY and X-EXECD-ACCESS-TOKEN entries in ConnectionConfig.Headers case-insensitively ahead of configured defaults (#2764); deliver WatchMetrics snapshots as they arrive instead of buffering until stream close (#2805)

Controller

  • Sticky Completed terminal phase for BatchSandbox: clean exit-0 main containers now transition to a sticky Completed phase (skipping pod replacement/task scheduling and refusing pause/resume with SandboxCompleted) instead of regressing Succeed → Pending until TTL expiry (#2715)
  • Opt-in Pod/Job informer label selectors & indexed pooled Pod lookup: --pod-label-selector and --job-label-selector (controller.podLabelSelector/jobLabelSelector in Helm, empty by default) bound informer cache memory in shared clusters with direct-read fallback for snapshot commit Pods (#3158), and pooled Pod events resolve target BatchSandboxes via an informer reverse index instead of scanning every BatchSandbox in the pool (#3038)
  • Image pull failure condition & RBAC tightening: BatchSandbox records ImagePullBackOff/ErrImagePull details across containers and init containers while Pending (#2967); the Helm manager ClusterRole adds pods/exec: create (fixing the Restart recycle strategy with a drift test) (#2780) while dropping unused secrets (get/list/watch) and narrowing events to create/patch (#3122)
  • Expiry, status & scheduler safety fixes: attach UID/resourceVersion preconditions to expiry deletion so a stale informer copy cannot delete a just-renewed BatchSandbox (#2905); fence status writes with resourceVersion so stale views cannot overwrite PauseFailed/ResumeFailed conditions (#2877); validate Pod name, IP, UID, and non-terminating state in task schedulers so reused Pod IPs or terminating Pods are never contacted (#3015 #3016); exclude Failed/Succeeded idle pods from Pool capacity status and reap them without consuming scale budgets (#2929 #2658)
  • Smaller fixes: forget all per-object in-memory state when a BatchSandbox is deleted or replaced (#2861); retry SetReleased via an uncached API reader with optimistic locking (#2950); isolate Pool allocations by controller UID across same-name recreation (#2973); exclude missing allocated pods from pool scaling so BufferMax is not exceeded (#2991); keep task status patches current after pod release (#2985); allow deletion to stop tasks even when a stored shard patch is malformed (#2554); drop timed-out BatchSandbox scale expectations (#2851); stop snapshot template tests from mutating time.Local under -race (#2885)

Execd

  • HMAC verifier support & /internal/init hardening: EXECD_ACCESS_TOKEN verifies sha256:<kid>:<nonce>:<hex> (and sha256:<hex>) hashes in constant time and logs a startup deprecation warning for plaintext tokens (#3080); opt-in --init-auth / EXECD_INIT_AUTH (default false) guards POST /internal/init with the active token, preserves same-sandboxId tokens when accessTokenHash is omitted, rolls back RuntimeBinding on 500 startup failures, and caps /internal/init request bodies at 1 MiB (413) (#3103)
  • Process QoS launch policy (OSEP-0031 Phase 1): opt-in [qos] in EXECD_ISOLATION_CONFIG configures best-effort RLIMIT_NICE, nice/SCHED_IDLE scheduling, initial oom_score_adj, and a high tier for managed ENTRYPOINTs (bumping internal launcher policy to v2) (#2959)
  • OTLP gRPC export, disk telemetry & streamlined core metrics (12 instruments): adds OTEL_EXPORTER_OTLP_METRICS_PROTOCOL=grpc (node fallback :4317, shared across execd, egress, ingress, and node-agent) (#2999), per-mount disk usage (execd.system.disk.usage_bytes / total_bytes, using f_frsize) and sandbox disk IO bytes (execd.system.disk.io.bytes, skipping stacked dm*/loop*/md* devices) (#2912 #2982 #2983), adds execd.system.memory.limit_bytes, merges isolated runs into execd.execution.duration{operation="run_isolated"}, excludes /metrics/watch from HTTP duration, omits failed resource observations, and removes redundant filesystem, active-connection, and isolated upper-dir series (#3134)
  • Faster MITM CA bootstrap & file search: bootstrap trusts immediately on MITM_CA_STABILIZE_WINDOW=0, caches installed CA fingerprints on rootfs to skip redundant trust-store rebuilds, disables the watcher when MITM_CA_WATCH_INTERVAL<=0, and retries transient NSS/JDK CA imports up to three times (#2957 #2987); file search filters filenames before Lstat and isolated MergedView.Search skips redundant lower scans (#3000 #3013)
  • Execution, session & Jupyter reliability fixes: session-gate puts the isolated workload shell into its own process group (setpgid(0, 0)) so run interrupts no longer kill bubblewrap and destroy the session (#3089); foreground command timeouts report CommandTimeout instead of CommandExecError (#2684); POST /code bounds both unacknowledged executes (5 s KernelAcknowledgmentTimeout) and lost completion signals (--jupyter-reply-finalize-timeout, default 2 s, held open while output waits on slow consumers) (#2804 #2979 #3083); /command output lines above 16 MiB split on UTF-8 boundaries instead of OOM-killing execd (#2729); GET /command/{id}/logs caps reads at 16 MiB (#3033); /proxy reuses a shared upstream connection pool instead of leaking connections for 600 s (#2788); and Windows shell commands pass via SysProcAttr.CmdLine without mangling quotes (#3144)
  • File, context & path validation fixes: validate rename batches up front and reject empty expanded paths across all file APIs (#2818 #2897 #2899); fall back to HTTP 200 with the full file on multi-range downloads (#3034); fail fast with 400 on unusable code-context cwds or non-kernel language listings and clean up contexts whose Jupyter session is already gone (#2782 #2785 #2792); keep unmatched $ literal in paths, reject invalid isolated-session search globs with 400, verify inode/device before using file birth time, and treat missing /etc/passwd or /etc/group like unknown UIDs instead of 503 (#2779 #2760 #2612 #2949)
  • Smaller fixes: send /metrics/watch updates every second as documented (#2853); share execution tracking across streaming handlers and use a typed ExitError for isolated-session exits (#2862 #2864); fix gin test-mode races and detect concurrent lifecycle FD leaks by descriptor identity in Linux tests (#2842 #3194)

Networking

egress

  • Upstream proxy forward mode (OSEP-0030): OPENSANDBOX_EGRESS_MODE=forward relays redirected IPv4 TCP verbatim via CONNECT with Proxy-Authorization and identity headers (SO_MARK 0x4), drops UDP/ICMP/IPv6/link-local fail-closed, gates /healthz on gateway reachability, disables /policy (409), and supports egress-init fencing on Kubernetes (#3002 #3030)
  • Additive Credential Vault bindings, header forwarding & audit logs (OSEP-0025): exchange resolvers receive outbound request headers (capped at 64 headers / 8 KiB per value, failing closed with 407, with HTTP/2–3 cookie crumbs joined by "; ") so resolvers can re-sign schemes like SigV4 and ACS (#2917 #2980); overlapping bindings with disjoint static headers and substitution surfaces compose deterministically across exact and wildcard host scopes (failing closed on collisions), committed vault mutations emit sanitized INFO audit logs, and MITM credential proxy: events route informational lines to INFO with subject/client_ip context (#3169)
  • Opt-in kernel drop telemetry & structured DNS/TLS logs: shared nftables drop-counter polling and bounded NFLOG group-3085 packet sampling (OPENSANDBOX_EGRESS_DROP_TELEMETRY, OPENSANDBOX_EGRESS_DROP_LOG_RATE, OPENSANDBOX_EGRESS_DROP_COUNTER_POLL) export egress.blocked.packets, egress.blocked.samples, and egress.drop_telemetry.sampler_up on Docker and Kubernetes sidecars without extending DNS leases (#3094 #3125); policy-evaluated DNS logs add dns.policy.decision, dns.stage, and dns.response_code (#3036); and upstream TLS verification failures log a connection ID and fixed reason code without leaking hostnames, certs, or credentials (#2918)
  • Credential-bound Fast Sandbox interception becomes the default (OSEP-0023): when OPENSANDBOX_EGRESS_FSB_INTERCEPTION_MODE is unset on Fast Sandbox egress, interception now defaults to credential-bound (intercepting only bound HTTP/1.1 hosts with snapshot-pinned admission, drain fencing, transport teardown before source-IP reuse, closed denied TLS transports, 50 ms data-plane-ready snapshot wait, exchange-vault resolution, session-latched fail-closed checks, bounded transition metrics, and a lowered 32768 default TLS admission capacity; explicit all opt-out retained; sidecar profile unchanged), logs the resolved mode once at startup (fast-sandbox interception resolved: ...), and ships full KVM verification fixtures, restart-recovery tests, and operator migration docs (#2794 #2836 #2838 #2841 #2850 #2876 #2881 #2886 #2888 #2906 #2910 #2922 #2930 #3028 #3053 #3069 #3109 #3211); [EXPERIMENTAL] live-revision sidecar vaults now admit exchange credentials with real-image CI verification (#3079 #3102)
  • Fast Sandbox hot-path & teardown performance: replace linear per-subject master chains and full delete table rebuilds on Remove in fastsandboxnft with O(1) nftables verdict maps (vmap) and incremental per-subject removal using plain nft -f - transactions (#3202); deduplicate gateway DNS redirect applies and batch O(1) named-set MITM nftables updates into ApplyDenyFirst (#3151); eliminate dir.Sync() on read-only Snapshot() calls, non-IMA/EVM double fsyncs, and duplicate owner reads/rewrites on Actions v2 while failing closed on unconfirmed owner writes (#3152); compile port sets once during Classic dropEstablished teardown (#3090); and avoid text round trips when extracting resolved DNS IPs (#3029)
  • Classic dns+nft & DNS correctness fixes: track Classic DNS leases per domain so shorter TTLs do not truncate shared-IP grants and still-permitted grants survive default-deny policy replacements (#2998); return address-free SERVFAIL instead of NOERROR on failed nftables installs and tracking-capacity overflow (#2952 #2961); match domain rules written with a trailing root dot (pypi.org.) (#2810); keep UDP replies to non-EDNS clients within 512 bytes with TC set (#2802); fail startup on invalid OPENSANDBOX_EGRESS_DNS_UPSTREAM ports (#2809)
  • Smaller fixes: specify meta l4proto tcp before ct original proto-dst in Fast Sandbox INPUT rules for nftables 1.0.6 compatibility (#2958); roll back candidate Classic /policy files on nftables apply failure before logging (#3108); reuse sidecar nftables helpers in the Fast Sandbox applier (#2865); reuse one rotating Zap file writer per path so internal diagnostics stay in the active file after rotation (shared with ingress) (#3126)

ingress

  • Block /internal/init on execd port 44772: reject requests to /internal/init (including normalized and percent-encoded variants) on port 44772 with 403 Forbidden across Header, URI, signed, and Fast Sandbox routing modes before endpoint resolution or wake-on-access (#3111)
  • Single-namespace Fast Sandbox wildcard routes & HTTP pool tuning: --fast-sandbox-namespace (gateway.fastSandboxNamespace in Helm) enables unsigned <sandbox-id>-<port>.<gateway-domain> routing scoped to one namespace via Host or OpenSandbox-Ingress-To with case-insensitive fsb- label matching (#2955 #2981 #2988); --http-max-idle-conns, --http-max-idle-conns-per-host, --http-idle-conn-timeout, and gateway.httpConnectionPool expose upstream HTTP connection-pool tuning (#3001)
  • Streamlined OTLP metrics (14 instruments) & full-duplex HTTP/1 proxying: adds ingress.requests.active, outcome labels, and terminal ingress.wake.duration while fixing streaming/routing/parking accounting and dropping host gauges and duplicate counters (#3132); enables ResponseController.EnableFullDuplex() (requiring Go 1.26.11) so early streaming responses no longer race unread request bodies (#3087)
  • FastPath route eviction & relay fixes: bound FastPath HTTP and WebSocket dials to 5 seconds and evict failed cached routes even after client cancellation so deleted Fastlet Pod blackholes do not pin retries (#3133 #3153); drop stale Content-Length on relayed WebSocket handshake rejections so bodies >1 KiB arrive intact (#2798); reject signed route port segments (+8080) (#2806); clarify internal package boundaries and tidy go.mod/go.sum (#3129 #3071 #3208)

Fast Sandbox

  • Rootfs-only snapshots across OCI & native S3, single-image OCI manifests & resource overrides (FSEP-0005): RootfsOnly capture self-derives qualification from the deployed managed Firecracker bundle and extends to native S3 templates (fast-sandbox#181 fast-sandbox#185 fast-sandbox#212 fast-sandbox#214 fast-sandbox#223 fast-sandbox#225); Firecracker ResourceAware pools accept partial or full per-create CPU/memory limits via a dedicated FastPath RPC while preserving host CPU quota separately from guest vCPU count (fast-sandbox#231); and OCI RootfsOnly snapshots embed the VM manifest directly in the rootfs image config (fsb-vm pack --rootfs-only), cutting cold-boot device prep by ~407 ms while keeping two-image read/delete compatibility (fast-sandbox#258) — carriers (#2709 #2893 #2900 #2933 #3165)
  • Fastlet control auth (FSEP-0003) & optional FastPath caller auth (OSEP-0032): Fastlets authenticate the control API with ServiceAccount tokens verified via authenticated per-namespace OIDC/JWKS discovery (replacing system:unauthenticated with system:serviceaccounts, preserving imagePullSecrets, and honoring KUBERNETES_SERVICE_PORT) (fast-sandbox#206 fast-sandbox#207 fast-sandbox#232 fast-sandbox#235 fast-sandbox#237); opt-in fastpath.callerAuth.enabled / fastpath_auth_enabled (default false) enforces verified TLS and audience-bound ServiceAccount tokens across server, ingress gateway, and FastPath (gRPC and gRPC-Web) (fast-sandbox#245) — carriers (#2870 #2871 #2900 #2940 #2951 #2989)
  • Local exec ActionHandler support (SandboxPool CRD): spec.sandbox.actionHandlers adds an exec variant (command argv template via execve, timeoutSeconds, maxRetries, mutually exclusive with targetHTTPPort) with FastPath sensitive_input preservation while parked and one-shot completion persistence across Fastlet restarts (#3165 fast-sandbox#269)
  • Cold-boot, memory-density & burst-churn slot optimizations: OCI template builds enable zero-target virtio-balloon free-page reporting and /entropy by default (fast-sandbox#252); Fastlet ResourceAware memory admission excludes reclaimable unmapped page cache from memory.current and ignores EOPNOTSUPP on hosts without psi=1 (fast-sandbox#263 fast-sandbox#280); Fastlet prevents clean-slot pool collapse under burst deletes by reconciling slots with a single worker, batching slot prepare subprocesses, dropping redundant iptables destroys, deduplicating/backing off action probes on a pooled transport, and releasing state.op between action retry attempts so deletes are not starved (fast-sandbox#294); Firecracker caches pinned kernels, VMM versions, and materialized OverlayBD snapfiles, eliminates redundant native/S3 multi-GiB SHA-256 passes using Linux FICLONE, delegates empty hybrid upper creation to overlaybd-ublkd (~46 ms saved), pre-warms guest /32 routes and FSB_GUEST_DNAT/SNAT during slot Prepare (~40 ms saved), exports MITM_CA_STABILIZE_WINDOW=0/MITM_CA_WATCH_INTERVAL=0 with a trust-store readiness gate, pins the OCI builder's overlaybd to opensandbox-group/overlaybd@f50d8e16, and emits OCI create stage timing logs (fast-sandbox#238 fast-sandbox#239 fast-sandbox#243 fast-sandbox#244 fast-sandbox#279 fast-sandbox#285 fast-sandbox#286 fast-sandbox#306) — carriers (#2933 #2951 #2989 #3165 #3213)
  • Cluster-wide FAST_SANDBOX_NETWORK_CIDR, per-registry plainHTTP, Fastlet Proxy resources & gRPC-Web: controller validates and propagates FAST_SANDBOX_NETWORK_CIDR (/8–/29) to builders and Fastlets to unlock >126 slots per Fastlet (fast-sandbox#284); registries.yaml supports per-entry plainHTTP: true (allowing anonymous in-cluster HTTP registries) with strict YAML parsing (yaml.UnmarshalStrict) (fast-sandbox#281 fast-sandbox#283), while compiled registry revision generation and heartbeat tracking are removed so RegistryReady reflects validated persisted configuration with content-based reloads (fast-sandbox#242); controller.fastletProxy.resources makes Fastlet Proxy CPU/memory configurable (fast-sandbox#215); and controller.fastpathHTTPPort (default 0, off) exposes an optional FastPath gRPC-Web listener (fast-sandbox#234) — carriers (#2870 #2938 #2989 #3165)
  • Control-plane RBAC split & least-privilege tightening: moves the 12 Fast Sandbox control-plane ServiceAccounts and RBAC objects from charts/base into charts/fast-sandbox (rbac.create, default true) (#3100); trims unused nodes, runtimeclasses, secrets, and excess delete verbs across chart and upstream manifests and scopes upstream kustomize leader-election leases to fast-sandbox-system (#3122 #3165 fast-sandbox#270 fast-sandbox#271 fast-sandbox#278 fast-sandbox#288)
  • Guest clock calibration, upgrade surge bound, singleton controller & security fixes: calibrate guest wall clocks after restore and crash-recovery resume so TLS validation and cron schedules work inside restored microVMs (fast-sandbox#218); append 127.0.0.1 sandbox to guest /etc/hosts so sudo does not stall on hostname lookup (fast-sandbox#266); bound planned-upgrade surge to one Pod (fast-sandbox#273); escape $ in SANDBOX_TEMPLATE_SPEC env (fast-sandbox#292); enforce single-replica Recreate upgrades on the all-in-one (--role=all) controller (#2901); pin the upstream sample egress Pool to explicit all (fast-sandbox#302); remediate Go, containerd, and otel dependency CVEs in companion image builds (fast-sandbox#203 fast-sandbox#307); and land design/architecture docs (FSEP-0004, FSEP-0005, README boundaries) with no behavior change (fast-sandbox#216 fast-sandbox#219 fast-sandbox#268) — carriers (#2900 #2938 #3165 #3213)
  • KVM integration & cost-benchmark harness: deduplicate storage-independent scenarios onto the overlaybd lane with OSEP-0018 hardening-floor verification (#2831 #2833), halve PR KVM runtime via in-place credential-bound switching and single-leg dispatch cancellation (#2911 #3022), share the KVM E2E workflow across PR (resource-aware) and nightly (legacy) lanes (#3097), default FSB_GOPROXY to proxy.golang.org (#3006), reap orphaned sudo integration-env.sh process trees after cancellation (#3067), and add cold-boot timing, RootfsOnly CPU-quota inheritance, restored-VM disk hotplug, and credential-bound M1–M4 cost benchmarks (#2951 #2974 #3054 #3059 #3062)

Misc

  • Security & Dependencies: clears 26 Dependabot alerts across Go (otel 1.47.0 moving seven Go modules and Dockerfiles to Go 1.26, knative.dev/pkg), Python (oauthlib 4.0.1, opentelemetry-api 1.45.2), and JS (vite, mermaid, katex, typescript-eslint); remaining 5 egress mitmproxy/h2 alerts stay documented as upstream-blocked (#2934)
  • Charts & Node Agent: raise the Kubernetes minimum to 1.22 across all sub-charts and release metadata (#2874); fix node-agent chart health-port derivation from host:port serverAddr (#2789); streamline nodeagent OTLP metrics to six core instruments (records, delivered.records, drops{reason}, operation.errors{operation,error_type}, queue.bytes in By, and sink.consume.duration), counting deliveries only after sink consumption and source acknowledgement (#3137)
  • CLI: load plugin commands from opensandbox.cli.plugins Python entry points (#2936); remove the deprecated osb devops group in favor of osb diagnostics (#2823); validate osb config set keys and values at set time (#2766); show parser errors for bad credential vault payloads (#2744); preserve explicit http:///https:// endpoint schemes in osb terminal (#2986); exit with code 1 from osb command run on truncated foreground streams (#2914)
  • Console: add an English / Simplified Chinese (zh-CN) interface switcher (#2937); bracket IPv6 pod IPs in node-agent readyz probes (#2799); display eventTime for events.k8s.io events (#2803); keep system pods and events out of tenant-filtered K8s views (#2808); repair relative links to OSEP-0006 (#3191)
  • [EXPERIMENTAL] E2B shim (OSEP-0027): initialize components/e2b-shim with adapter/router skeletons, liveness endpoints, CI, CODEOWNERS, validated config loading, redacted secret resolution, and Go 1.26 vet compatibility — no E2B routes yet (#2591 #2920 #2931 #2932 #2939 #2978)
  • Benchmark harness (opensandbox-bench, OSEP-0034) & published baselines: land the standalone Go opensandbox-bench CLI under benchmark/tools/ covering preflight, atomic 17-step env up/plan/status/audit/down and worker primitives with uniform --json / JSON Lines stdout and exit codes 0/1/2/3/130, in-cluster BuildKit build (linux/amd64), run via pods/exec RemoteRunner, Phase 1 & Phase 2 suites (dataplane-microbench, noisy-neighbor, hardened rootfs-only-restore), deterministic P0/P1 telemetry preflight & cleanSlots LeakAudit, compare, trace, zero-CDN HTML plot, real-cluster verification policy (benchmark/AGENTS.md), and high-concurrency ACK reference profiles (#3065 #3068 #3082 #3141 #3173 #3174 #3176 #3183 #3185 #3196 #3201); archive release-1.3.0-rc.3 and unified 7-suite release-1.3.0-rc.4 ACK OverlayBD baselines, document the reference ACK environment, refresh the root and benchmark READMEs with the 1.3.0-rc.4 performance baseline and dark-mode architecture visuals, and publish egress credential-bound and Firecracker virtio-balloon FPR reports (#3066 #3077 #3098 #3172 #3179 #3180 #3181 #3182 #3186)
  • OSEPs, Docs & Examples: add OSEP-0028 (RootfsOnly create overrides, #2902 #2908), OSEP-0029 (PostgreSQL lifecycle history, #2828), OSEP-0030 (egress forward mode, #2837), OSEP-0031 Phase 1 & 2 (process QoS and cgroup v2 design, #2887 #3049), OSEP-0032 (FastPath caller auth + guide, #2953 #3035 #3041 #3043 #3046), OSEP-0033 (MCP OAuth 2.1, #2970), and OSEP-0035 (near-end Fast Sandbox init, #3115); record OSEP-0023 Fast Sandbox credential-bound implementation status (#3207), sync OSEP statuses, and refresh ROADMAP.md for 2026 Q4 – 2027 H1 (#3095 #3096); clarify sandbox deletion termination semantics and Docker direct endpoints in proxy deprecation docs (#2738 #2965); add the agentgateway egress forward-mode example (#3064) and fix the Kubernetes PVC, gemini-cli, and codex-cli examples (#2956 #3142 #3147)
  • CI & Repo Hygiene: fold execd-init contract tests into the gating Python E2E suite (#2829); pass host GOPROXY into Go integration image builds (#2925); align rc BOM PR approval wait timeout in release-umbrella.yml to 90 minutes (#3177); add comment guidelines, cleanup, opensandbox-pr-review skill enhancements, and remove obsolete files/CODEOWNERS entries (#2821 #2822 #3008 #3010 #3011 #3039 #3050 #3057 #3093)
  • Release preparation: includes 1.3.0-rc.1 through 1.3.0-rc.4 candidate version bumps, release notes, and generated BOMs (#2872 #2873 #2943 #2944 #3058 #3060 #3061 #3175 #3178)

Upgrade & Compatibility

  • Kubernetes 1.21 no longer supported: all charts gate on >=1.22.0-0; upgrade clusters on 1.21 before installing 1.3.0 (#2874)
  • execd-as-init default: [runtime] execd_run_as_init now defaults to true — the server injects EXECD_INIT=1 so execd owns the sandbox process tree. Set execd_run_as_init = false to retain the classic topology; Fast Sandbox golden-image templates keep their baked topology until rebuilt (#2825)
  • Deprecated DevOps routes & CLI removed: GET /sandboxes/{id}/diagnostics/inspect, diagnostics/summary, and the scope-less plain-text fallback on diagnostics/logs/events (including legacy tail/since/container/limit parameters) are removed; scope is now required (422 if omitted) (#2826). osb devops logs|events|inspect|summary are removed — migrate to osb diagnostics logs <id> --scope container -o raw, osb diagnostics events <id> --scope runtime -o raw, osb sandbox get <id> -o json, and osb diagnostics context <id> (#2823); osb config set now rejects unknown keys and invalid values at set time (#2766)
  • BatchSandbox Completed rollout order: apply the updated BatchSandbox CRD before upgrading the controller — an old CRD rejects the new Completed phase. Clients mapping CRD phases will see Completed, and the public lifecycle state reports Terminated with reason SANDBOX_COMPLETED (#2715)
  • BatchSandbox pause refused on gVisor runtimes: POST /sandboxes/{id}/pause on a BatchSandbox backed by a runsc/runsc-* RuntimeClass (or missing a running Pod or readable RuntimeClass) now returns 409 KUBERNETES::INVALID_STATE instead of succeeding while losing pre-pause filesystem writes (#3076)
  • Snapshot mode & Docker delete-conflict rollback: full remains the default snapshot mode; rootfsOnly is supported on Fast Sandbox (OCI and native S3 — native templates must be rebuilt so guest control and freeze/thaw validation are baked in, and older native templates fail closed), while Docker/Kubernetes return 409 UNSUPPORTED_RUNTIME. A rootfsOnly restore is a cold boot (RAM and processes discarded, entrypoint re-run); pause/resume checkpoints remain full-only (#2709 #2835 #2900). On Docker, DELETE /snapshots/{id} rejected with 409 SNAPSHOT::DELETE_CONFLICT now rolls the record back from Deleting to its prior Ready/Failed state; records already stranded in Deleting by earlier versions remain unchanged and finish on retry or restart (#3160)
  • FAST_SANDBOX_ROOTFS_QUALIFICATION removed (breaking for custom VMMs): FAST_SANDBOX_ROOTFS_QUALIFICATION is no longer read and legacy qualification profile files are ignored — qualification now derives from the managed Firecracker release directory, template boot provenance, and deployed OverlayBD/StateRoot layout. Managed deployments keep working automatically (templates missing manifest digests must be rebuilt and sandboxes recreated), whereas custom non-managed VMM setups lose rootfsOnly capture (fail-closed) (#2900 fast-sandbox#225)
  • Fast Sandbox coordinated upgrades & chart split: upgrade fsb-* images before server for RootfsOnly resource overrides (older controllers return 503) (#2933); upgrade charts/base, charts/fast-sandbox, and fsb-* images together — Fast Sandbox control-plane RBAC moved from charts/base into charts/fast-sandbox (#3100), authenticated Fastlet OIDC/JWKS discovery has no anonymous fallback (#2871 #2940 fast-sandbox#232), the all-in-one controller rejects replicaCount > 1 and uses Recreate (#2901), and manifests/charts/base/files/fast-sandbox-crds.yaml must be applied before using SandboxPool actionHandlers[].exec (#3165 fast-sandbox#269). Enabling opt-in FastPath caller auth (fastpath.callerAuth.enabled, default false) requires cert-manager, CA distribution, and rolling FastPath, server, and gateway together (#2989 #3046); fast-sandbox-registry registries.yaml now uses yaml.UnmarshalStrict (unknown keys fail fast) (#3165 fast-sandbox#281); roll fsb-firecracker-runtime from the pinned bundle so fsb-vm pairs with matching overlaybd-ublkd (#3165 fast-sandbox#286); controller.fastletProxy.resources and controller.fastpathHTTPPort (off by default) preserve prior defaults (#2870 #2938)
  • Server RBAC, HTTP error envelope & validation changes: manifests/charts/server adds read-only get/list/watch on sandboxpools.sandbox.fast.io (rolling server upgrades ahead of RBAC fall back to FastPath.GetPool with a warning) and missing-pool creates alongside unsupported fields now return 404 FSB_POOL_NOT_FOUND instead of 400 (#3120); Starlette-raised 404/405/400 errors now return ErrorResponse ({"code":"GENERAL::UNKNOWN_ERROR","message":...}) instead of {"detail":...} (#3117); POST /sandboxes returns 409 immediately instead of 504 when a Kubernetes sandbox is deleted during creation (#3118); BatchSandbox templates dropping SYS_ADMIN reject execd isolation with 400 INVALID_PARAMETER (#3037); reserved-metadata PATCH rejections normalize to SANDBOX::INVALID_METADATA_LABEL (#2793 #2796); capacitySpec.bufferMin > bufferMax returns 422 (#2801); malformed template-list metadata filters return 400 INVALID_METADATA_FORMAT (#2790); Windows-separator subPath traversal is rejected (#2749); docker.pids_limit = 0 disables the limit (#2786); and setting [docker].publish_host makes the server dial published ports at that address (#2846)
  • Plaintext EXECD_ACCESS_TOKEN deprecation, /internal/init hardening & execd pairing: plaintext EXECD_ACCESS_TOKEN continues to work with a startup deprecation warning — migrate Kubernetes deployments to [execd].auth_signing_key_file (server.execdAuth.existingSecret), which rejects use_server_proxy=true on port 44772 with 400 (#3080). Roll out control-plane X-EXECD-ACCESS-TOKEN delivery before enabling EXECD_INIT_AUTH=true; POST /internal/init now caps bodies at 1 MiB (413), preserves active tokens on same-sandboxId re-init when accessTokenHash is omitted, and rolls back RuntimeBinding on 500 startup failures (#3103). Deploy execd, its native launcher (policy v2), and session-gate together (make build-session-gate && sudo make install-session-gate for source installs) (#2959 #3089). Foreground command timeouts now report CommandTimeout instead of CommandExecError (#2684), rename requests with empty src/dest return 400 (pass "." explicitly) (#2818), GET /command/{id}/logs caps responses at 16 MiB (#3033), and multi-range downloads return HTTP 200 with the full file (#3034)
  • Ingress /internal/init block, full-duplex HTTP/1 & Go 1.26.11: requests to :44772/internal/init through ingress now return 403 Forbidden — control planes must invoke /internal/init directly over the pod/node network (#3111); full-duplex HTTP/1 proxying closes connections when a response starts with an unfinished chunked body or >=256 KiB unread body, and building components/ingress from source requires Go >= 1.26.11 (seven Go component modules require Go 1.26) (#2934 #3087)
  • Fast Sandbox egress defaults to credential-bound interception (breaking default): when OPENSANDBOX_EGRESS_FSB_INTERCEPTION_MODE is unset on a Fast Sandbox egress container, interception now selects credential-bound (HTTP/1.1 bound hosts only; unbound HTTPS remains opaque without request-level audit visibility) instead of all, applying the existing credential-bound startup requirements (transparent MITM, dns+nft, default interception ports 80,443, no insecure TLS verification, no chained proxies, no effective ignore_hosts/allow_hosts, and no conflicting legacy experiment gates — incompatible settings fail startup with an explicit rollback hint). To opt out and retain intercept-all behavior, set OPENSANDBOX_EGRESS_FSB_INTERCEPTION_MODE=all (never empty string) and remove conflicting legacy gates; verify the active setting via the new startup line fast-sandbox interception resolved: .... The sidecar profile is unchanged; restarting or replacing egress interrupts existing connections and requires clients to reconnect (#3109 #3211)
  • Egress policies, Credential Vault collisions & TLS capacity default: trailing-root-dot domain rules (pypi.org.) now take effect instead of being inert — review deny rules under default-allow policies (#2810); invalid ports in OPENSANDBOX_EGRESS_DNS_UPSTREAM now fail startup (#2809); Classic dns+nft returns SERVFAIL on failed nftables installs and tracking overflow (#2952 #2961) and preserves still-permitted DNS grants across default-deny replacements (#2998); overlapping Credential Vault bindings across wildcard/exact host scopes compose when disjoint and fail closed (400/403) on header or substitution collisions instead of silently preempting (#3169); under Fast Sandbox credential-bound mode (now the default), upgrade egress and its bundled mitmproxy addon together (#2930) and note that default OPENSANDBOX_EGRESS_FSB_PROCESS_TLS_CAPACITY drops from 131072 to 32768 (set 131072 explicitly to retain the previous cap) (#3053)
  • OTLP metric migrations (execd, ingress, nodeagent): update dashboards and alerts before upgrading — execd removes execd.filesystem.operations.duration, execd.system.network.connections.active, and execd.isolation.upper.usage_bytes (upgraders from 1.3.0-rc.2/rc.3: execd.system.disk.io.operations is also removed), folds execd.isolation.run.duration (result="error") into execd.execution.duration{operation="run_isolated"} (result="failure"), and exports execd.system.disk.usage_bytes, execd.system.disk.total_bytes, execd.system.disk.io.bytes, and execd.system.memory.limit_bytes (#2912 #3134); ingress removes ingress.system.cpu.usage, ingress.system.memory.usage_bytes, ingress.connections.active, ingress.routing.resolutions.count, ingress.upstream.connect.count, ingress.wake.flights, and detailed ingress.network.shadow.* count gauges in favor of histogram counts, ingress.wake.duration, ingress.requests.active, and outcome labels (#3132); nodeagent replaces opensandbox.nodeagent.bytes and opensandbox.nodeagent.retries with opensandbox.nodeagent.delivered.records and opensandbox.nodeagent.operation.errors{operation,error_type}, adds reason on drops, and declares unit By on queue.bytes (#3137)
  • Controller informer selector caveat: --pod-label-selector and --job-label-selector default to empty; when enabled, selectors must match all managed BatchSandbox Pods, Pool Pods, and snapshot commit/unpause Jobs (#3158)
  • SDK behavior changes: all five SDKs fail truncated foreground command SSE streams (#2914); Python, JavaScript, and Kotlin strip X-EXECD-ACCESS-TOKEN on cross-origin redirects (browser JS requests carrying the token fail closed on redirects) (#3101); code-interpreter probes require a confirmed zero exit in Python/JS/Kotlin (#2807); Python and Kotlin SSE handler exceptions now raise SandboxException (#2697 #2994); Kotlin and C# silent SSE streams time out after max(requestTimeout, 30s) (#2847 #2848); Python and Go built-in health pings cap each attempt at min(requestTimeout, 5s) (#3014 #3190); and Python logs propagated adapter failures at DEBUG (#2996)
  • Images: opensandbox/<component>:release-1.3.0 (all three registries; fsb images for fast-sandbox)
  • Packages: server / CLI / SDKs all at 1.3.0
  • Charts: render from this tag (helm template ./manifests/charts/opensandbox)
  • Kubernetes: supported range v1.22 – v1.34
  • Skew: server ↔ CLI/SDK same line supported; ±1 minor warns

👥 Contributors

Thanks to these contributors ❤️

Artifacts

  • BOM: docs/releases/1.3.0.yaml
  • Images: opensandbox/<component>:release-1.3.0 (Docker Hub / GHCR / ACR)
  • Packages: PyPI ×5, npm ×2, Maven Central ×5, NuGet ×2 — all at 1.3.0
  • Go module: github.com/alibaba/OpenSandbox/sdks/sandbox/go@v1.3.0

Installation

# Platform (Kubernetes) — render the chart at this tag and apply
git clone https://github.com/opensandbox-group/OpenSandbox
cd OpenSandbox
git checkout release-1.3.0
helm dependency build manifests/charts/opensandbox  # package file:// sub-charts (not committed)
helm template ./manifests/charts/opensandbox | kubectl apply -f -
# or point your GitOps platform (Argo / Flux) at the repo path + tag

# SDKs
pip install opensandbox==1.3.0            # Python
npm install @alibaba-group/opensandbox@1.3.0   # JavaScript
# Kotlin/JVM: implementation("com.alibaba.opensandbox:sandbox:1.3.0")
dotnet add package Alibaba.OpenSandbox --version 1.3.0
go get github.com/alibaba/OpenSandbox/sdks/sandbox/go@v1.3.0

# Run the server locally
uvx opensandbox-server==1.3.0

Verify what you installed against the BOM: see Release Verification.