Appearance
Releases and upgrades
How Orbit is versioned, how a release is cut and checked, and how an operator upgrades. The guarantees behind it are in ADR 0016. Orbit has no release yet: every version on development is 0.1.0 and no tag exists.
Versions
- One version for the whole product: the workspace (
Cargo.toml), everymodule.toml,web/package.jsonandservices/auth/package.json. Tags arevX.Y.Zonmain. - Major (2.0): may remove what 1.x deprecated. Minor (1.1): additive changes only. Patch (1.0.1): bug and security fixes only, no new surface.
- What counts as the public surface, and what is Preview, is in ADR 0016, sections 1 and 4.
- Security fixes land in the latest minor release (SECURITY.md).
Before a release
Every item is checked by a person and ticked in the release pull request (development → main).
- CI is green on
development, includingcargo deny check, the helm job and the web build. node scripts/licence-audit.mjspasses (needspnpm installinweb/andservices/auth/). See Licence audit.CHANGELOG.mdhas a## [X.Y.Z] - YYYY-MM-DDsection; "Unreleased" is moved into it. Deprecations are listed under "Deprecated".- The version is bumped in every file listed under Versions. For 1.0, module
requiresbecomecore@^1(plan lane L10). - The API snapshots are regenerated and their diff reviewed (API generated files). From 1.0 on, the stability check against the
.v1baselines passes. - The seeded upgrade test from the previous tag passes (
crates/orbit-bin/tests/upgrade.rs, plan lane L10; not written yet). - For 1.0 only: the security review is complete and signed.
- Country packs: a release that changes a statutory rule needs the payroll accountant's review and a new entry in the pack's
rules/rules.lock. Today both locks are empty (modules/country-lk/rules/rules.lock,modules/country-ca/rules/rules.lock), so both packs refuse to calculate (statutory_rules_unreviewed). A release can ship like that, but the notes must say payroll calculation is not available for those countries. - Translations: the translation review is done for every new string.
Cutting a release
bash
git switch main && git pull
git tag vX.Y.Z
git push origin vX.Y.ZThe tag starts .github/workflows/release.yml (a draft, not run yet). It:
- Refuses a tag that does not match the workspace version, or a version with no changelog section.
- Runs
cargo deny check, the licence audit,pnpm audit --prod --audit-level highfor both JavaScript projects, and writesTHIRD_PARTY_NOTICES.md. - Builds the web app and the
orbitbinary (every module) for linux amd64 and arm64, each archived with the web build,LICENSE, the payslip fonts' licence and alicenses/folder: the licence files of every linked crate (licenses/crates) and every shipped npm package (licenses/npm, Inter's OFL text included). - Builds the
orbitandorbit-authimages for both architectures from the existingDockerfileandservices/auth/Dockerfile, with an SBOM and provenance attestation, and pushes them only when a registry is configured. - Writes
SHA256SUMS, signs it with the project's Ed25519 key (SHA256SUMS.sig), pins the Compose and Coolify templates to the release's images, takes the release notes from the changelog section, and opens a draft GitHub release.
A person reads the draft, downloads one archive and checks it, then publishes it.
The signing key is safe only if the release job runs reviewed code. The check job refuses a tag whose commit is not on main, and the release job (the only one with the key and contents: write) runs in the release GitHub Environment. Before the first tag the owner (D14):
- creates the
releaseenvironment with required reviewers and a deployment rule that allows onlyv*tags, and storesORBIT_RELEASE_SIGNING_KEYthere as an environment secret, not a repository secret; - adds a tag protection rule (ruleset) so only maintainers create
v*tags.
Pending the owner (plan decision D14): the image registry (vars.ORBIT_IMAGE_REGISTRY with ORBIT_REGISTRY_USER and ORBIT_REGISTRY_TOKEN), the project signing key (ORBIT_RELEASE_SIGNING_KEY, and its public key published in this repository and on the website), and whether keyless image signing is added. Without a registry, the Railway and Dokploy templates cannot be pinned (they build from the repository) and the Helm chart has no default image.
Checking a release
bash
sha256sum -c SHA256SUMS
openssl pkeyutl -verify -pubin -inkey orbit-release.pub.pem -rawin \
-in SHA256SUMS -sigfile SHA256SUMS.sigorbit-release.pub.pem is not published yet (D14).
Upgrading
Any 1.x upgrades to any later 1.x by running the new orbit migrate, then starting the new serving roles. 1.0 upgrades only from the last 0.x tag.
- Read the release notes. Some releases ask for queued jobs to drain first and give the query that shows it (see issue #31 in Operations).
- Back up. Take a database backup as the owner (
orbit_migrator) or the superuser, never a runtime login (Operations), and the file storage volume.ORBIT_DATA_KEYandORBIT_AUDIT_KEYstay backed up on their own, never next to the database backup (Security). - Upgrade.
- Docker Compose:
docker compose -f deploy/docker-compose.yml up -d --build --waitrerunsmigrateandauth-migrate, then restartsweb,workerandauth(deploy/README.md). With the pinned template, change the image tag instead of--build. - Helm:
helm upgrade orbit deploy/helm/orbit -f my-values.yaml --timeout 15m. The migration Jobs run aspre-upgradehooks before any pod rolls (deploy/README.md).
- Docker Compose:
- Check.
orbit healthfor the worker,/readyfor the web role, anddeploy/smoke.shon a staging copy first.
Rolling back. Down migrations exist and are tested, but are not supported in production. To go back, stop the serving roles, restore the backup from step 2, and start the previous images. Anything written after the backup is lost, so roll back quickly or not at all.
Licence audit
Orbit is AGPL-3.0-only. Every dependency must carry a licence that can be combined with it.
- Rust:
cargo deny check licenses, against[licenses] allowindeny.toml. - JavaScript:
node scripts/licence-audit.mjsreads the same allow list fromdeny.tomland checkspnpm licenses listforweb/andservices/auth/. Production packages must pass (exit 1 otherwise). Development packages are not shipped, so a refusal there is a warning, except for the build tools that write their own code into the web bundle (vite,tailwindcss,@tailwindcss/vite), which count as production. Fonts under@fontsource*may be OFL-1.1.--texts DIRcopies the shipped packages' licence files (the release archive'slicenses/npm);pg-typesandpgpassship none, so only their licence id is in the notices.node --test scripts/tests the licence-expression rules. - Fonts: Libertinus Serif (payslip PDFs, OFL-1.1,
crates/docs-render/fonts/OFL.txt) and Inter Variable (web app, OFL-1.1). No Tamil or Sinhala font is bundled: those scripts use the reader's system fonts in the browser, and payslip PDFs cover Latin scripts only. - Plugins: ADR 0017.
Last run (2026-11-23, development at 8ca160c):
| Check | Result |
|---|---|
cargo deny check licenses | ok; apalis-postgres 1.1.0 declares no licence and passes on its MIT LICENSE file |
cargo deny check advisories | ok, with the ignores listed in deny.toml |
web/ production (37 packages, the three build tools included) | ok; @fontsource-variable/inter OFL-1.1 (font rule); @hugeicons/core-free-icons and @hugeicons/react MIT (the Pro licence text in @hugeicons/react covers only @hugeicons-pro/*, which Orbit does not use) |
services/auth/ production (36 packages) | refused: nodemailer 10.6.1, MIT-0. better-auth 1.7.25 and its packages are MIT, pg MIT |
| Development only (warnings) | argparse Python-2.0, caniuse-lite CC-BY-4.0, graceful-fs, lru-cache, minimatch BlueOak-1.0.0 |
pnpm audit --prod | no known vulnerabilities in either project; the dev tree has one moderate advisory (minimatch under @graphql-codegen/cli, GHSA-g3hv-75wg-m249) |
| Typst | typst and typst-pdf 0.15.1 Apache-2.0, krilla MIT OR Apache-2.0 |
MIT-0 is MIT without the notice condition, so it is more permissive than MIT. It is refused only because deny.toml does not list it; adding MIT-0 there (the security reviewer signs off on deny.toml changes) clears it.
Translation review
Plan decision D15: lanes draft Tamil (ta) and Sinhala (si) strings; a native speaker reviews every new string before the release candidate. French (fr) is reviewed the same way. Tick each row in the release pull request.
| Area | ta reviewed | si reviewed | fr reviewed |
|---|---|---|---|
| Phase 0 to 2 strings (shell, sign-in, self-service, admin, leave, attendance, inbox, payroll, SCIM) | [ ] | [ ] | [ ] |
| performance | [ ] | [ ] | [ ] |
| learning | [ ] | [ ] | [ ] |
| analytics | [ ] | [ ] | [ ] |
| marketplace | [ ] | [ ] | [ ] |
| assistant | [ ] | [ ] | [ ] |
| Phase 3 modules | [ ] | [ ] | [ ] |
Open before 1.0
- Owner: what is stable and what is Preview (D13;
country-ca,scimandhelloare not in the default list); the image registry and signing key (D14); the first 0.x tag, which the upgrade test needs as its baseline; thereleaseenvironment and tag protection (see "Cutting a release"); a working security contact inSECURITY.mdwhile the repository is private (private vulnerability reporting needs a public one). - Owner and lawyer: plugin licensing (D4, ADR 0017); the seven-year default retention of employee documents (core README, "Employee documents").
- Payroll accountant: both country packs' rule sets, before payroll calculates for those countries.
- Native speakers: the translation review above.