Skip to content

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), every module.toml, web/package.json and services/auth/package.json. Tags are vX.Y.Z on main.
  • 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).

  1. CI is green on development, including cargo deny check, the helm job and the web build.
  2. node scripts/licence-audit.mjs passes (needs pnpm install in web/ and services/auth/). See Licence audit.
  3. CHANGELOG.md has a ## [X.Y.Z] - YYYY-MM-DD section; "Unreleased" is moved into it. Deprecations are listed under "Deprecated".
  4. The version is bumped in every file listed under Versions. For 1.0, module requires become core@^1 (plan lane L10).
  5. The API snapshots are regenerated and their diff reviewed (API generated files). From 1.0 on, the stability check against the .v1 baselines passes.
  6. The seeded upgrade test from the previous tag passes (crates/orbit-bin/tests/upgrade.rs, plan lane L10; not written yet).
  7. For 1.0 only: the security review is complete and signed.
  8. 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.
  9. 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.Z

The tag starts .github/workflows/release.yml (a draft, not run yet). It:

  1. Refuses a tag that does not match the workspace version, or a version with no changelog section.
  2. Runs cargo deny check, the licence audit, pnpm audit --prod --audit-level high for both JavaScript projects, and writes THIRD_PARTY_NOTICES.md.
  3. Builds the web app and the orbit binary (every module) for linux amd64 and arm64, each archived with the web build, LICENSE, the payslip fonts' licence and a licenses/ folder: the licence files of every linked crate (licenses/crates) and every shipped npm package (licenses/npm, Inter's OFL text included).
  4. Builds the orbit and orbit-auth images for both architectures from the existing Dockerfile and services/auth/Dockerfile, with an SBOM and provenance attestation, and pushes them only when a registry is configured.
  5. 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 release environment with required reviewers and a deployment rule that allows only v* tags, and stores ORBIT_RELEASE_SIGNING_KEY there 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.sig

orbit-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.

  1. 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).
  2. 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_KEY and ORBIT_AUDIT_KEY stay backed up on their own, never next to the database backup (Security).
  3. Upgrade.
    • Docker Compose: docker compose -f deploy/docker-compose.yml up -d --build --wait reruns migrate and auth-migrate, then restarts web, worker and auth (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 as pre-upgrade hooks before any pod rolls (deploy/README.md).
  4. Check. orbit health for the worker, /ready for the web role, and deploy/smoke.sh on 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] allow in deny.toml.
  • JavaScript: node scripts/licence-audit.mjs reads the same allow list from deny.toml and checks pnpm licenses list for web/ and services/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 DIR copies the shipped packages' licence files (the release archive's licenses/npm); pg-types and pgpass ship 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):

CheckResult
cargo deny check licensesok; apalis-postgres 1.1.0 declares no licence and passes on its MIT LICENSE file
cargo deny check advisoriesok, 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 --prodno known vulnerabilities in either project; the dev tree has one moderate advisory (minimatch under @graphql-codegen/cli, GHSA-g3hv-75wg-m249)
Typsttypst 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.

Areata reviewedsi reviewedfr 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, scim and hello are 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; the release environment and tag protection (see "Cutting a release"); a working security contact in SECURITY.md while 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.

Orbit by SkySync Tech. Licensed under AGPL-3.0.