Release preparation and publication are separate. Version changes go through a reviewed pull request. Tag builds prepare a draft GitHub release; a maintainer publishes it only after inspecting the candidate. Never replace assets on a published release. Fix a bad candidate before publication; use a new version for a bad public release.
v0.1.2 is the last release, and the last on the Node backend. The next is v0.3.0, the first on the Rust backend. v0.2.0 was prepared on 2026-09-05 but never tagged or released, so everything below applies to the first upgrade from v0.1.2.
- Docker: set a strong, unique
AUDITOR_ADMIN_TOKENin.envbefore upgrading. For example, generate one withopenssl rand -hex 32and keep it in your password manager. Authentication is required even when the host port is published only on localhost: other containers can reach the service. See secure deployment for login and proxy setup. A missing token must fail closed, rather than expose private data. - macOS: releases after v0.1.2 require 13.5 or later on Intel and
Apple Silicon. That
floor came from the bundled Node 24 runtime; a build on the Rust backend
carries no Node, and keeps 13.5 anyway, because that is the floor the app
has shipped and been tested against. Lowering it is a deliberate decision
with its own testing, not a side effect of dropping Node. v0.1.2 cannot negotiate an OS minimum through its
static updater. Upgrade once using the new release's DMG or Homebrew on a
supported Mac. From then on the app uses
latest-v2.jsonfor normal in-app updates. Every release retains the original signed v0.1.2latest.json; older clients must never be offered a later release through that file. This does not make v0.1.2 a supported security-maintenance branch. - Recovery: quit the desktop app or stop the container, then copy the whole
data directory, including
privacy.db, any WAL/SHM files, andbackup-signing.key. Keep the old application/image and this untouched copy. v0.1.2 JSON backups omitted devices, app/device links, review history, activity and related-app observations. Later releases fix those omissions, but cannot recreate data absent from an old JSON file. Use the stopped directory copy for rollback. - A backup from another installation requires explicit trust confirmation. API keys and webhook URLs are omitted from new exports; dangerous developer options are never enabled by restoring a backup. Reconfigure credentials on the destination. A full private backup includes private notes; a shared audit bundle still excludes them.
A repository administrator must configure Settings → Environments →
macos-signing with a required human user or team reviewer and exactly one
selected deployment policy: tag v*. An organization name is not a user reviewer.
Keep Apple and updater private keys scoped to this environment. The release
preflight checks reviewer presence and the tag restriction before entering the
environment; missing or unreadable protections fail the build. The weekly
repository-settings audit also reports drift.
The current automation account may have write permission without administration permission. In that case an administrator must make this setting change. Do not remove the preflight to work around it. Confirm the run pauses for review and that an ordinary branch cannot enter the signing environment.
GHCR sets visibility per package, not per tag. ghcr.io/privacykey/privacytracker
receives release images only and is meant to be public;
ghcr.io/privacykey/privacytracker-edge receives builds of main and PR previews
and must stay private. Until the split, builds of main (main, sha-<commit>)
and PR previews (pr-<n>) went to the first package, and its latest tag still
names a build of main.
- Make the package public only after the first release image exists in it.
Only a final release moves
latest: after a prerelease such asv0.3.0-rc.1alone,lateststill names that old build of main, so wait forv0.3.0or delete that version first (step 2). - Optionally, before that, delete the package's old versions tagged
main,pr-<n>orsha-<commit>(package settings, Manage versions), because a public package exposes every version in it. Leave untagged versions alone unless you know which image they belong to: a release image's platform images and attestations are listed as untagged versions too. - Change the package's visibility to public.
- After the first push to
privacytracker-edge, confirm it is private (a new package starts private) and that this repository has write access to both packages under Manage Actions access.
- On a branch, run
pnpm release:prepare 0.3.0(or the explicit next version). This updatespackage.json, the Rust package and lockfile, and moves the Unreleased notes into a dated release section, with a compare link from the last release tag. It names any section whose version was never tagged, as0.2.0is: fold those entries into the new notes rather than leave a dated section for a release nobody can download. Then write a short summary for people upgrading at the top of the new section, and end it with a[//]: # (release-notes-end)line after a blank line. It renders as nothing, on GitHub and on the docs site (an HTML comment would drop text from the docs site's changelog page). The draft release body is the text above that line, so it stays readable and under GitHub's 125,000-character limit, and the full list below it stays inCHANGELOG.md. The release check refuses a body over the limit before anything is built; a section without the line is used whole. Review the notes, especially the compatibility and recovery requirements above. The command leaves the Rust-core parity fixtures alone, and they need no re-recording: extractors writepackage.json's version as<APP_VERSION>and the Rust replays put the current version back, socore-paritypasses on the new version as it did on the old.pnpm test:releasefails if any fixture records the version as written. If it does, fix that fixture's extractor in its own PR tomain: mask the version, or change canned data that only happens to match it. Do not re-record fixtures on the release branch. Open a PR and merge only after the required checks and review pass. If the version is already prepared in the PR, do not run the command a second time. - Create a signed/annotated
v0.3.0tag at the reviewed main commit and push it using a maintainer identity. The Prepare verified release draft workflow also supports manual dispatch on that existing tag. It rejects branch refs, tags off main, version mismatches and already-published releases. - The workflow invokes the desktop and Docker jobs directly, so it does not
rely on a
GITHUB_TOKENpush triggering another workflow. Approve signing only after checking the tag and commit. - Desktop jobs build natively on Intel and Apple Silicon. They check bundle
version, OS minimum, architecture, code signatures, notarization and
Gatekeeper. The packaged app itself must also pass an isolated v0.1.2
upgrade, authenticated restore and restart rehearsal.
Each job then packs the updater archive from the bundle it has just
verified, checks that the archive holds that same signed app and nothing
else, signs it with the updater key and records its SHA-256 in
build-evidence.json(in theupdater-<target>workflow artifact). It uploads that archive to the draft, replacing the copy tauri-action attached, and reads it back. The updater key never signs anything downloaded from the draft. The assembler requires both platforms, refuses any draft or artifact archive whose digest differs from the build's record, and verifies updater signatures with the same verifier used by Tauri. Missing, altered or wrongly signed archives stop manifest creation. The final draft check repeats the digest comparison, refuses any asset besides the six it covers, and writes both sets of digests torelease-evidence.json. - Docker jobs scan the exact immutable image digest for each architecture,
including OS and application packages. HIGH/CRITICAL findings prevent named
manifest promotion; an untagged candidate digest may already exist in GHCR.
Provenance and SBOM generation remain enabled. Inspect both scan reports and
the final cryptographic attestation verification against the repository,
publishing workflow and source commit. Docker tags are produced by this workflow;
GitHub desktop assets remain draft until the manual publication step.
A release publishes
ghcr.io/privacykey/privacytrackerwith its version tag, plus<major>.<minor>andlatestfor a final release. A prerelease such asv0.3.0-rc.1gets only0.3.0-rc.1, so a rehearsal never moveslatest. Pushes to main publishedgeandsha-<commit>to the privateghcr.io/privacykey/privacytracker-edgeinstead, where PR previews (pr-<n>) go too; nothing unreleased reaches the public package.
macOS desktop release builds the app that serves itself from the Rust
core: the frontend is staged into Contents/Resources/site (about 9 MB
against the ~200 MB tarball of releases up to v0.1.2), no Node is fetched
or bundled, and the bundle is signed with entitlements.plist, which grants
none of the three entitlements V8 needed. The Node sidecar build was retired
ahead of v0.3.0; there is no desktop rollback to a Node build, and the
updater never installs an older version anyway. To rehearse a build without
releasing, dispatch macOS desktop release on a reviewed tag with
dry_run=true.
Build & Push Docker image takes a backend input, passed to the
Dockerfile as its BACKEND build argument, and Prepare verified release draft passes backend: rust to it. rust builds the Rust server on Alpine
(about 56 MB, no Node); node builds the next start image every release
up to v0.1.2 shipped and is kept as the image's rollback. The two open the
same volume as the same user, so a Docker rollback is a one-line change in
release.yml and a new patch version. A self-hoster who builds from the
compose file rolls back with PRIVACYTRACKER_BACKEND=node in .env.
The verifier checks the bundle's version, OS minimum, architecture, signature and notarisation, then that no Node ships, that the staged site is complete, that the entitlements are the strict set, and that the packaged app itself opens a v0.1.2 database, serves its pages and survives a restart.
For a signing-only rehearsal, run macOS desktop release on an existing
reviewed tag with the same tag input and dry_run=true. It uploads workflow
artifacts only, unsets notarization credentials, skips release creation/uploads
and does not open a Homebrew PR. These unnotarized artifacts are not distributable.
It still packs, signs and verifies the updater archive, so the rehearsal
exercises the updater key; its build-evidence.json is marked as a dry run,
and no release step accepts it.
Run the full candidate build to obtain notarized distribution artifacts.
Record the candidate commit/tag, workflow run links, artifact SHA-256 values, OS versions and results in the release review. A green PR alone is insufficient.
-
pnpm lint,pnpm typecheck,pnpm test,pnpm lint:i18n,pnpm test:ios-import-helper, build and browser checks pass. - Build
scripts/verify-updaterwithcargo build --locked --manifest-path scripts/verify-updater/Cargo.toml, then runpnpm test:release. The suite includes valid signatures, altered bytes, a wrong key, missing platforms, bad versions and signing-only credential handling. - Run Nightly live integrations manually in strict mode at the candidate ref; App Store fixtures must still parse. Investigate upstream changes rather than silently accepting a skipped or advisory run.
- Install the exact downloaded signed DMGs on Intel and Apple Silicon.
Include a macOS 13.5 environment in compatibility testing. Verify first
launch, readiness, login, About version, app import, quit/relaunch and
absence of Gatekeeper errors. Record
codesign,spctland stapler output. - Upgrade a disposable v0.1.2 installation with representative data using
the manual DMG path. Confirm apps, private notes, history, device links and
preferences survive. Confirm an old client still sees version 0.1.2 on
latest.json; the new release sees the new feed. Exercise an actual in-app update between signed candidate versions before relying on that path. - On a test device, exercise backup verification, cancellation and recovery. Test uninstall only with a deliberately disposable app/device and verify that the confirmation and unlock gates work. Unit tests do not substitute for hardware behavior.
- Rehearse a crash during each bulk job and verify one safe resume, no duplicate snapshots and cleared locks on completion. The automated suite covers runner behavior; inspect it on the packaged runtime too.
- First release on the Rust backend only. Upgrade an installation of
the last Node release (v0.1.2) holding a copy of a real database, through
the DMG: v0.1.2's frozen feed never offers a later release. Confirm the data survives, that
standalone/is gone from the data directory after the first launch, and that the accessibility quick toggles survive a quit and relaunch (the port is stable now, so the page's storage is too). Compare the bundle's size and the running app's memory with the Node build. - Upgrade an existing Docker volume and the optional bind-mount deployment.
On the first release on the Rust backend, the volume must be one the last
Node image (v0.1.2) wrote (build it from the
v0.1.2tag if the registry has no image for it), and the rollback is rehearsed too: the same volume opened again by an image built withBACKEND=node. Confirm authenticated access, denied anonymous private reads, readiness, persistence across restart and successful backup restore. - Restore a same-installation backup and a trusted cross-installation backup. Verify missing credentials are clear. Roll back using the old runtime plus the untouched old data directory, never assume old code can safely consume a migrated database. The automated v0.1.2 fixture rehearsal covers schema migration and restore; it does not certify every user's data.
Only after all applicable checks pass, publish the existing draft without rebuilding its assets. The publication event then opens a Homebrew cask PR with both DMG hashes and macOS 13.5 as the minimum. Review that PR before merging it. Never paste tokens, private signing keys or real private backups into run logs.