0.6.0
CubePod 0.6.0
Section titled “CubePod 0.6.0”Features and improvements
Section titled “Features and improvements”- E2B Sandbox Metrics & Prometheus Observability (CEP-0029,
#92). Added E2B-compatibleGET /sandboxes/{id}/metricsandGET /sandboxes/metricsendpoints backed by in-guestpoddsampling (GET /metricsandGET /v1/prometheus, includingpodd-initboot timings from/run/cubepod/init-state.json). Expanded Gateway (:8080/metrics), Controller (:8081/metrics), and Egress (:19090/metrics) with Prometheus metrics covering E2B request latency, CoW forks, WarmPool readiness, E2B volume mounts, secrets, panel sessions, desktop activations, events, webhooks, and egress decisions. See API Overview. - Transparent Egress wiring & CSI
VolumeSnapshotCoW fork mode (#89). WiredTransparentEgress(CUBEPOD_TRANSPARENT=1+NET_ADMIN) and WarmPool egress secret handling intocubepod-controller, added--fork-mode=snapshotwith--volume-snapshot-class(snapshot.storage.k8s.io/v1VolumeSnapshotcloning alongsidepvc-clone), and added controller fork and WarmPool Prometheus metrics. - Multi-replica Secrets HA & strict per-pod mTLS exchange (
#90). AddedKubeSecretBackend(secrets.backend: "k8s") persisting AES-256-GCM encrypted E2B secrets in Kubernetes Secrets for stateless multi-replica Gateway HA, added HA Vault re-hydration (Sync), and enforced strict per-pod mTLS on/internal/v1/egress/exchange(--egress-mtls-addr). - Gateway concurrency, feature gates & async reaper events (
#91). Added per-sandbox operation locking (lockSandboxOp), TOCTOU-safeSyncPodBoxesOncereconciliation, asynchronous idle reaper lifecycle events and webhook delivery, unified--feature-gateflags across Gateway and Controller, and E2B volume mount counters. - Optional Desktop WebRTC transport with noVNC fallback (
#95). Addedtransport: "webrtc" | "novnc"to/sandboxes/{id}/desktop/start(images/desktop/cubepod-desktop-ctlandpkg/gateway/desktop.go), returningwebrtcUrl,transportUsed, andfallbackReasonwith automatic graceful fallback to noVNC. See Interactive Desktop & Panel Proxy. - Native Python & TypeScript SDK feature parity (
#95). Added sandbox metrics, write-only Secrets (Secret.fill/fill_secret), durable Volumes & content I/O, lifecycle Events & signed Webhooks, and Desktoptransportoptions across both Python SDK and TypeScript SDK. - Complete v0.6.0 Helm Chart wiring & Gateway PDB (
#95). Addedpdb.yaml(PodDisruptionBudgetautomatically enabled whengateway.replicaCount > 1),secrets-key-secret.yamlandsecrets.*configuration,egress.transparent, unifiedfeatureGates.*--feature-gateflags, and automatic RWXe2bVolumes+K8sE2BVolumeMountsactivation whene2bVolumes.rwxStorageClassNameis set. See Kubernetes & Helm Deployment. - TypeScript E2B compatibility suite, live K8s E2E tests & documentation (
#93,#94,#88). Addedtest/e2b-compat-ts(make test-e2b-compat-ts), extended Python E2B compatibility coverage, added live Kubernetes E2E lifecycle and WarmPool tests (test/k8s-e2e/k8s_e2e_test.go), updated bilingual website guides and CEP metadata, refreshedog-banner.png, and translateddocs/architecture.mdto English (preservingdocs/architecture_zh.md).
- Controller, Vault & Gateway edge-case hardening (
#89,#90,#91,#92). Hardened WarmPool egress secret lifecycle,VolumeSnapshotnaming and build secret cleanup (#89); fixed Vault exchange/rotation races, composite fork keys, andStore.Synclocking (#90); preventedSyncPodBoxesOnceTOCTOU eviction (#91); and enforced metrics tenant isolation, bounded Prometheus label cardinality, ring buffer eviction, and CPU/loadavg guards (#92).
Before upgrading
Section titled “Before upgrading”No Kubernetes CRD schema fields changed between 0.5.4 and 0.6.0. If upgrading from v0.5.0 or earlier, apply the latest CRDs before running helm upgrade:
kubectl apply -f deploy/helm/cubepod/crds/Review the new 0.6.0 Helm Chart defaults in Kubernetes & Helm Deployment:
secrets.backenddefaults to"k8s"(requires an encryption key viasecrets.existingSecret,secrets.encryptionKey, orgateway.secretsKeySecretwhen running multi-replica HA).egress.transparentandfeatureGates.transparentEgressare bothtrueby default; both must be enabled for transparentnftables/DNS interception.- Setting
e2bVolumes.rwxStorageClassNamenow automatically enablese2bVolumesandK8sE2BVolumeMounts.
Upgrade cubepod-controller, cubepod-gateway, cubepod-egress, and cubepod-podd images together with the 0.6.0 Helm Chart, and update client SDKs (pip install -U cubepod==0.6.0 / npm install [email protected]).