Skip to content

Legion 0.1.12

Choose a tag to compare

@grepjava grepjava released this 06 Nov 03:57
· 950 commits to main since this release

A security fix and an ingress fix since 0.1.11. Upgrading is recommended.

Security:

  • Secrets in errors: an environment value that couldn't be passed on, such as a Secret containing a NUL byte, was printed in the start error. That error reaches Task status, which namespace viewers can read. Errors now name the variable, never its value. A command not found no longer prints the PATH, which can come from a Secret too.
  • Certificates after a namespace move: if a host moved to another namespace and the new namespace's Secret was missing or invalid, its backend went on serving HTTPS with the old namespace's certificate. Certificates are now held for the namespace they came from, so that host has none until its own Secret is readable.

For tools built on Legion's crates:

  • Client::check_login checks a registry login as docker login does, and Client::check_realm is the https rule for where logins may go.
  • inroot::resolve and inroot::walk in legion-jail resolve a path inside a root as a jailed process would.
  • login::decode in legion-api reads a Docker config entry.
  • lb::missing_hooks_of checks any anchor's pf hooks, and Proto::as_str is public.
  • layer::compress_with compresses a layer with any encoder, and layer::set_flags is public.

The project's direction is now in ROADMAP.MD.

Install

On FreeBSD 15 for amd64, as root:

tar -xf legion-0.1.12-freebsd15-amd64.tar.xz --strip-components 1 -C /usr/local

then follow Install in the README. To upgrade: service legion stop, unpack as above, service legion start; running containers are adopted.

Check the download with sha256 -c $(cat legion-0.1.12-freebsd15-amd64.tar.xz.sha256 | cut -d ' ' -f 1) legion-0.1.12-freebsd15-amd64.tar.xz.