github opensandbox-group/OpenSandbox release-1.3.1-rc.1
OpenSandbox 1.3.1-rc.1

pre-release33 minutes ago

First release candidate on the 1.3.1 patch line, cut from release-1.3.0 (2026-11-30, BOM built at 380db89). Baseline for every section is release-1.3.0 (including #3187, which merged after the 1.3.0 BOM build and ships in execd images for the first time here); operators on 1.3.0 validating 1.3.1 fixes should test this build and review Upgrade & Compatibility for the 400 ErrorResponse validation change, specific Kubernetes failure reasons, and Fast Sandbox template rebuild guidance. rc releases publish images but hold packages — SDK/CLI artifacts ship at the 1.3.1 stable bump.

Highlights

  • Zero-stall RootfsOnly snapshot capture: Fast Sandbox moves dirty-upper writeback out of VM.Pause via two-stage online chunked sync_file_range + fdatasync pre-flush and enforces strict reflink cloning on reflink-qualified nodes; in 2-node bare-metal Firecracker + OverlayBD verification (20 GiB template, 16–4096 MiB dirty uppers), 4 GiB pause-window flush dropped from 19.8 s to 1.0 ms (~1.7 ms total vCPU pause, 0.2–0.3 ms reflink cut), eliminating the 19.9 s (994 × 503) external execd /ping outage (3,424 / 3,424 /ping OK at 0.97 ms P99 and 273 / 273 /command OK, alongside 4.2 s → 0.0 ms at 1 GiB and 361 ms → 0.0 ms at 256 MiB) (#3325 fast-sandbox#333)
  • End-to-end W3C OpenTelemetry tracing & firecracker-runtime kernel distribution: Distributed W3C trace propagation now spans opensandbox-server, ingress, FastPath, Fastlet, Firecracker, egress, and S3/OCI artifact publishing with conditional polling sampling (#3252 #3325 fast-sandbox#312 fast-sandbox#318 fast-sandbox#329), while firecracker-runtime distributes pinned guest kernels into a unified firecracker.kernelPath shared by builder Pods and Fastlets (#3325 fast-sandbox#327)
  • Egress security hardening, Credential Vault body-digest signing & Fast Sandbox scaling: Egress sidecars now fail closed to default-deny on corrupt policy files (#3259), add opt-in scan detection and persistent quarantine (#3261 #3270 #3301), support opt-in auth.bodyDigest: sha256 request-body hashing across all five SDKs (#3246), wire Fast Sandbox kernel drop telemetry (#3136), wait for proxy confirmation on Fast Sandbox Vault mutations (#3217), cap per-sandbox resolver concurrency (#3258), and replace O(N²) subject dispatch and queue scans with incremental O(1) structures (#3218 #3290)
  • Multi-tenancy, native gRPC ingress & runtime reliability fixes: Adds the Kubernetes ConfigMap tenant provider (#3299), opt-in native gRPC routing over h2c in ingress (#3116), custom BatchSandbox Pod name prefixes (#3184), 400 ErrorResponse validation responses (#3260), immediate 409 proxy rejection on paused or stopped Docker sandboxes (#3162 #3320), atomic SQLite snapshot migrations (#3304), per-path OSSFS unmount locking (#3321), persistent Jupyter kernel WebSockets (#3228), Windows process-tree kills (#3146), opensandbox-launcher staging with /opt/opensandbox hardening (#3325 fast-sandbox#324), and stale shared snapfiles generation rotation across overlaybd-ublkd restarts (#3325 fast-sandbox#314)

Server

  • ConfigMap tenant provider: adds [tenants] provider = "configmap", watching ConfigMaps labeled opensandbox.io/tenant-keys=true inside administrator-labeled tenant namespaces (one tenant per namespace) with <namespace>.<secret> SHA-256 digest verification, fail-closed 503 staleness checks (max_stale_seconds >= 2), and no additional RBAC; startup failures in tenant_provider.start() now log one error and exit across all tenant providers (#3299)
  • W3C OpenTelemetry trace propagation & conditional polling sampling: reuses [otel].enabled and [otel].endpoint to export OTLP/HTTP traces (/v1/traces) via pure-ASGI HttpTracingMiddleware (extracting W3C traceparent/tracestate, recording opensandbox.request_id, and skipping /health and /version), conditionally samples GET /(sandboxes|snapshots)/{id} so fast 2xx unsampled polls suppress downstream spans while slow (>= 500 ms), non-2xx, failing, or caller-sampled polls export, attaches sync and grpc.aio FastPathClient tracing interceptors, and starts root spans for background idle_pause and renew_intent RPCs (#3252)
  • Custom BatchSandbox Pod name prefixes & Credential Vault body-digest relay: POST /v1/sandboxes accepts extensions["kubernetes.podNamePrefix"] (up to 126 characters, rejected alongside poolRef) to name dedicated Kubernetes Pods <prefix>-<uid-hash>-<replica-index> (#3184), and the Credential Vault relay accepts and forwards opt-in auth.bodyDigest: sha256 on typeless exchange bindings (#3246)
  • Return 400 ErrorResponse for request validation errors: converts FastAPI 422 {"detail": [...]} request validation errors (and full-snapshot restores missing resourceLimits) into 400 {"code": "SANDBOX::INVALID_PARAMETER", "message": "..."} matching specs/sandbox-lifecycle.yml without echoing input or ctx, leaving no remaining 422 responses in the server or generated OpenAPI (#3260)
  • Immediate 409 for proxied requests to paused or stopped Docker sandboxes: Docker server-side proxy routes (/proxy/{port}, /networkpolicy, /credential-vault) now reject paused or non-running target containers (judging port 18080 by the egress sidecar and all other ports by the sandbox container) with 409 DOCKER::SANDBOX_NOT_RUNNING immediately instead of stalling 180 s, returning 500, or failing at connect time, while keeping /networkpolicy//credential-vault available during docker commit snapshots and leaving public GET /endpoints/{port} unchanged (#3162 #3320)
  • Bound shared proxy httpx connect timeout to 10 s: configures the shared proxy httpx.AsyncClient with connect=10.0 (preserving read/write/pool at 180.0 s) so requests forwarded to evicted or unreachable Kubernetes Pods fail fast with 502 BACKEND_CONNECTION_FAILED instead of waiting ~127 s and holding pool slots (#3242)
  • Atomic SQLite snapshot schema migration: runs SQLite snapshot catalog migration (column-name copy, table swap, and index creation) inside one write transaction so an interrupted upgrade rolls back cleanly instead of stranding rows in snapshots_new under an empty catalog; recovers snapshots_new from older interrupted migrations and halts startup for manual reconciliation when both tables hold rows (#3304)
  • Per-path OSSFS unmount locking on Docker: serializes Docker OSSFS mount and unmount operations per mount path with a WeakValueDictionary lock (keeping _ossfs_mount_lock scoped to ref-count and table updates), preventing a concurrent create from bind-mounting a plain host directory while the last departing sandbox unmounts the bucket and stopping slow mounts or unmounts from blocking unrelated buckets (#3321)
  • Fail fast on unschedulable platforms for Pending BatchSandboxes: moves unschedulable-platform pod lookup out of get_status (fixing the nonexistent status.selector lookup and Pending-phase masking) into a rate-limited create-wait probe using batch-sandbox.sandbox.opensandbox.io/name via asyncio.to_thread, returning 400 POD_PLATFORM_UNSCHEDULABLE immediately instead of timing out at 504 (#2359)
  • Expose specific Kubernetes Pod disruption & Docker OOM causes: forwards specific PodFailed / PodDisrupted reasons in status.reason instead of collapsing every Kubernetes pod failure to FAILED (#3227), and appends (OOMKilled) to Docker sandbox status messages when State.OOMKilled is true and the main container exits with code 137 (#3267)
  • Accept decimal memory and disk quantities on Docker & Windows profiles: parses Kubernetes-style decimal resourceLimits (1.5Gi, 0.5Gi, 4.5Gi) with exact Decimal ceiling-byte conversion across Docker, Docker Windows (RAM_SIZE/DISK_SIZE), and Kubernetes Windows QEMU overhead calculations instead of returning 400 (#3245)
  • Smaller fixes: include the required entrypoint array ([] when provider-supplied) in Kubernetes pool create responses (#3276); match SQLite template metadata filter keys literally via json_each bound parameters so quotes, backslashes, brackets, and $ no longer fail with 500 or empty results (#3283); return the stored whole-second expiresAt from FastSandboxService.renew_expiration to match subsequent GET /sandboxes/{id} reads (#3284); align specs/sandbox-lifecycle.yml (and regenerated Python/JS clients) with server behavior by declaring ?dropEstablished, 501, and droppedEstablished on /networkpolicy (#3234) and fixing OPEN-SANDBOX-ORIGIN, pageSize maximum: 200, and metadata filter examples with drift tests (#3322)

SDKs

  • Opt-in Credential Vault exchange request-body digest (auth.bodyDigest: sha256): all five SDKs (Python, JavaScript, Kotlin/JVM, C#, Go) expose bodyDigest on typeless Credential Vault exchange bindings so resolvers can verify and sign request bodies via request.bodySha256 (#3246)
  • Cgroup QoS capability status (hardening.cgroup_qos): all five SDKs (Python, JavaScript, Kotlin/JVM, C#, Go) expose cgroup_qos (cgroupQos / CgroupQos) on isolated-session capability responses matching specs/execd-api.yaml (sdks/sandbox/go/v1.3.0 already tagged 8408f65; Python, JavaScript, Kotlin/JVM, and C# packages ship it at 1.3.1 stable) (#3187)
  • Omit implicit entrypoints on snapshot restore: Python (sync and async), JavaScript, Kotlin/JVM, and Go SDKs stop sending ["tail", "-f", "/dev/null"] on snapshot-ID restores (matching C#), preserving explicit commands and empty arrays while keeping Kotlin's explicit timeout: null (#3300)

Python

  • Allow Sandbox.create() and SandboxSync.create() to create sandboxes with only extensions["poolRef"] (omitting default image, entrypoint, and resource limits) and tolerate legacy 202 pool responses that omit entrypoint (#3276)

JavaScript

  • Bound sseFetch response-header wait and multi-hop redirect chains with requestTimeoutSeconds (default 30 s, clearing timers as soon as headers arrive so active SSE streams are unaffected) across @alibaba-group/opensandbox and @alibaba-group/opensandbox-code-interpreter, while keeping OSEP-0024 wake retries outside the per-attempt redirect deadline and preventing pre-dispatch timer leaks (#3243)

C#

  • Reject non-positive Page or PageSize values locally with InvalidArgumentException in ListSandboxesAsync, ListSnapshotsAsync, and ListTemplatesAsync instead of paying for a server validation round trip (#3222)

Go

  • Check SSE and raw-JSON response read errors before flushing unfinished event blocks so a truncated trailing execution_complete record on a broken stream cannot reach callers or mask a background command transport failure as nil (#2977)

Controller

  • Custom Pod name prefixes for dedicated BatchSandboxes: adds spec.podNamePrefix on the BatchSandbox CRD (max 126 characters, mutually exclusive with poolRef) so dedicated Pods are named <prefix>-<uid-hash>-<replica-index> while preserving the sandbox ID, and updates Developer Console workload and paused-Pod event filters to include prefixed Pods (#3184)
  • Expose Pod disruption in BatchSandbox failure status: preserves container exit details alongside Pod termination and disruption conditions and reports PodDisrupted when DisruptionTarget=True, distinguishing node-pressure evictions and shutdowns from workload failures (#3227)
  • Revert pool assignment profiles when their ConfigMap is deleted: registers a DeleteFunc handler on the pool-assign-profiles ConfigMap informer so deleting the ConfigMap immediately reverts ProfileStore to built-in default profiles instead of retaining custom profiles until controller restart (#3293)
  • Smaller fixes: add regression coverage verifying Pool recycle defers handback on transient uncached Pod lookup failures across same-name Pool recreation without deleting Pods owned by the previous UID (#3214)

Execd

  • Opt-in cgroup v2 group QoS isolation ([qos.cgroup], OSEP-0031 Phase 2): splits execd (plus entrypoint = "high" and internal filesystem workers) into opensandbox-system and standard workloads (run_command, sessions, PTYs, lifecycle hooks, isolated runs, standard ENTRYPOINT) into opensandbox-workload with 10:1 CPU weights (1000 vs 100), optional workload_cpu_max_percent (1..99), adaptive memory reserve (memory_reserve_bytes = 0 derives clamp(total/8, 32 MiB, 128 MiB) into system/memory.low and workload/memory.max), PID headroom (workload_pids_max = 0 reserves 128 PIDs), optional auto_mount = true for unmounted guests (such as Firecracker microVMs), atomic CLONE_INTO_CGROUP placement with cgroup.procs fallback, base-cgroup resource/OOM and dual-cgroup eBPF audit scope preservation, and hardening.cgroup_qos (active | disabled | degraded | unsupported) reporting on GET /v1/isolated/capabilities — merged after the 1.3.0 BOM build (380db89) and shipping in execd images for the first time here (#3187)
  • Shared sandbox.host.local OTLP metrics fallback: inherits the shared telemetry fallback probing sandbox.host.local (4318/4317, 1 s timeout, cached, degrading to noop when unreachable) after HOST_IP and /etc/hostinfo (#3239)
  • Reuse persistent Jupyter kernel WebSocket per context: maintains one persistent /api/kernels/<id>/channels WebSocket per code context with a stable session_id query parameter matching header.session, eliminating per-request reconnect races and session-less buffering (No session ID specified) while recycling timed-out or broken sockets cleanly and retrying once on stale-idle write failures (#3228)
  • Kill whole process trees for Windows commands: stops Windows foreground timeouts, background cancellations, and interrupts via taskkill /T /F /PID with an open process handle guarding against PID reuse (falling back to Process.Kill) so child processes spawned by cmd.exe are terminated alongside the shell (#3146)
  • Apply QoS SCHED_IDLE via raw syscall on musl builds: calls SYS_sched_setscheduler directly in opensandbox-launcher instead of musl's ENOSYS libc wrapper so scheduler = "idle" takes effect in static Alpine execd images without Function not implemented errors (#3308)
  • Observe QoS cgroup OOM kills in root guests: watches registered first-level QoS subtrees and reports OOM kills with level=descendant when standalone guests run with the sandbox base at the cgroup v2 root (where memory.events is absent), fencing sampling across runtime binding handoffs while preserving attribution across identical init retries (#3298)
  • Accept numeric UID/GID strings in Unix file ownership metadata: falls back to decimal UID/GID strings when account or group name lookup fails on ordinary Unix permission updates, uploads, and directory creation so callers can round-trip unmapped ownership values returned by GET /files/info (regenerating execd API descriptions) (#3235)
  • Smaller fixes: reuse Chromium's existing XDG NSS database when the legacy ~/.pki/nssdb directory is absent across MITM CA import and trust checks while retaining the legacy default for fresh homes (#3237)

Networking

egress

  • Credential Vault exchange request-body digest (auth.bodyDigest: sha256): opt-in bodyDigest: sha256 on typeless exchange bindings hashes exact buffered outbound request bytes within the resolver deadline and delivers request.bodySha256 to resolvers (for body-signed schemes), denying unsafe framing, streaming/chunked requests, oversized bodies, trailers, and body rewriting fail-closed (#3246)
  • Sidecar scan detection & persistent quarantine: adds a bounded in-memory NFLOG drop scan detector (ten 1 s buckets, up to 16 evidence endpoints, canary CIDR/host/port/IP thresholds), persistent nftables containment with readback, DNS refusal, retained inbound control ports, webhook notifications, quarantine metrics, and opt-in detect/quarantine sidecar runtime wiring (default off) with restart containment recovery and scoped webhook/OTLP dialers (#3261 #3270 #3301)
  • Fast Sandbox kernel drop telemetry: wires shared nftables drop-counter polling and bounded NFLOG sampling into Fast Sandbox egress with fixed reason-keyed table counters that survive incremental Subject removal and recreation, live Subject-registry source-IP attribution on audit samples (without Subject labels on metrics), and byte-for-byte unchanged default-off rulesets (#3136)
  • Per-sandbox resolver concurrency cap on Fast Sandbox: adds opt-in OPENSANDBOX_EGRESS_FSB_CREDENTIAL_RESOLVER_MAX_CONCURRENCY_PER_SANDBOX (default disabled) to bound concurrent exchange resolver calls per trusted sandbox ID ahead of the shared process-wide limit so one slow resolver cannot starve neighboring sandboxes on the same Fastlet Pod (#3258)
  • Local sandbox.host.local DNS mapping & W3C Action Handler tracing: resolves sandbox.host.local locally in dnsproxy to the sidecar's HOST_IP (TTL 300 s, NXDOMAIN locally when unset, subject to policy and deny.always), disables self-probing DNS fallback on egress, and auto-allows sandbox.host.local for telemetry when backed by HOST_IP (#3239); opts in to shared OTLP tracing (honoring OTEL_TRACES_SAMPLER) and extracts W3C traceparent/tracestate on Fast Sandbox Action Handler HTTP routes (/_fastlet/v{1,2}/actions, /policy/{uid}, /vault/{uid}) (#3252)
  • Fast Sandbox credential-bound incremental dispatch & queue indexing: replaces O(N²) full source-index rebuilds and teardown client scans with per-subject publication cells and source/target teardown indexes (4,096-subject commit CPU down from 1,772 µs to 28 µs; lock-free lookup_source preserved) (#3218), and indexes pending subject snapshot installations in FIFO order under the drain lock (4,096-subject tail replacement down from 12,329 ns to 14.1 ns, zero allocations) (#3290)
  • Scoped forward DNS origin evidence for plaintext HTTP/80 bindings: adds an optional HTTPOrigins store in dnsproxy recording A/AAAA answers after policy installation and reply writes (bounded to 128 addresses per scope, shortest CNAME TTL capped at 5 minutes, invalidating pins on NXDOMAIN, revocation, or overflow, and marking shared-IP names ambiguous); production selectors keep it unset pending HTTP/80 consumer wiring (#3313)
  • Security fix — fail closed on corrupt policy files: distinguishes missing policy files from unreadable or truncated OPENSANDBOX_EGRESS_POLICY_FILE files at startup, applying DefaultDenyPolicy() (invalid_policy_file) instead of falling back to bootstrap OPENSANDBOX_EGRESS_RULES and silently reopening revoked destinations while keeping the policy server running so a subsequent valid policy write restores enforcement (#3259)
  • Wait for proxy confirmation on Fast Sandbox Vault mutations: v1 relay and v2 writer now wait outside commit locks for confirmation that the credential-bound proxy installed the exact decision snapshot (guaranteeing a successful removal has published its new-request fence) and return 503 if installation is rejected or times out without rolling back the local commit (#3217)
  • Reject oversized policy and action bodies cleanly: POST/PATCH/DELETE /policy and Fast Sandbox /actions / Actions v2 endpoints now read limit+1 bytes and return 400 (body exceeds 1048576 bytes) instead of silently truncating payloads past 1 MiB or accepting trailing data after a valid 1 MiB JSON prefix (#3296)
  • Smaller fixes: release the DNS manager mutex before logging failed background lease renewals so a stalled log writer cannot delay unrelated foreground DNS grants (#3138); fix OSEP-0023 credential-bound AC6 verification to read dispatch_v4 instead of pre-SNAT guest IPs, cap CB_REUSE_ATTEMPTS at 1–4, add deterministic Python/Go source-address reuse tests, and update OSEP/guide evidence (#3212)

ingress

  • Opt-in native gRPC routing over h2c: adds --h2c-enabled (gateway.h2cEnabled in Helm, default false) so ingress serves HTTP/1.1 and h2c prior-knowledge on one listener, forwards HTTP/2 application/grpc* requests over a dedicated HTTP/2 transport (keeping HTTP/1.1, SSE, WebSocket, and gRPC-Web unchanged; Fast Sandbox routes remain HTTP/1.1-only), strips platform routing/access metadata, and returns trailers-only gRPC status codes (NOT_FOUND, UNAVAILABLE) for ingress-generated errors (#3116)
  • W3C OpenTelemetry tracing & sandbox.host.local metrics fallback: adds opt-in OTLP trace export with ingress.proxy server spans, outbound W3C header injection toward fast-sandbox-proxy on HTTP and WebSocket hops, FastPath gRPC client tracing interceptors, detached ingress.wake.flight trace continuation, and cumulative temporality docs for Prometheus/OTel Collector (#3252); inherits the shared sandbox.host.local OTLP metrics fallback (#3239)
  • Helm renew-intent flags: exposes opt-in gateway.renewIntent.* (enabled, redisDsn, queueKey, queueMaxLen, minIntervalSeconds, default off) in manifests/charts/ingress-gateway with strict numeric validation and --reuse-values upgrade tolerance so Helm deployments can enable OSEP-0009 renew-on-access through the gateway (#3302)
  • Bracket IPv6 upstream endpoints: builds upstream authority with net.JoinHostPort in resolveRealHost so IPv6 pod endpoints (fd00::5) format as [fd00::5]:8080, fixing malformed Host headers on HTTP requests and failed WebSocket upgrade URL parsing in IPv6 and dual-stack clusters (#3294)

Fast Sandbox

  • Two-stage online RootfsOnly snapshot pre-flush & strict reflink policy: drains dirty /dev/ublkb* block-device pages and backing XFS upper files online via chunked sync_file_range + fdatasync (snapshot.pre_flush) before writing the capture journal fence or calling VM.Pause, cutting 4 GiB dirty-upper pause-window flush from 19.8 s to 1.0 ms (~1.7 ms total vCPU pause, 0.2–0.3 ms reflink cut) and eliminating the 19.9 s (994 × 503) external execd /ping outage (3,424 / 3,424 /ping OK at 0.97 ms P99 and 273 / 273 /command OK); probes StateRoot for FICLONE at startup and rejects unexpected byte-copy fallback on reflink-qualified nodes by default (overridable via FAST_SANDBOX_SNAPSHOT_ALLOW_COPY_FALLBACK=true or FAST_SANDBOX_SNAPSHOT_COPY_FALLBACK_MAX_BYTES), emitting fast_sandbox_firecracker_snapshot_upper_reflink_fallback_total{reason,outcome} (#3325 fast-sandbox#333)
  • Guest kernel distribution via firecracker-runtime & unified firecracker.kernelPath: bundles pinned guest kernels (vmlinux-6.18.36, SHA256SUMS, vmlinux.bin alias) in firecracker-runtime for atomic SHA-256-verified installation into {assetsDir}/kernels (/opt/fast-sandbox/firecracker/kernels), unifying firecracker.kernelPath across firecracker-runtime, sandboxtemplate-builder, and Fastlet (supporting multi-version directories and legacy single-file overrides while retaining 1.x embedded builder and mismatched-kernel warning fallbacks for rolling upgrades) (#3325 fast-sandbox#327)
  • End-to-end W3C OpenTelemetry tracing across Fast-Path, Fastlet, Firecracker & artifact publishing: keeps async Fastlet workers on the requesting trace (DetachRequest + InheritTrace), flattens create, delete, pause, snapshot, handler-relay, VMM API, and S3/OCI artifact publish spans, splits RootfsOnly capture freeze-window stages (vm_pause, flush, cut/upper_copy with copy-method/errno attribution, vm_resume), persists sampled trace context on SandboxSnapshot and Sandbox pause annotations so Controller-triggered snapshot and checkpoint workers continue the caller's trace, forwards OTEL_* env vars to fastlet-proxy, and suppresses routine reconcile and heartbeat trace noise (#3325 fast-sandbox#312 fast-sandbox#318 fast-sandbox#329)
  • Incremental Fastlet resource commitment tracking: maintains CPU and memory commitments incrementally under the manager lock instead of O(N) full scans per admission (800-sandbox read drops from ~1.18 ms / 30k allocs to ~48 ns / 0 allocs) and restricts runtime inventory recovery to startup so live admission reservations cannot be overwritten (#3325 fast-sandbox#315)
  • FSEP-0006 runtime interface proposal: documents the proposed unified Fastlet runtime contract and direct VMM adapter architecture with no runtime behavior change (#3325 fast-sandbox#319)
  • Security fix — stage opensandbox-launcher & rebuild trusted /opt/opensandbox tree: extracts usr/local/libexec/opensandbox-launcher from spec.execd images into /opt/opensandbox/opensandbox-launcher (fixing silently degraded cap_drop/seccomp/landlock hardening on built templates), rebuilds /opt/opensandbox on a fresh root-owned tree inside a 0755 parent, and writes injected runtime files onto fresh O_EXCL inodes so untrusted source images cannot leave workload-writable or symlinked binaries (#3325 fast-sandbox#324)
  • Rotate stale shared snapfiles generations across overlaybd-ublkd restarts: retires stale shared snapfiles cache entries when ublkd loses a device while surviving sandbox leases remain, letting new creates share a fresh generation instead of permanently failing at 0% after firecracker-runtime DaemonSet restarts while preserving old leases and mounts until owners exit and recovering interrupted successor generations (#3325 fast-sandbox#314)
  • Inherit source image WORKDIR in template builds: preserves OCI Config.WorkingDir for both native and OverlayBD templates and runs only the template workload command in that directory (failing startup if an explicit working directory is inaccessible; existing templates require a rebuild) (#3325 fast-sandbox#331)
  • Smaller fixes: key FastPath TLS serving-certificate cache on SHA-256 content hashes of both PEM files so rotations preserving size and mtime reload reliably (#3325 fast-sandbox#311); preserve sparse zero holes during Firecracker artifact downloads in 32 KiB chunks while hashing all bytes so mostly empty rootfs images no longer expand to full logical size in node cache (#3325 fast-sandbox#101)

Misc

  • Runtime base images migrated from Alpine to debian:bookworm-slim: moves ingress, controller, task-executor, image-committer (with SHA-256-verified upstream nerdctl 1.7.6 binary), and console/web (node:22-slim / nginxinc/nginx-unprivileged:1.27) off Alpine/musl onto Debian bases (keeping execd on Alpine) and standardizes baseline debug tooling (ca-certificates, curl, procps, iproute2, strace) and APT_MIRROR build arg across apt-based runtime images (#3223)
  • Benchmark harness (opensandbox-bench), baselines & GitHub Pages charts: archives the pure release-1.3.0 6-suite bare-metal Firecracker + OverlayBD baseline (1,000-slot unified pool, up to 1,994 concurrent sandboxes), adds WaitForPoolReplenished and --inter-suite-cooldown isolation, and updates opensandbox-bench plot to academic technical-report styling (#3244); publishes interactive benchmark charts for archived reports on GitHub Pages (https://open-sandbox.ai/benchmarks/<run-directory>/) and removes committed plot.html files (#3273); adds the opt-in rollout-disruption upgrade-impact suite and atomic worker rollout CLI with surge-storm circuit breaking (#3188), default full-stack in-cluster OTel Collector + Jaeger wiring with trace pull/trace probe (#3268), and 20 GiB sparse rootfs 16/256/1024/4096 MiB dirty tiers with continuous execd /ping + /command downtime probing in rootfs-only-restore (#3292)
  • Dev tooling & agent skills: adds the Ubuntu 24.04 opensandbox/dev-studio all-in-one monorepo development and testing image with DinD, optional kind, and prewarmed caches under scripts/dev-image/ (#3274); adds the opensandbox-benchmark operational playbook skill (#3253) and upgrades opensandbox-pr-review with remote dev-studio sandbox execution via osb CLI and a redesigned bilingual HTML report (#3286)
  • CLI: adds osb sandbox create --inherit-snapshot-resources to restore a snapshot without sending default CPU/memory limits (requires --snapshot-id and conflicts with explicit resource flags or request-file mode; ships in opensandbox-cli at 1.3.1 stable) and wires Fast Sandbox RootfsOnly E2E to test checkout CLI flags (#3333)
  • Docs, Examples & Repo Hygiene: makes the Docker named-volume verification example exit non-zero on command, data, subPath, or read-only check failures (#3114); documents how Python SDK client pools select pre-warmed Kubernetes BatchSandbox Pools via poolRef and shared PVCs (#3119); fixes broken links left over from the docs restructure across egress and benchmark docs (#3317); removes superseded console/docs/ files and cleans up stale references (#3324); removes obsolete components/egress/RELEASE_NOTES.md (#3326)

Upgrade & Compatibility

  • Breaking — request validation returns 400 ErrorResponse instead of 422: clients matching HTTP 422 or FastAPI's detail[] array on invalid requests (including /pools, POST /metrics/events, and full-snapshot restores missing resourceLimits) now receive 400 with {"code": "SANDBOX::INVALID_PARAMETER", "message": "..."}; update error handlers to match 400 + SANDBOX::INVALID_PARAMETER (or accept both 400 and 422 during rolling upgrades) (#3260)
  • Breaking — specific Kubernetes failure status.reason values: GET /v1/sandboxes/{id} now forwards specific PodFailed / PodDisrupted reasons in status.reason instead of always returning FAILED; clients checking status.reason == "FAILED" must switch to status.state == "Failed" (#3227)
  • Docker server-side proxy rejects paused or stopped targets with 409: /proxy/{port}, /networkpolicy, and /credential-vault requests targeting a paused or non-running Docker container now fail immediately with 409 DOCKER::SANDBOX_NOT_RUNNING instead of timing out with 504, returning 500, or failing at connect time, and /proxy/{port} requests arriving while docker commit freezes the sandbox container also return 409 immediately; public GET /endpoints/{port} and snapshot-time /networkpolicy//credential-vault requests remain unchanged (#3162 #3320)
  • Ingress native gRPC routing (--h2c-enabled): off by default (gateway.h2cEnabled=false); when enabled, HTTP/2 application/grpc* ingress rejections return trailers-only HTTP 200 with grpc-status (NOT_FOUND/UNAVAILABLE), non-gRPC HTTP/2 prior-knowledge requests forward over HTTP/1.1, and Fast Sandbox routes remain HTTP/1.1-only (#3116)
  • Egress corrupt policy files fail closed: when OPENSANDBOX_EGRESS_POLICY_FILE exists on disk but is empty or unreadable, the egress sidecar now enforces DefaultDenyPolicy() (invalid_policy_file) instead of falling back to OPENSANDBOX_EGRESS_RULES; persist a valid policy through the running policy API to restore normal rules (#3259)
  • Fast Sandbox Vault mutation confirmation (503 without rollback): credential-bound Vault writes now wait for proxy installation confirmation and return 503 if installation is rejected or times out; the local mutation may already be committed and is not automatically rolled back (#3217)
  • Credential Vault auth.bodyDigest: sha256 pairing: enabling bodyDigest: sha256 on typeless exchange bindings requires an updated egress image and built-in mitmproxy addons; existing bindings continue to resolve on request headers (#3246)
  • BatchSandbox CRD update for custom Pod prefixes: apply the updated manifests/charts/base/files/crds.yaml before setting spec.podNamePrefix or extensions["kubernetes.podNamePrefix"] (#3184)
  • Server tenant-provider startup failure & SQLite snapshot migration conflicts: failures in tenant_provider.start() now exit the server cleanly across all providers, and [tenants] provider = "configmap" requires cluster-administrator opensandbox.io/tenant-keys=true labeling on each tenant namespace (#3299); SQLite snapshot catalogs left with rows in both snapshots and snapshots_new from an older interrupted migration now halt startup so operators can reconcile both tables before resuming (#3304)
  • Fast Sandbox coordinated upgrades & template rebuilds: on reflink-qualified nodes, RootfsOnly snapshot capture now rejects unexpected byte-copy fallback by default (set FAST_SANDBOX_SNAPSHOT_ALLOW_COPY_FALLBACK=true or FAST_SANDBOX_SNAPSHOT_COPY_FALLBACK_MAX_BYTES to override) (#3325 fast-sandbox#333); firecracker-runtime now distributes bundled guest kernels into /opt/fast-sandbox/firecracker/kernels under unified firecracker.kernelPath (1.x embedded builder fallback and mismatched-kernel warning fallback remain active for rolling upgrades) (#3325 fast-sandbox#327); rebuild existing Fast Sandbox templates to pick up /opt/opensandbox/opensandbox-launcher on the hardened root-owned /opt/opensandbox tree (#3325 fast-sandbox#324) and source-image WORKDIR inheritance (inaccessible explicit WORKDIR paths now fail guest startup) (#3325 fast-sandbox#331); keep fsb-vm versions matched across nodes and drain/clean shared snapfiles generation entries before downgrading past stale-generation rotation (#3325 fast-sandbox#314)
  • Debian runtime base images: ingress, controller, task-executor, image-committer, and console/web images grow from Alpine bases to debian:bookworm-slim plus baseline debug packages (binaries, entrypoints, users, and ports are unchanged; execd remains on Alpine); custom image-committer builds bumping NERDCTL_VERSION must also pass matching NERDCTL_SHA256_AMD64/NERDCTL_SHA256_ARM64 build args (#3223)
  • execd opt-in cgroup v2 group QoS ([qos.cgroup], OSEP-0031 Phase 2): disabled by default (enabled = false); enabling it requires cgroup v2 with delegated cpu/memory/pids controllers (or auto_mount = true in privileged standalone guests such as Firecracker microVMs, failing open when unavailable or read-only). Because #3187 merged after the 1.3.0 BOM build (380db89) but before release-1.3.0 and sdks/sandbox/go/v1.3.0 were tagged at 8408f65, 1.3.1-rc.1 is the first release whose execd image includes [qos.cgroup] (Python, JavaScript, Kotlin/JVM, and C# capability models ship at 1.3.1 stable) (#3187)
  • SDK behavior changes (ship at 1.3.1 stable): Python, JavaScript, Kotlin/JVM, and Go SDKs no longer send an implicit ["tail", "-f", "/dev/null"] entrypoint on snapshot-ID restore — pass it explicitly if needed (#3300); C# list methods throw InvalidArgumentException locally for Page <= 0 or PageSize <= 0 (#3222); JavaScript sseFetch bounds pre-header and redirect waits with requestTimeoutSeconds (#3243); Go discards unfinished SSE/raw-JSON blocks on response read failures instead of flushing trailing execution_complete records (#2977)
  • Images: opensandbox/<component>:release-1.3.1-rc.1 (all three registries; fsb images for fast-sandbox)
  • Packages: unchanged — SDK/CLI artifacts publish at the 1.3.1 stable release
  • 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

  • Images: opensandbox/<component>:release-1.3.1-rc.1 (Docker Hub / GHCR / ACR)

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.1-rc.1
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

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

Don't miss a new OpenSandbox release

NewReleases is sending notifications on new releases.