Worker updates
How workers update themselves from signed releases — trusted keys, manual and automatic updates, graceful switching and automatic rollback.
The installers set workers up for self-updates: autostart runs a small launcher, and each version lives in its
own folder (app/<version>/, with state.json saying which is current).
Source and trust
- Source: by default the control plane the worker is connected to, which serves the project's signed releases
(see Updating workers).
updates.manifestUrlsets another source. - Trust: the worker installs only releases signed with a key it trusts: the project's release key, built into
the worker, or one in
updates.trustedKeys. For your own builds, add your public key in the worker UI (Updates → Trusted release keys). The control plane can deliver releases but cannot add keys, so it cannot make a worker run unsigned code. The manifest signature and the package checksum must both verify.
Manual or automatic
- Manual: the local UI's update section (or
POST /api/updates/applyon the local API) downloads, verifies and installs. - Automatic: set
updates.policytoautomatic; the worker checks every six hours.
Switching and rollback
The worker stops taking new tasks, lets running ones finish, and restarts into the new version, which confirms itself once connected (or after 30 seconds without crashing). If it crashes or hangs before confirming, the launcher goes back to the previous version and never retries that version automatically. The current and previous versions are kept.
Without an update source
Re-run the installer: it installs the new version next to the old one and makes it current. Configuration and credentials are kept.
Credentials after an update
Worker packages up to v0.2.14 carried the OS credential store's library for Linux only, so a Windows or macOS worker installed or updated from one kept its credentials in the encrypted file. Later packages carry it for every system. Such a worker copies its credentials to the OS store once, on its first start with the new version, and stays connected. The encrypted file stays in place, so a rollback to the older version still finds them.
Status
Fetching the project's release needs the server to reach github.com. Air-gapped servers and forks publish their own releases with their own key; until a worker trusts that key, update it by re-running the installer.