Skip to content

Releases

v0.2.0 — Native Zero-Privilege OCI Image Pull, Auto ENTRYPOINT/CMD & Live Logs

Choose a tag to compare

@jonyhy96 jonyhy96 released this 05 Dec 06:35

What's New in v0.2.0

Zero-Privilege Native OCI Image Pull (linux/arm64)

  • Pull and boot standard OCI Registry v2 images (Docker Hub, ghcr.io, ACR, Harbor, etc.) directly via image: "alpine:3.20", image: "python:3.12-alpine", or { oci: "ghcr.io/org/app:v1", auth: { token } } — no Docker Daemon, no root, no privileged mode.
  • Parallel layer downloads, OCI whiteout (.wh.*, .wh..wh..opq) handling, automatic /usr/local/sbin/kw-init bootstrap injection, fast ZSTD EROFS packing (mkfs.erofs -L kwroot --all-root -zzstd,level=1 with mke2fs fallback), and digest-based disk caching + tag caching.
  • Rejects amd64-only images cleanly with HTTP 400 UNSUPPORTED_IMAGE_ARCH.
  • Production Dockerfile now includes erofs-utils and e2fsprogs out-of-the-box.

Automatic OCI ENTRYPOINT / CMD Execution & Live /logs

  • Automatically launches the OCI image's ENTRYPOINT + CMD (or caller-provided entrypoint / cmd / env / cwd / user overrides following Kubernetes & OpenSandbox semantics; pass runEntrypoint: false to disable) while keeping kwbox tty serve active for concurrent exec, files, WebSocket PTY, and AF_VSOCK /preview/:port/*.
  • Added GET /v1/sandboxes/:id/logs (JSON or real-time SSE via ?follow=true / Accept: text/event-stream) and sandbox.logs() in the JS/TS SDK.

Playground & Reliability Improvements

  • Web Playground Image input now supports both built-in images and arbitrary linux/arm64 OCI image references.
  • Fixed Node 20/22 timer ref handling in withTimeout and hardened CI multi-version compatibility (33/33 tests passing on Node 26 live Linux 7.x).

Container Image (Multi-Arch linux/amd64, linux/arm64)

docker pull ghcr.io/jonyhy96/unkernel-sandbox:0.2.0
docker pull ghcr.io/jonyhy96/unkernel-sandbox:latest

v0.1.0 — Zero-KVM WebAssembly Linux Sandbox for AI Agents

Choose a tag to compare

@jonyhy96 jonyhy96 released this 05 Dec 04:58

Highlights

Initial open-source release of unkernel-sandbox — a Zero-KVM WebAssembly Linux 7.x sandbox platform for AI Agents powered by pithings/unkernel.

What's Included

  • Zero-KVM Dedicated Linux 7.x Kernels: Runs unmodified ARM64 Alpine / Debian / custom rootfs inside non-privileged Kubernetes Pods (runAsNonRoot, readOnlyRootFilesystem, drop: [ALL], ~20 MiB RSS per sandbox).
  • OpenSandbox-Aligned Control Plane & JS/TS SDK: create, get, list, exec, files, pause/resume, preview, kill, TTL reaper, and WarmPool (~173 ms cold start, ~8 ms WarmPool, 26 ms pause / 51 ms resume).
  • Production Streaming Exec (SSE) & Full-Duplex WebSocket PTY:
    • Real-time POST /v1/sandboxes/:id/commands SSE streaming (init/stdout/stderr/exit, timeout SIGKILL, disconnect cleanup).
    • Native Linux /dev/pts WebSocket PTY (GET /v1/sandboxes/:id/pty) with RFC 6455 framing, SIGWINCH resize, detachable/sessionId, CLI usbx shell <id>, and local-hosted @xterm/xterm + FitAddon Web Playground.
  • SSRF-Guarded Guest Internet & Zero-Trust SandboxMesh: Default eth0 internet protected by NIC-level SSRF + TLS SNI/HTTP Host policy (policyBackend), coexisting with private *.mesh AF_VSOCK peer networking.
  • Kubernetes CSI S3 / JuiceFS 9p Mounts: Tenant-confined MountGuard (--s3-fuse-dir, --s3-fuse-rw, safe auto-created tenant subdirectories, per-mount readOnly override, anti-traversal & symlink escape protection) plus userspace S3VirtualFs.
  • Native MCP Server: usbx mcp (stdio) and POST /mcp (HTTP JSON-RPC 2.0) ready for Claude Code, Cursor, and Codex.

Container Image

docker pull ghcr.io/jonyhy96/unkernel-sandbox:0.1.0