Repository navigation
Legion 0.1.7
HTTPS certificates from Let's Encrypt for ingress routes, HTTP/2 from clients, API metrics, the WireGuard key under autolock, and a fix to the image store.
New:
- Certificates from ACME: a route with
tls: { secret: shop-cert, acme: { email: ops@example.org } }has the leader manager order a certificate from Let's Encrypt (or another ACME directory,acme.directory) and keep it in the Secret, renewing it after two thirds of its life. Routes naming one Secret share a certificate for all their hosts. Validation is HTTP-01 on port 80, answered by every node's ingress proxy. The route's status shows when the certificate expires, or why the last order failed and when the next is.*.hosts are refused (they need a DNS challenge), and so is a Secret already holding something other than a certificate. Applying such a route accepts the authority's terms of service. - Ingress HTTP/2: clients may speak HTTP/2 (by ALPN over TLS, or its preface in the clear); connections to backends are kept open for the next request.
- API metrics: managers count the API's calls by method and code and time them (
legion_api_requests_total,legion_api_request_duration_seconds). - Autolock now seals a manager's WireGuard key along with its other private keys.
Fixes:
- Image store: two builds of one Containerfile with other layer compression (gzip, then zstd) were taken for one image, the second's layers replacing the first's under both tags. An image is now its manifest.
- From 0.1.6: a node that joined another cluster kept its old IPv6 bridge address, routing another node's subnet into its own bridge.
For tools built on Legion's crates (jailer): legion-sys's Sys trait has a new method, addr_policy_add; legion-api's route types have new fields (RouteTls::acme, NamespacedRoute::challenges).
Install
On FreeBSD 15 for amd64, as root:
tar -xf legion-0.1.7-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. A manager moves its WireGuard key from <data-dir>/wireguard.key into <data-dir>/pki/ on its first start, sealed if autolock is on.
Check the download with sha256 -c $(cat legion-0.1.7-freebsd15-amd64.tar.xz.sha256 | cut -d ' ' -f 1) legion-0.1.7-freebsd15-amd64.tar.xz.