Skip to content

v0.62.0

Latest

Choose a tag to compare

@github-actions github-actions released this 02 Dec 21:50
· 3 commits to main since this release
Immutable release. Only release title and notes can be modified.
v0.62.0

kern runs your images as containers and your agents' code in sandboxes, with no daemon and no root, on Linux, Windows (WSL2) and macOS.

Upgrade

  • A box started with --init keeps your environment to itself. Its PID 1 is kern's own and never execs, and it still held the environment kern was started with: code in the box could read it from /proc/1/environ, and every kern exec into the box got it too. The SDKs' kept sandboxes, kern sandbox create and compose's init: true start boxes this way. Upgrade kern, and the SDKs to kern sandbox 0.4.3, which carry this binary.

New

  • kern port-forward <box> [LOCAL:]PORT: a running box's port on 127.0.0.1, with nothing published when it started and no restart. It prints a link to open, ends with the box, and lets in only your own user's programs.
  • kern exec --isolate: a command in a session nested in the box, with its own processes, network and /tmp; --isolate-workspace DIR:overlay gives it a copy of a directory that is thrown away at the end, :ro a read-only one.
  • --security-opt seccomp-deny-extra=NAME,... refuses more syscalls in a box, for kern exec too.
  • --mount type=volume,src=V,dst=D,volume-subpath=P mounts one directory of a named volume.
  • Signals: --init forwards every signal a workload can catch, and kern kill -s takes every standard signal name.

Faster

  • Boxes started back to back no longer alternate fast and slow: two networks are kept ready and refilled at once (two from empty in 6 to 8 ms instead of 21 to 22).
  • No 2 s wait at every box on a host without a systemd user manager (WSL without systemd): kern run --rm alpine true went from about 2040 ms to 5 to 7 ms.

Fixed

  • An interrupted kern stop no longer leaves the box half stopped.
  • kern top <box> lists an exec --isolate session; kern top --json says which running box is a sandbox (kind).
  • kern inspect shows --init, the box's security options and a volume mounted with a subpath.
  • kern sandbox exec and rm take every sandbox kern sandbox ls lists.

kern sandbox 0.4.3 (Python and Node)

Carries kern v0.62.0. No API changes.

Also new, and off unless started: kern compat opensandbox serve, an HTTP API for sandboxes on 127.0.0.1:8080. Each sandbox is a kern box, with commands and bash sessions, file transfer, a Jupyter code interpreter, isolated sessions, network policies changed live, and a proxy to its ports (details).

Full list: CHANGELOG.md.