DocsOperatorsRelease checklist

Release checklist

The steps that cut a rim-server release v<version>, in order. Copy the list into the release pull request and tick it there. Steps marked FILL wait for decisions not taken yet; until then they are done by hand or skipped, and the pull request says which. Only the maintainer tags and publishes; CONTRIBUTING.md, "Who can merge and publish", lists the repository settings that enforce it.

The gates run locally on the release commit. CI counts only when it ran on that same commit.

Before the first public release #

One-time sign-offs for the launch. Tick them in the first release pull request, with a link or a date for each. Two of them cannot be ticked before the first release exists: the public relay runs the published images, so it first answers, and takes its first backup, after section 8 publishes them. For the first release the DNS item below and the restore drill of section 4 are ticked right after section 8, from the first deployment and its first backup, and before the release is announced (section 9). Later releases keep the order as written.

  • The state of the outside cryptographic review of Stages 3 and 4 is linked here. 0.0.x releases go out before its sign-off; 0.1.0 waits for it (section 1). The brief is docs/security/crypto-review-brief-2026-10.md; its "Status as of 2026-10-14" names the numbered items already fixed.
  • A public operating profile is chosen, set in the deployment's deploy/.env and tested with the packaged client, including how the client shows a refusal and retries. Each of these is off when unset or 0 (the message burst follows the per-minute rate), and deploy/compose.relay.yml sets none of them: - API rates: RIM_RATE_REQUESTS_PER_MIN_PER_IP, RIM_RATE_MUTATIONS_PER_MIN_PER_SESSION, RIM_RATE_MESSAGES_PER_MIN_PER_USER, RIM_RATE_MESSAGES_BURST. - WebSocket and subscriptions: RIM_RATE_WS_CONNECTIONS_PER_USER, RIM_RATE_SUBSCRIPTIONS_PER_CONNECTION. - Instance caps: RIM_LIMIT_WORKSPACES_PER_USER, RIM_LIMIT_MEMBERS_PER_WORKSPACE, RIM_LIMIT_CHANNELS_PER_WORKSPACE, RIM_LIMIT_DEVICES_PER_USER, RIM_LIMIT_DM_REQUESTS_PER_DAY, RIM_LIMIT_MACROS_PER_WORKSPACE, RIM_LIMIT_PIPELINES_PER_WORKSPACE, RIM_LIMIT_PLUGINS_PER_WORKSPACE, RIM_LIMIT_INVITES_PER_USER_PER_DAY, RIM_LIMIT_INVITE_MAX_USES, RIM_LIMIT_MESSAGE_BYTES, RIM_LIMIT_PENDING_INVITES_PER_USER, RIM_LIMIT_ACCOUNTS (the public relay's is in docs/operations/relay-public.md, "The account cap"). - Probation: RIM_PROBATION_HOURS, RIM_RATE_PROBATION_MESSAGES_PER_MIN. deploy/.env.example, "Request limits" and "Instance limits", says what each one limits.
  • The packaged desktop client and the web client are run by hand against the HTTPS deployment being released, and every finding is fixed or filed as an issue.
  • The upgrade, rollback and restore drill of section 4 ran for this release, with its date recorded there.
  • Desktop distribution is in place as section 8 checks it. rim-ui's release workflow builds installers for Linux x86_64 and Windows x86_64 on the tag, and the in-app updater reads latest.json from GitHub Releases. macOS is build-from-source only. Windows installers are unsigned and stay so for 0.0.x; the install guide documents the SmartScreen prompt ("More info", then "Run anyway"). Every new version prompts again, because SmartScreen builds the reputation of an unsigned installer per file. One follow-up stays open: an Apple Developer account for signed macOS builds.
  • The release environment in both repositories has the maintainer as its only required reviewer and allows deployments from v* tags only (CONTRIBUTING.md, "Repository settings").
  • The updater key is generated with tauri signer generate, and the maintainer holds the private key and its password with an offline backup. In rim-ui's release environment the secrets TAURI_SIGNING_PRIVATE_KEY and TAURI_SIGNING_PRIVATE_KEY_PASSWORD hold them. The rim-ui repository variables are set: UPDATER_PUBKEY to the public key, UPDATER_ENDPOINT to https://github.com/rim-platform/rim-ui/releases/latest/download/latest.json and RELEASE_GRAPHQL_ENDPOINT to https://relay.rim-platform.org/api, the server that release builds of the desktop app start with.
  • DNS for relay.rim-platform.org and chat.rim-platform.org points at the public relay, and curl -s https://relay.rim-platform.org/.well-known/rim-server answers with its descriptor. https://chat.rim-platform.org/ opens the web client (RIM_WEB_DOMAIN), and https://relay.rim-platform.org/ redirects there. The apex rim-platform.org is the website and does not serve the API.
  • The credentials the old .env exposed stay rotated: the published history no longer holds the file, but rewriting history did not revoke them.

