Repository navigation
OpenSandbox 1.3.1-rc.2
Pre-release
Pre-release
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-
RootfsOnlyrestores now enable Firecracker dirty-page tracking (Diffdumps + layered_snapfilesuppers) by default alongside sparse zero-page skipping onFulldumps, 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 Kubernetes409pause/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 Classicdns+nft(#3342) - Runtime reliability,
execdefficiency & Go security updates: shares one background resource sampler acrossexecdmetrics consumers (#3297), keepsexecdJupyter streaming heap usageO(1)(+43%–+56%throughput) (#3378), batches cgroup QoS subtree writes (#3328), rebases multi-overlay isolated file search results (#3360), defersPoolpod recycling whileBatchSandboxtask-cleanupis pending (#3332), adds OverlayBD metadata prewarming and independent host memory admission recovery in Fast Sandbox (#3398 fast-sandbox#317 fast-sandbox#339), and upgradesgolang.org/x/nettov0.62.0across 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 ordinarydns+nftandforwardsidecars, overriding requestDROP_*settings without exposing scan settings to tenant env allowlists and switching Docker/Kubernetes probes to/scan/ready/detector/scan/ready/quarantinewhen enabled. Rejects Fast Sandbox creates, network-policy-less creates,BatchSandboxpools/shard patches, andhostNetworkPods after template merging, enforces non-privileged / no-NET_ADMIN/no-NET_RAW/no-SYS_ADMIN/ isolated-PID constraints across business and extra init containers inquarantinemode (preserving existing capabilities indetectmode), and returns HTTP409on Kubernetes (BatchSandboxandagent-sandbox) pause and resume inquarantinemode so Pod replacement cannot drop containment rules (#3312)
Controller
- Defer
Poolpod recycling whileBatchSandboxtask-cleanupis pending: verifies each sandbox queued inPoolReconciler.doRecycleagainst the uncached API server (APIReader) and checks pod ownership againstSpec.PoolRef,Spec.Template, andalloc-status, allowing confirmed orphans (deleted or cross-pool/name-reuse leftovers) to recycle while deferring pods owned by liveBatchSandboxes carrying thebatch-sandbox.sandbox.opensandbox.io/task-cleanupfinalizer during deletion (preventingRestartkill 1orDeletefrom terminatingtask-executormid-cleanup even under stale informer caches) and deferring non-deleting pods absent fromalloc-release. Fails closed on API errors or malformed allocation annotations, requeuing ondefaultRetryTimewhile preservingalloc-releasedpersistence 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 soGET /metricsreturns the latest snapshot immediately without blocking on a fresh sample (returning500 RUNTIME_ERRORuntil the first snapshot is available). Watch streams emit every second (repeating a snapshot and its originaltimestampwhile 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), andGET /metricsdescriptions are updated inspecs/execd-api.yamland regenerated Python/JS clients (#3297) - Batch cgroup QoS subtree setup writes: reads current
cgroup.subtree_controlbefore enabling remainingcpu,memory, andpidscontrollers 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 inmoveExistingBaseProcswhen<base>/cgroup.procsshowsexecdis 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.Searchto 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-overlayStatmetadata, 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-memorystate.result.Streamaccumulation and per-chunkstate.resultMutexlocking fromhandleStreamOutput, keeping mid-executionexecdheap usageO(1)regardless of stdout/stderr volume (preventing sandbox cgroup OOM kills on long streaming cells; 500k frames / ~50 MiB drops live heap from91.35 MiBto1.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
CERTIFICATEPEM blocks without headers or private keys, Go X.509 parsing, no unexpected top-level fields inCertificateorTBSCertificatesequences, and a64 KiBlimit 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 defaultopensandbox-mitmproxy-ca.crtsource 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 initialdropEstablished=truebehavior stay unchanged (#3342)
Fast Sandbox
- Incremental layered OverlayBD memory snapshots by default & sparse
Fulldumps: enables Firecracker dirty-page tracking (track_dirty_pages: true) by default on OverlayBD non-RootfsOnlyrestores so the first Full-mode snapshot or pause dumps aDiffmemory.snapand patches onlySEEK_DATAextents onto a layered_snapfilesupper without rebuilding existing Golden Templates (protecting base layers viaio.fast-sandbox.snapfiles.base-layers, immediately evicting unreferenced private checkpoint.snapfilesleases from the warm pool, relaxing pre-dump staging headroom to3*upper + 1*RAM + 512 MiB, and safely falling back toFullafter one-shot bitmap consumption, on filesystems lacking 4 KiBSEEK_HOLE, or whenFAST_SANDBOX_DISABLE_DIFF_MEMORY_SNAPSHOT=trueis set). Also skips sparse holes and all-zero 4 KiB pages duringFullspill relocation andmnt/memfilecreation (benefiting template builds,RootfsOnly-booted first pauses, andFullfallbacks) and recordsmemorySnapshot(type,logicalBytes,allocatedBytes) inmanifest.jsonand OTel spans (#3398 fast-sandbox#337) - Short-backoff reconciler polling during pause & release: replaces fixed
1 sSandboxReconcilercheckpoint-observation and runtime-deletion poll intervals with stateless timestamp-derived short backoff (100 ms→250 ms→500 ms→1 s), cutting live bare-metal ACKDiffpause wall time from2,165 msto1,168 ms(~1.0 s / 46% saved) while settling back to1 safter6 son longFulltransfers (#3398 fast-sandbox#342) - End-to-end W3C trace propagation across async pause & resume reconciles: persists
sandbox.fast.io/trace-targetalongsidetraceparent/tracestateonSandboxstate transitions sotriggerPause,releasePausedRuntime, andResumeSandboxruntime 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 a30 s-boundedfsb-vm prewarmfor Firecracker OverlayBD entries inSandboxPool.spec.warmImages, verifying and caching paired manifests/metadata (or single-imageRootfsOnlymanifest + config) under the Pool's repository, transport, and credential scope before Fastlet reportsCached, and updatesSandboxPool.spec.warmImagesCRD 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().Usedduring FastletCreateadmission to eliminate one redundant sandbox-table scan under the manager lock (#3398 fast-sandbox#343); sync FSEP-0001 with single-image<id>_rootfspublication, legacy two-image materialization, online pre-flush, strict reflink, and unified kernel paths (#3398 fast-sandbox#338)
Misc
- Security fix — upgrade
golang.org/x/nettov0.62.0across Go modules: updatesgolang.org/x/netfromv0.58.0tov0.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, andbenchmark/tools), remediatingGO-2026-6860(x/net/html, fixed inv0.62.0) andGO-2026-6611(x/net/http2, fixed inv0.60.0) (#3289) - Benchmark harness (
opensandbox-bench): provisions a self-signed MITM CA seed Secret (opensandbox-bench-egress-mitm-ca) for defaultcredential-boundegress and golden template baking, mounts a32 GiBmemory-backedemptyDiratpool.SpillDir(eliminating64 MiB/dev/shmdisk-staging fallback and cutting pause window from9.78 sto0.67–0.71 s), tunes the two-node reference profileovercommitRatiotocpu: 12 / memory: 6so 1,000-slot fastlets schedule within node capacity, and waits for restored fastlet Pods to becomeReadyafter cross-node isolation (bringing cross-nodepause-resumeresume_first_pingto1.08–1.17 s) (#3331) - Docs: adds the
RootfsOnlysnapshot usage and consistency SLA guide (docs/guides/rootfs-only-snapshots.md) covering REST, all five SDKs, andosbCLI alongside explicit filesystem-only (FIFREEZE) consistency guarantees and bare-metal latency figures, plus aRootfs-only snapshotssection indocs/architecture/fast-sandbox/checkpoints.mdand navigation links (#3338)
Upgrade & Compatibility
- Breaking — Classic Egress CA input must live in private storage with
r+xdirectory 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/.mitmproxyseparate from/opt/opensandbox, so no migration is needed there). Supply only completeCERTIFICATEPEM blocks (no PEM header fields or private keys,<= 64 KiBfor 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 tomode = "off"; enablingdetectorquarantinerequires an egress image with/scan/ready/{detect,quarantine}support (1.3.1-rc.1or newer) and ordinarydns+nftorforwardsidecars. Enabled servers reject Fast Sandbox creates, creates without a network policy,BatchSandboxpools/shard patches, andhostNetworkPods;quarantinemode additionally enforces non-privileged / no-NET_ADMIN/no-NET_RAW/no-SYS_ADMIN/ isolated-PID constraints across business and extra init containers (incompatible withexecdSYS_ADMINisolation) and returns HTTP409on Kubernetes (BatchSandbox/agent-sandbox) pause and resume even before containment triggers (#3312) - Fast Sandbox incremental OverlayBD memory snapshots enabled by default: OverlayBD non-
RootfsOnlyrestores now enabletrack_dirty_pages: trueand captureDiffmemory dumps onto layered_snapfilesuppers automatically without requiring Golden Template rebuilds; setFAST_SANDBOX_DISABLE_DIFF_MEMORY_SNAPSHOT=trueon Fastlet to forceFulldumps (#3398 fast-sandbox#337) - Fast Sandbox OverlayBD
warmImagesprewarming requires matched Fastlet &fsb-vm: Pools configuring Firecracker OverlayBD references inspec.warmImagesmust deploy Fastlet and the nodefsb-vmtoolkit from the same release withfsb-vm prewarmsupport;Cachedreflects verified template metadata (evictable by the node's metadata LRU), andmanifests/charts/base/files/fast-sandbox-crds.yamlcarries the updatedSandboxPool.spec.warmImagesdescription (#3398 fast-sandbox#317) execdshared metrics sampling (GET /metrics&GET /metrics/watch):GET /metricsreturns the latest published snapshot immediately instead of blocking on a fresh per-request sample (returning500 RUNTIME_ERRORduring startup until the first snapshot publishes), andGET /metrics/watchmay repeat a snapshot and its originaltimestampwhile a sample is in flight or across compatible binding updates (#3297)execdisolated-session search paths on non-base overlays:GET .../files/searchon 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.1stable 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 ❤️
- @Leeminjing
- @Mengmj
- @Pangjiping
- @Yeaury
- @acodercat
- @cwj2001
- @forrestIsRunning
- @hpliStartAgain
- @xixi-box
- @yangjj-iso
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 + tagVerify what you installed against the BOM: see Release Verification.