Upgrades and worker updates
Upgrade the control plane safely, rotate ENCRYPTION_KEY, and serve signed worker releases that workers install and roll back by themselves.
Self-hosted
Upgrade the control plane
- Back up MongoDB and your
.env, includingENCRYPTION_KEY. - Pull the new version and rebuild:
docker compose up -d --build, or repeat the Node.js build steps. - Indexes and data migrations run automatically at startup, under a lock.
Workers keep running during the upgrade: they buffer events and retry state changes until the control plane is back. Read the release notes for breaking changes and migration notes before upgrading.
Rotate ENCRYPTION_KEY
- Generate a new key:
node -e "console.log(require('crypto').randomBytes(32).toString('hex'))". - Set
ENCRYPTION_KEYto the new key andENCRYPTION_KEYS_PREVIOUSto the old one; restart. The control plane reads secrets with the old key and re-encrypts them in the background. - Confirm:
docker compose exec control-plane node apps/api/dist/main.js reencrypt-secrets. Exit code 0 means every secret uses the new key; exit code 2 lists secrets no configured key can decrypt. - Remove
ENCRYPTION_KEYS_PREVIOUSand restart.
Update workers
Your control plane serves worker updates to the workers connected to it. You do not build, sign or configure anything.
- Dashboard → Server → Worker releases → Update workers. The server fetches the project's newest official
release from GitHub (
UPDATE_CHECK_REPO), checks its signature against the project release key built into this version, checks the package against the signed SHA-256, and stores it. The page also shows whether GitHub has a newer release than the one you serve. - Workers with automatic updates install it within six hours; others show it under Updates. New installs with the one-line command use it at once. Fetches are recorded in the audit log.
Choose the stable or beta channel on the page. A compromised or misconfigured server can withhold an update, but cannot make a worker accept code the project did not sign: workers verify every update themselves.
See Worker updates for switching and rollback.
Custom worker releases
For forks, private builds and servers without internet access. Releases are signed with a key you control.
- Once, on a machine you trust:
node scripts/sign-release.mjs keygen release-2026. Keep the private key offline; giverelease-2026.public.pemto your workers (worker UI → Updates → Trusted release keys), or setWORKER_RELEASE_TRUSTED_KEYS. - Build the package:
node scripts/package-worker.mjs --tarball. - Dashboard → Server → Worker releases → Custom upload: choose channel and version, upload the package. The page shows the exact signing command.
- Sign on the trusted machine (
node scripts/sign-release.mjs sign … > manifest.json) and uploadmanifest.json. The server checks that it describes the uploaded package.
Alternatively, generate a signing key on the server (Signing keys held by this server) and set
RELEASE_PUBLISH_TOKEN, so your own CI can upload and have the server sign in one call. Anyone who controls the
server can then sign releases for workers that trust that key.