1. Choose the version #

  • Read Unreleased in CHANGELOG.md. Every user-visible change since the last tag has a line; git log --oneline v<previous>..master shows what may be missing.
  • Pick the version by Semantic Versioning. While the version is 0.0.x, every release raises the patch and any change may break, including the GraphQL schema, the server-to-server protocol and the specs in docs/specs/; a breaking change still gets its Upgrade: line. 0.1.0 follows once the outside cryptographic review is signed off. From then, while the major version is 0, a breaking change raises the minor version and anything else raises the patch.
  • The version is a plain <major>.<minor>.<patch>: there are no release candidates.
  • rim-server releases on its own. rim-ui has its own version and releases when it has changes; a server release neither waits for one nor needs one, and the web client keeps the version it runs (RIM_WEB_VERSION).
  • If a GraphQL field or argument was removed or changed meaning, API_VERSION in rim_api/src/types/server_info.rs goes up by one.

2. Check the migrations #

  • List them: git diff --stat v<previous>..master -- migration/src.
  • Each one only expands the schema, or drops what the previous release already stopped using. A drop (a contract) has an Upgrade: line in the changelog. docs/operations/upgrade.md, "Why migrations only go forward", is the rule.
  • A migration that rewrites a large table says so in the changelog with the time it took on a copy of a real database.

3. Run the gates on the release commit #

export DATABASE_URL=postgres://postgres:postgres@localhost:5432/rim_test
cargo fmt --all -- --check
cargo clippy --workspace --all-targets -- -D warnings
cargo clippy --workspace --all-targets \
  --features "rim_infra_db/db-tests,rim_infra_services/infra-db-tests,rim_api/e2e-tests" -- -D warnings
cargo test --workspace -- --test-threads=1
cargo test -p rim_infra_db --features db-tests -- --test-threads=1
cargo test -p rim_api --features e2e-tests -- --test-threads=1
cargo test -p rim_infra_services --features infra-db-tests -- --test-threads=1
cargo audit --deny unsound
docker build -t rim-server:release-check .
  • Every command above passes. cargo audit findings are fixed or listed in .cargo/audit.toml with the reason they do not apply and when the entry comes out.

4. Test the upgrade and the rollback #

On a scratch host or compose project, never the production one. The release is not published yet, so the new images are built from the release commits with deploy/compose.dev.yml:

  • Start the previous release (docs/self-hosting.md), sign up, write messages in a channel and an encrypted conversation, upload a file, and take a backup with deploy/backup.sh.
  • Upgrade to the release commit as docs/operations/upgrade.md says. /readyz answers 200 and the data is there.
  • Roll the binary back to the previous release with dc up -d --no-deps rim imagecheck. /readyz answers 200 and the web client still works.
  • A rollback past what a release stores keeps its costs, as docs/operations/upgrade.md, "Rolling back", says. While the previous release predates either of these, the release pull request says what the drill showed: - Post as bot. Once a workspace stores a PostAsBot action, an older server can't read it, and that workspace's pipelines stop listing and firing until the action is removed. The older server can't remove it either, so it is removed before rolling back. - Webhook formats. An older server ignores template, so a webhook with a format acts as plain: a body with a string text posts that text, and any other body answers 400. Its format comes back with the next upgrade. migrate down drops the column and every format in it.
  • Upgrade again: migrate has nothing to run and the server starts.
  • deploy/restore-drill.sh on the latest nightly backup of the public relay relay.rim-platform.org, with the image built from the release commit: the new image applies its migrations to real data and reaches /readyz. The backup is encrypted with age, and the identity that decrypts it is held offline by the maintainer, never on the relay. Copy the archive to the scratch host and point RIM_BACKUP_AGE_IDENTITY at the identity there for the drill. The first release has no such backup yet: its drill runs on the relay's first backup, after section 8 ("Before the first public release").
  • Record the drill in the release pull request: Drill run: <YYYY-MM-DD>, the host, and the previous release it started from.

