Repository navigation
Legion 0.1.12
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_loginchecks a registry login asdocker logindoes, andClient::check_realmis the https rule for where logins may go.inroot::resolveandinroot::walkinlegion-jailresolve a path inside a root as a jailed process would.login::decodeinlegion-apireads a Docker config entry.lb::missing_hooks_ofchecks any anchor's pf hooks, andProto::as_stris public.layer::compress_withcompresses a layer with any encoder, andlayer::set_flagsis 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/localthen 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.