Skip to content

v0.51.2

Choose a tag to compare

@github-actions github-actions released this 18 Nov 18:47
· 502 commits to main since this release
v0.51.2

v0.51.2: on Windows (WSL), boxes run as the distro's user kern; kern self-update; compose and build fixes.

curl -fsSL https://raw.githubusercontent.com/getkern/kern/main/install.sh | sh
irm https://raw.githubusercontent.com/getkern/kern/main/install.ps1 | iex     # Windows (PowerShell)

From this release on, kern self-update installs the next one.

Windows (WSL)

  • Boxes run as the distro's ordinary user kern (uid 1000): a box's root is uid 1000 of the distro. Running install.ps1 again converts an existing distro: images pulled again for the user, volumes and settings moved with their modes kept; an account already on uid 1000 becomes the user.
  • Each distro has its own cgroup subtree: a kern in one distro no longer stops the boxes of another.
  • Started from a root terminal, kern runs as the user on a terminal and in a session of its own; the user's processes hold no descriptor of root's terminal or of anything root's shell left open.
  • The distro ships passt; root's password is locked. kern doctor says who kern runs as and in which distro.

kern self-update

  • Installs the newest signed release (minisign); --check [--json], --to X.Y.Z, --rollback. Refuses a downgrade and leaves installs owned by pip, npm or a package manager to them.
  • install.sh checks the release signature when minisign is installed.

Compose

  • .env values reach the box as written ({...}, [...], *x, &x, a #b).
  • up starts nothing when an image cannot be pulled or a host port is taken, and names each service, image, port and holder.
  • On a bridge, a box's own names resolve to its own address: hostname -i answers one address.
  • A wait for a dependency longer than 30 s is reported with its elapsed time.

Build

  • COPY --chown and ADD --chown set the owner, by number or by the image's user and group names.
  • FROM <stage> and COPY --from build rootless over directories a subordinate uid owns (the python:*-slim apt directories) and keep setuid bits; FROM <stage> no longer warns about an unpinned tag.
  • A step running longer than 30 s is reported with its elapsed time, pids and memory.

Isolation

  • A box keeps the standard default capability set (CapEff 00000000a80425fb); --cap-add adds one back.
  • A box can no longer push input into the terminal it was started from: ioctl TIOCSTI and TIOCLINUX return EPERM.
  • Caps apply when XDG_RUNTIME_DIR points outside /run/user; box scratch never goes under a runtime directory another user owns.

Pull and doctor

  • Credentials a registry refuses are retried anonymously, with a line naming kern login and kern logout.
  • kern doctor reports limits as a box gets them; SELinux counts only when selinuxfs is mounted; sshfs is optional.
  • The published-port warning names the host port and how to keep it on 127.0.0.1.

Full list: CHANGELOG.md