5. Check the clients against the server #

  • With the release commit running, curl -s http://localhost:8080/api/sdl matches the schema.graphql committed on rim-ui's master.
  • The web client production runs (RIM_WEB_VERSION on the public relay) works against the release commit: start it with RIM_WEB_VERSION set to that version, sign in and send a message. A field or argument it uses that the release removes or changes needs a rim-ui release first, or an Upgrade: line that says which web client the server needs.
  • In rim-ui, npm run skew:check -- <ref> checks the client against the server version production runs, with <ref> the rim-ui commit that holds that version's schema.graphql: it lists what the client sends that the server refuses. Anything it lists goes into the changelog as an Upgrade: line (servers before the client).

6. Version, changelog, pull request #

  • Run scripts/release/set-version.sh <version>. It sets version under [workspace.package] in the root Cargo.toml, refreshes Cargo.lock for the workspace crates only, and cuts CHANGELOG.md: Unreleased becomes [<version>] - <YYYY-MM-DD> (today in UTC) under a new empty Unreleased, and the links at the bottom compare with the previous release (the first release links to …/releases/tag/v<version>). It refuses an invalid version, a version the changelog already has and an empty Unreleased, before it changes anything. scripts/release/test-set-version.sh tests it; CI's lint job runs that.
  • rim-ui's version, changelog and tag are its own release, cut in rim-ui with npm run version:set -- <rim-ui version> when rim-ui releases; nothing here changes them.
  • Open the pull request "Release <version>": the scripts' diff, with this list ticked and the gate tails. Merge it.

7. Tag #

Release tags are signed with the maintainer's SSH key: the ed25519 key on the maintainer's GitHub account, registered there as a signing key as well as an authentication key, so GitHub marks the tag as verified. Git signs with it once it is set up on the machine:

git config --global gpg.format ssh
git config --global user.signingkey ~/.ssh/id_ed25519.pub   # the key's public key file
git checkout master && git pull
git tag -s v<version> -m "rim-server <version>"
git push origin v<version>
  • The tag points at the merged release commit, and rim-server --version built from it prints <version>. Only the maintainer can push a v* tag.

  • The tag shows "Verified" on GitHub. git tag -v checks it locally once an allowed-signers file lists the key:

    echo "$(git config user.email) $(cat ~/.ssh/id_ed25519.pub)" >> ~/.ssh/allowed_signers
    git config --global gpg.ssh.allowedSignersFile ~/.ssh/allowed_signers
    git tag -v v<version>

8. Publish #

