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

pre-release22 minutes ago

Second release candidate on the 1.3.1 patch line, cut from release-1.3.1-rc.1 (2026-12-04). Baseline for every section is release-1.3.1-rc.1; operators testing the 1.3.1 patch line should upgrade to validate the latest Fast Sandbox snapshot, server scan-governance, Classic Egress security, controller, execd, and Go dependency fixes, and review Upgrade & Compatibility for the Classic Egress private CA snapshot requirement and before enabling [egress.scan_detection] or relying on OverlayBD warmImages prewarming. rc releases publish images but hold packages — SDK/CLI artifacts ship at the 1.3.1 stable bump.

Highlights

  • Incremental layered OverlayBD memory snapshots & faster pause/resume on Fast Sandbox: OverlayBD non-RootfsOnly restores now enable Firecracker dirty-page tracking (Diff dumps + layered _snapfiles uppers) by default alongside sparse zero-page skipping on Full dumps, timestamp-derived short-backoff pause/release polling (2,165 ms → 1,168 ms, ~46% faster in live bare-metal ACK verification), and end-to-end W3C trace propagation across async pause and resume reconciles (#3398 fast-sandbox#337 fast-sandbox#342 fast-sandbox#336)
  • Administrator-governed egress scan detection & Classic Egress security hardening: adds [egress.scan_detection] (off / detect / quarantine) to configure sidecar scan sampling and enforce workload capability, namespace, readiness-probe, and Kubernetes 409 pause/resume boundaries across Docker and Kubernetes providers (#3312), installs Classic Egress mitmproxy trust from a verified private CA snapshot instead of reopening the workload-visible export (#3269), and enforces current deny rules ahead of carried DNS grants in Classic dns+nft (#3342)
  • Runtime reliability, execd efficiency & Go security updates: shares one background resource sampler across execd metrics consumers (#3297), keeps execd Jupyter streaming heap usage O(1) (+43%–+56% throughput) (#3378), batches cgroup QoS subtree writes (#3328), rebases multi-overlay isolated file search results (#3360), defers Pool pod recycling while BatchSandbox task-cleanup is pending (#3332), adds OverlayBD metadata prewarming and independent host memory admission recovery in Fast Sandbox (#3398 fast-sandbox#317 fast-sandbox#339), and upgrades golang.org/x/net to v0.62.0 across all seven Go modules (#3289)

Server

  • Administrator-owned sidecar scan detection & quarantine governance: adds [egress.scan_detection] (mode = "off" | "detect" | "quarantine", sample_rate, canary_cidrs, canary_ports, canary_cidr_hits, canary_port_hosts, port_fanout, ip_fanout, allow_ingress_ports, webhook) for ordinary dns+nft and forward sidecars, overriding request DROP_* settings without exposing scan settings to tenant env allowlists and switching Docker/Kubernetes probes to /scan/ready/detect or /scan/ready/quarantine when enabled. Rejects Fast Sandbox creates, network-policy-less creates, BatchSandbox pools/shard patches, and hostNetwork Pods after template merging, enforces non-privileged / no-NET_ADMIN/no-NET_RAW/no-SYS_ADMIN / isolated-PID constraints across business and extra init containers in quarantine mode (preserving existing capabilities in detect mode), and returns HTTP 409 on Kubernetes (BatchSandbox and agent-sandbox) pause and resume in quarantine mode so Pod replacement cannot drop containment rules (#3312)

Controller

  • Defer Pool pod recycling while BatchSandbox task-cleanup is pending: verifies each sandbox queued in PoolReconciler.doRecycle against the uncached API server (APIReader) and checks pod ownership against Spec.PoolRef, Spec.Template, and alloc-status, allowing confirmed orphans (deleted or cross-pool/name-reuse leftovers) to recycle while deferring pods owned by live BatchSandboxes carrying the batch-sandbox.sandbox.opensandbox.io/task-cleanup finalizer during deletion (preventing Restart kill 1 or Delete from terminating task-executor mid-cleanup even under stale informer caches) and deferring non-deleting pods absent from alloc-release. Fails closed on API errors or malformed allocation annotations, requeuing on defaultRetryTime while preserving alloc-released persistence for completed handoffs (#3332)

Execd

  • Shared background resource sampling across metrics consumers (OSEP-0031 R5): runs one background sampler loop publishing CPU and memory snapshots for GET /metrics, GET /metrics/watch, and OpenTelemetry, priming the first snapshot before serving default-startup HTTP or marking a newly bound allocation ready so GET /metrics returns the latest snapshot immediately without blocking on a fresh sample (returning 500 RUNTIME_ERROR until the first snapshot is available). Watch streams emit every second (repeating a snapshot and its original timestamp while a sample is in progress or across compatible binding updates), OpenTelemetry omits failed-resource observations, samples spanning a runtime binding change are discarded, the sampler stops cleanly on shutdown (including PID 1 mode), and GET /metrics descriptions are updated in specs/execd-api.yaml and regenerated Python/JS clients (#3297)
  • Batch cgroup QoS subtree setup writes: reads current cgroup.subtree_control before enabling remaining cpu, memory, and pids controllers in a single batched write (falling back to per-controller writes only on atomic rejection and logging terminal failures like read-only cgroups once) and skips self-migration in moveExistingBaseProcs when <base>/cgroup.procs shows execd is already absent, reducing cgroup-lock contention with kubelet scope creation and FUSE cgroupfs round-trips during sandbox creation bursts (#3328)
  • Rebase isolated search results from every non-base mount: updates MultiMergedView.Search to rebase matches onto each view's namespace mount path for every non-base mount (secondary/nested overlays, / overlays when a workspace is the relative base, and identity binds) instead of only rewritten binds and /tmp, fixing dropped files, wrong-overlay Stat metadata, and unusable relative paths while keeping workspace and single-overlay searches unchanged (#3360)
  • Drop unused Jupyter stream history accumulation (O(1) heap): removes dead in-memory state.result.Stream accumulation and per-chunk state.resultMutex locking from handleStreamOutput, keeping mid-execution execd heap usage O(1) regardless of stdout/stderr volume (preventing sandbox cgroup OOM kills on long streaming cells; 500k frames / ~50 MiB drops live heap from 91.35 MiB to 1.26 MiB) and improving streaming throughput by +43%–+56% (#3378)

Networking

egress

  • Security fix (breaking for custom shared CA mounts) — install Classic Egress trust from a private CA snapshot: snapshots the verified private mitmproxy CA source once (enforcing complete CERTIFICATE PEM blocks without headers or private keys, Go X.509 parsing, no unexpected top-level fields in Certificate or TBSCertificate sequences, and a 64 KiB limit on both input and canonical PEM), installs upstream trust from the canonical PEM, and then exports those same bytes instead of reopening the workload-visible export path; the default opensandbox-mitmproxy-ca.crt source and Fast Sandbox pinned-CA path are unchanged (#3269)
  • Security fix — enforce current deny rules ahead of carried DNS grants in Classic dns+nft: evaluates current IP, TCP-port, and encrypted-DNS deny rules before a timed DNS grant can bypass a withdrawal carried forward by an ordinary reload, returning deny matches to existing established-flow rules so separately kept flows continue while fresh connections and initial dropEstablished=true behavior stay unchanged (#3342)

Fast Sandbox

  • Incremental layered OverlayBD memory snapshots by default & sparse Full dumps: enables Firecracker dirty-page tracking (track_dirty_pages: true) by default on OverlayBD non-RootfsOnly restores so the first Full-mode snapshot or pause dumps a Diff memory.snap and patches only SEEK_DATA extents onto a layered _snapfiles upper without rebuilding existing Golden Templates (protecting base layers via io.fast-sandbox.snapfiles.base-layers, immediately evicting unreferenced private checkpoint .snapfiles leases from the warm pool, relaxing pre-dump staging headroom to 3*upper + 1*RAM + 512 MiB, and safely falling back to Full after one-shot bitmap consumption, on filesystems lacking 4 KiB SEEK_HOLE, or when FAST_SANDBOX_DISABLE_DIFF_MEMORY_SNAPSHOT=true is set). Also skips sparse holes and all-zero 4 KiB pages during Full spill relocation and mnt/memfile creation (benefiting template builds, RootfsOnly-booted first pauses, and Full fallbacks) and records memorySnapshot (type, logicalBytes, allocatedBytes) in manifest.json and OTel spans (#3398 fast-sandbox#337)
  • Short-backoff reconciler polling during pause & release: replaces fixed 1 s SandboxReconciler checkpoint-observation and runtime-deletion poll intervals with stateless timestamp-derived short backoff (100 ms → 250 ms → 500 ms → 1 s), cutting live bare-metal ACK Diff pause wall time from 2,165 ms to 1,168 ms (~1.0 s / 46% saved) while settling back to 1 s after 6 s on long Full transfers (#3398 fast-sandbox#342)
  • End-to-end W3C trace propagation across async pause & resume reconciles: persists sandbox.fast.io/trace-target alongside traceparent/tracestate on Sandbox state transitions so triggerPause, releasePausedRuntime, and ResumeSandbox runtime ensures continue the requesting trace as one waterfall while clearing stale annotations on unsampled transitions and keeping routine polls untraced (#3398 fast-sandbox#336)
  • Metadata-only OverlayBD template prewarming before reporting Cached: runs a 30 s-bounded fsb-vm prewarm for Firecracker OverlayBD entries in SandboxPool.spec.warmImages, verifying and caching paired manifests/metadata (or single-image RootfsOnly manifest + config) under the Pool's repository, transport, and credential scope before Fastlet reports Cached, and updates SandboxPool.spec.warmImages CRD documentation (#3398 fast-sandbox#317)
  • Independent host vs. Fastlet memory admission recovery: tracks host-level and local Fastlet memory pressure independently so healthy pools on the same node resume scheduling after five consecutive healthy host samples while a Fastlet experiencing local pressure stays blocked under its local reason and recovery watermark (#3398 fast-sandbox#339)
  • Smaller fixes: reuse admissionStatusLocked().Used during Fastlet Create admission to eliminate one redundant sandbox-table scan under the manager lock (#3398 fast-sandbox#343); sync FSEP-0001 with single-image <id>_rootfs publication, legacy two-image materialization, online pre-flush, strict reflink, and unified kernel paths (#3398 fast-sandbox#338)

Misc

  • Security fix — upgrade golang.org/x/net to v0.62.0 across Go modules: updates golang.org/x/net from v0.58.0 to v0.62.0 (with refreshed transitive dependencies and checksums) across all seven affected Go modules (components/egress, components/execd, components/ingress, components/internal, components/nodeagent, kubernetes, and benchmark/tools), remediating GO-2026-6860 (x/net/html, fixed in v0.62.0) and GO-2026-6611 (x/net/http2, fixed in v0.60.0) (#3289)
  • Benchmark harness (opensandbox-bench): provisions a self-signed MITM CA seed Secret (opensandbox-bench-egress-mitm-ca) for default credential-bound egress and golden template baking, mounts a 32 GiB memory-backed emptyDir at pool.SpillDir (eliminating 64 MiB /dev/shm disk-staging fallback and cutting pause window from 9.78 s to 0.67–0.71 s), tunes the two-node reference profile overcommitRatio to cpu: 12 / memory: 6 so 1,000-slot fastlets schedule within node capacity, and waits for restored fastlet Pods to become Ready after cross-node isolation (bringing cross-node pause-resume resume_first_ping to 1.08–1.17 s) (#3331)
  • Docs: adds the RootfsOnly snapshot usage and consistency SLA guide (docs/guides/rootfs-only-snapshots.md) covering REST, all five SDKs, and osb CLI alongside explicit filesystem-only (FIFREEZE) consistency guarantees and bare-metal latency figures, plus a Rootfs-only snapshots section in docs/architecture/fast-sandbox/checkpoints.md and navigation links (#3338)

Upgrade & Compatibility

  • Breaking — Classic Egress CA input must live in private storage with r+x directory permissions: custom deployments supplying a shared or workload-writable mitmproxy CA input must move it to private storage inaccessible to the workload (default shipped Docker and Kubernetes mounts already keep /var/lib/mitmproxy/.mitmproxy separate from /opt/opensandbox, so no migration is needed there). Supply only complete CERTIFICATE PEM blocks (no PEM header fields or private keys, <= 64 KiB for both raw input and canonical PEM), and ensure the egress identity has read and search (r+x) permission on every directory traversed to the private CA (non-directory components or permission errors now halt discovery; grant access via a dedicated group or ACL to the egress identity, not the workload) (#3269)
  • Server scan detection & quarantine ([egress.scan_detection]): defaults to mode = "off"; enabling detect or quarantine requires an egress image with /scan/ready/{detect,quarantine} support (1.3.1-rc.1 or newer) and ordinary dns+nft or forward sidecars. Enabled servers reject Fast Sandbox creates, creates without a network policy, BatchSandbox pools/shard patches, and hostNetwork Pods; quarantine mode additionally enforces non-privileged / no-NET_ADMIN/no-NET_RAW/no-SYS_ADMIN / isolated-PID constraints across business and extra init containers (incompatible with execd SYS_ADMIN isolation) and returns HTTP 409 on Kubernetes (BatchSandbox/agent-sandbox) pause and resume even before containment triggers (#3312)
  • Fast Sandbox incremental OverlayBD memory snapshots enabled by default: OverlayBD non-RootfsOnly restores now enable track_dirty_pages: true and capture Diff memory dumps onto layered _snapfiles uppers automatically without requiring Golden Template rebuilds; set FAST_SANDBOX_DISABLE_DIFF_MEMORY_SNAPSHOT=true on Fastlet to force Full dumps (#3398 fast-sandbox#337)
  • Fast Sandbox OverlayBD warmImages prewarming requires matched Fastlet & fsb-vm: Pools configuring Firecracker OverlayBD references in spec.warmImages must deploy Fastlet and the node fsb-vm toolkit from the same release with fsb-vm prewarm support; Cached reflects verified template metadata (evictable by the node's metadata LRU), and manifests/charts/base/files/fast-sandbox-crds.yaml carries the updated SandboxPool.spec.warmImages description (#3398 fast-sandbox#317)
  • execd shared metrics sampling (GET /metrics & GET /metrics/watch): GET /metrics returns the latest published snapshot immediately instead of blocking on a fresh per-request sample (returning 500 RUNTIME_ERROR during startup until the first snapshot publishes), and GET /metrics/watch may repeat a snapshot and its original timestamp while a sample is in flight or across compatible binding updates (#3297)
  • execd isolated-session search paths on non-base overlays: GET .../files/search on secondary/nested overlays, / overlays, and identity binds now returns absolute namespace paths matching what other isolated file routes accept instead of bare workspace-relative names; workspace and single-overlay searches are unchanged (#3360)
  • Images: opensandbox/<component>:release-1.3.1-rc.2 (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.2 (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.2
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.