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.xreleases go out before its sign-off;0.1.0waits for it (section 1). The brief isdocs/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/.envand 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), anddeploy/compose.relay.ymlsets 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 indocs/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.jsonfrom GitHub Releases. macOS is build-from-source only. Windows installers are unsigned and stay so for0.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
releaseenvironment in both repositories has the maintainer as its only required reviewer and allows deployments fromv*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'sreleaseenvironment the secretsTAURI_SIGNING_PRIVATE_KEYandTAURI_SIGNING_PRIVATE_KEY_PASSWORDhold them. The rim-ui repository variables are set:UPDATER_PUBKEYto the public key,UPDATER_ENDPOINTtohttps://github.com/rim-platform/rim-ui/releases/latest/download/latest.jsonandRELEASE_GRAPHQL_ENDPOINTtohttps://relay.rim-platform.org/api, the server that release builds of the desktop app start with. - DNS for
relay.rim-platform.organdchat.rim-platform.orgpoints at the public relay, andcurl -s https://relay.rim-platform.org/.well-known/rim-serveranswers with its descriptor.https://chat.rim-platform.org/opens the web client (RIM_WEB_DOMAIN), andhttps://relay.rim-platform.org/redirects there. The apexrim-platform.orgis the website and does not serve the API. - The credentials the old
.envexposed stay rotated: the published history no longer holds the file, but rewriting history did not revoke them.
1. Choose the version #
- Read
UnreleasedinCHANGELOG.md. Every user-visible change since the last tag has a line;git log --oneline v<previous>..mastershows 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 indocs/specs/; a breaking change still gets its Upgrade: line.0.1.0follows 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_VERSIONinrim_api/src/types/server_info.rsgoes 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 auditfindings are fixed or listed in.cargo/audit.tomlwith 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 withdeploy/backup.sh. - Upgrade to the release commit as
docs/operations/upgrade.mdsays./readyzanswers 200 and the data is there. - Roll the binary back to the previous release with
dc up -d --no-deps rim imagecheck./readyzanswers 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 aPostAsBotaction, 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 ignorestemplate, so a webhook with a format acts as plain: a body with a stringtextposts that text, and any other body answers400. Its format comes back with the next upgrade.migrate downdrops the column and every format in it. - Upgrade again:
migratehas nothing to run and the server starts. -
deploy/restore-drill.shon the latest nightly backup of the public relayrelay.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 withage, and the identity that decrypts it is held offline by the maintainer, never on the relay. Copy the archive to the scratch host and pointRIM_BACKUP_AGE_IDENTITYat 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/sdlmatches theschema.graphqlcommitted on rim-ui'smaster. - The web client production runs (
RIM_WEB_VERSIONon the public relay) works against the release commit: start it withRIM_WEB_VERSIONset 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'sschema.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 setsversionunder[workspace.package]in the rootCargo.toml, refreshesCargo.lockfor the workspace crates only, and cutsCHANGELOG.md:Unreleasedbecomes[<version>] - <YYYY-MM-DD>(today in UTC) under a new emptyUnreleased, 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 emptyUnreleased, before it changes anything.scripts/release/test-set-version.shtests 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 --versionbuilt from it prints<version>. Only the maintainer can push av*tag.The tag shows "Verified" on GitHub.
git tag -vchecks 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*.ymlanddeploy/backup-lib.sh(PostgreSQL, Caddy, the backup helper, the monitoring images) are pinned asname: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.comThe 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.shand 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
latestthe 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.jsonis attached to the release, andhttps://github.com/rim-platform/rim-ui/releases/latest/download/latest.jsonnames<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-uiA broken desktop release is rolled back by marking its GitHub release as a pre-release, which moves the updater's
latestback 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, asdocs/operations/upgrade.mdsays, 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 rendersCHANGELOG.md: rebuild rim-platform.github.io from the release commit in its own pull request so the page shows the release.