Pushing the tag starts .github/workflows/release.yaml. rim-ui's workflow runs the same way on a rim-ui tag, with its own version; the items below that name rim-ui are for a rim-ui release, and a rim-server release skips them. The build-and-publish job waits in the release environment until the maintainer approves it. The job checks the tag against the version in Cargo.toml (rim-ui: package.json) and the changelog's section for it, builds the image for linux/amd64, pushes the tags <version>, <major>.<minor>, sha-<short sha> and latest, signs the digest with cosign keyless and attests an SPDX SBOM to it. rim-server's job does the same for a second image, the profile picture check ghcr.io/rim-platform/rim-imagecheck built from imagecheck/, with the same tags. The next job creates the GitHub release with the changelog section and the SBOMs. rim-ui's workflow also builds the desktop installers, one leg for Linux x86_64 and one for Windows x86_64, and attaches them to its release with latest.json for the updater, SHA256SUMS signed with cosign keyless and a build-provenance attestation for each bundle.

  • The third-party images in deploy/compose*.yml and deploy/backup-lib.sh (PostgreSQL, Caddy, the backup helper, the monitoring images) are pinned as name:tag@sha256:<digest>. Bump a digest in the release that needs a newer image: docker buildx imagetools inspect <name>:<tag> --format '{{.Manifest.Digest}}'.

  • Approve the run on its page ("Review deployments", environment release), after checking that it ran for the tag just pushed.

  • The run passes. A run that fails before "Build and push" published nothing: fix the cause, delete the tag and push it again. Once an image is pushed the version is spent, and a fix goes out as the next patch.

  • Verify the signatures. The certificate must name each repository's release workflow at the tag; any other identity fails:

    v=<version>
    cosign verify ghcr.io/rim-platform/rim-server:$v \
      --certificate-identity https://github.com/rim-platform/rim-server/.github/workflows/release.yaml@refs/tags/v$v \
      --certificate-oidc-issuer https://token.actions.githubusercontent.com
    cosign verify ghcr.io/rim-platform/rim-imagecheck:$v \
      --certificate-identity https://github.com/rim-platform/rim-server/.github/workflows/release.yaml@refs/tags/v$v \
      --certificate-oidc-issuer https://token.actions.githubusercontent.com
    # a rim-ui release: its rim-web image, with v its version
    cosign verify ghcr.io/rim-platform/rim-web:$v \
      --certificate-identity https://github.com/rim-platform/rim-ui/.github/workflows/release.yaml@refs/tags/v$v \
      --certificate-oidc-issuer https://token.actions.githubusercontent.com
    The digest cosign prints matches the one in the GitHub release notes, and the SBOM's
    GitHub attestation to that digest passes for every image:
    `gh attestation verify oci://ghcr.io/rim-platform/<image>@<digest> --repo
    rim-platform/<repository> --predicate-type https://spdx.dev/Document/v2.3`.
  • The first release only: set both packages public (package settings on GitHub), as CONTRIBUTING.md, "Who can merge and publish", lists.

  • The first release that publishes rim-imagecheck: set that package public too. Until it is, deploy/upgrade.sh and every self-hosted deployment fail to pull it.

  • Desktop builds: wait for both legs of rim-ui's run. The release is published only when every asset is attached; until then it is not the latest the updater reads.

  • Install one Linux bundle and one Windows bundle from the release page, sign in and send a message. Build macOS from the tag once, as rim-ui's README says, and start it.

  • latest.json is attached to the release, and https://github.com/rim-platform/rim-ui/releases/latest/download/latest.json names <version>. From the second release on: Settings > About in the previous version offers the new one, and installing it from there works.

  • Verify the checksums and the provenance. The certificate must name rim-ui's release workflow at the tag:

    v=<version>
    gh release download v$v --repo rim-platform/rim-ui --dir rim-ui-$v
    cd rim-ui-$v
    cosign verify-blob SHA256SUMS --bundle SHA256SUMS.sigstore.json \
      --certificate-identity https://github.com/rim-platform/rim-ui/.github/workflows/release.yaml@refs/tags/v$v \
      --certificate-oidc-issuer https://token.actions.githubusercontent.com
    sha256sum --check --ignore-missing SHA256SUMS
    gh attestation verify <one bundle> --repo rim-platform/rim-ui
  • A broken desktop release is rolled back by marking its GitHub release as a pre-release, which moves the updater's latest back to the previous release, or by deleting its assets. Its version and images are never reused: the fix goes out as the next patch.

9. After #

  • Upgrade the public relay relay.rim-platform.org, and any other server the project runs, as docs/operations/upgrade.md says, a backup first.
  • Watch /readyz, the logs and the metrics (docs/operations/metrics.md) for a day.
  • Announce the release on GitHub Releases, with the release notes the workflow creates, and on the site's changelog page, https://rim-platform.org/docs/changelog.html, which renders CHANGELOG.md: rebuild rim-platform.github.io from the release commit in its own pull request so the page shows the release.

Rendered from rim-server/docs/operations/release-checklist.md at 2dd12c8