Skip to content

v0.1.0-alpha.8

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 29 Nov 09:30
· 26 commits to main since this release
e2148b0

Eighth prerelease of Shipkeep, and the one to install. It replaces v0.1.0-alpha.7. Download shipkeep-control-plane_0.1.0-alpha.8.tar.gz below and follow docs/INSTALL.md.

Since alpha.7:

  • Deploy from GitHub.
    • Connect a GitHub App to an organization, then create an application from one of its repositories (#526, #528).
    • Each push to the application's branch deploys its commit (#527).
    • The application's shipkeep.yml is shown with its drift from what runs. A change made in the web UI goes back to the repository as a pull request or a commit (#557, #558, #559, #560).
  • Builds.
    • How a build runs:
      • Images are built with a Dockerfile, Railpack or Nixpacks (#537, #540, #541).
      • A build runs in a rootless BuildKit on the application's own server, behind a network rule of its own and on a filesystem of its own (#533, #536, #554).
      • Its output streams live to the deployment's page (#534, #539).
    • Where images go:
      • Images go to the installation's own registry, in the control plane's Compose project, which grants short-lived scoped tokens (#529, #530).
      • Retention keeps the images a rollback can reach (#552).
      • A nightly collection frees the layers nothing uses (#553).
  • Security:
    • A restore accepts an archive only under the name it was created with. It reads the whole archive before it stops anything (#565). Before, someone who could write where backups are kept could swap in an older genuine archive. Archives made by alpha.7 and earlier still restore, with a warning, since they carry no name.
    • A Dockerfile can run only the official Dockerfile frontend and Railpack's (#551).
    • A build's Git token is revoked once the build has ended (#549).
    • Re-adoption adopts only the certificate the administrator reviewed (#556).
    • Every refused exec join counts against its client's budget (#555).
    • Caddy refuses registry tokens that are unsafe to parse (#550).
    • The egress proxy logs the address it connected to, or the addresses it refused (#535).
    • The control plane image takes Debian's security fixes (#525).
  • After a restore:
    • A server the restore rolled back is re-adopted once an administrator confirms it (#518, #519).
    • A server's untracked containers are listed, and removed on a typed name (#521, #522).
  • Fixes:
    • A failed route switch restores the previous hostnames (#506, #524).
    • A deployment whose runs keep failing is tried again (#508).
    • An action left unfinished past its deadline is undone (#513).
    • Each exec session gets exactly one recorded closing (#511, #562).
    • --migrate brings servers of earlier releases to the current layout (#514, #516).
    • A running action reports to the stream that delivered it last (#507).
    • Log and metric reads hold no lock while the store answers (#509).
    • Application pages drop late answers and reload when idle (#510, #512).

Upgrading from alpha.7 follows Upgrade, with three steps that are new for this release:

  1. Copy the bundle's backup.sh and registry-gc.sh into the installation directory, with registry.yml.
  2. Add the timer of the registry's collection: the page gives the two unit files.
  3. On each server that will build Git applications, run the server installer with --migrate yes. Upgrading the agent does not install the builder. Add --build-disk <GiB> when the server's disk has less room than a fifth of it for the builds, and 5 GiB more.

Verified before release. These checks ran in the lab, on Ubuntu 24.04 machines in containers, with the artifacts attached here:

  • The bundle's signature, its checksums, its build provenance and the image's signature all check out against this tag's release workflow.
  • Upgrade from alpha.7 with a separate server, following docs/INSTALL.md:
    • a backup first, then the control plane with its registry, the collection's timer and the agent;
    • --migrate yes --build-disk 20 then gave the server its builder and a 20 GiB builds filesystem;
    • the application kept answering.
  • A new single machine runs into #572 (below) on a disk with less free space than the default builds filesystem needs. This release's control plane installer cannot pass another size yet. Given a 20 GiB size, this release's server installer finished the machine, and its builder runs.

Known issues:

  • A single machine (the control plane and its applications on one machine) upgraded from alpha.7 cannot get the builder. Images still deploy, but builds from Git do not (#569). A new installation of alpha.8 has it.
  • A new single machine whose /var/lib has less free space than a fifth of its size plus 5 GiB stops at its last step, and --resume yes cannot finish it (#572).
    • Free that space before installing.
    • If an installation already stopped there: free the space, remove the server part as Starting over says, then run --resume yes.
    • A separate server only needs --build-disk <GiB> on its installation command.
  • The nightly registry collection fails until a first build pushes an image (#573), and systemctl --failed shows it. Nothing is lost: there is nothing to collect yet.
  • Deploying from GitHub was tested against a stand-in for GitHub's API and webhooks, not against github.com yet.
  • The registry image still carries a go-jose release affected by a pre-authentication JWK parsing issue. Caddy refuses tokens unsafe to parse before they reach it (#543).

Changelog

Control plane

Install it with shipkeep-control-plane_0.1.0-alpha.8.tar.gz, attached to this release: docs/INSTALL.md says how. It runs this image:

SHIPKEEP_IMAGE=ghcr.io/shipkeepdev/shipkeep:0.1.0-alpha.8@sha256:3d8f724df2779a577bd3455c111f1d0c5ee4b0bf52ab481b050c7e0491d83eae