Developers
How web releases are checked
How each release of the Terminus web app is built so it can be rebuilt and compared, what the update pill does, and what none of it can prevent.
An app from TestFlight or an APK is a file you install once. A web app is different: the server sends the code each time, so whoever controls the server could change what your browser runs, including code that asks your key to sign. That's true of every web app. This page says what Terminus does about it, and where that stops.
The same commit builds the same files
A release of the web app is built from one commit, and building that commit again gives the same files, byte for byte. Nothing in the output is meant to depend on when or where it was built: the version is the commit, the Rust toolchain and every package are pinned, and no folder path is left in the files.
Before each release the commit is built twice, in two new folders, and every file is compared. The release goes out only if they match. So far this has been done on one computer; a build on another machine or operating system is expected to match but hasn't been compared.
Each release has a list of hashes
Every release has a manifest: a JSON file listing each file of the build with its SHA-256.
| Field | What it holds |
|---|---|
app, site | "terminus-web" and the address it's served at |
version | The release, such as 0.3.41 |
commit | The commit it was built from |
built | The versions of Node, npm, Rust and wasm-bindgen that built it |
files | Each file's path and SHA-256 |
release | One SHA-256 over the whole list |
headers | The response headers the site must send, the content security policy among them |
shell | The SHA-256 of the page with its two filled blocks emptied (see below) |
The manifest is kept in the source repository and never on the site. A list of hashes served by the server it vouches for would prove nothing.
Checking the live site
After every deploy, a checker fetches each file in the manifest from app.onterminus.com, past any cache, and compares its hash. It also checks that:
- Every response has the right
Content-Typeand every header the release sets. - No other header comes with it that could change what a page does, such as
Refresh,Link,Set-Cookieor a second policy. Only HTTP's own headers and Cloudflare's are allowed beside the release's. - The page is the same when fetched the way a browser navigates to it, at
/, with a made-up query, at a real route and at a made-up path.
A public post's or profile's address is the one place the page differs: two marked blocks are filled with the post's title and text for search engines and link previews. The checker empties those blocks and compares what's left with shell, and allows only tags that describe a page inside them: no script but JSON-LD, no style, and no link off the site.
The server says which commit it's serving at https://app.onterminus.com/_app/version.json. Ask with curl, or in a browser that has never opened the app: one that has opened it answers from its pinned release instead.
The source repository isn't public yet, so today only we can run this check. Until the source and the manifests are published, treat this page as a description of how releases are made, not as something you can confirm yourself.
Your browser stays on the release it has
The web app keeps each release whole in your browser and keeps running it, online or not. A deploy doesn't change the app under you.
When a new release arrives, a pill at the foot of the window says Update to 0.3.41, with the start of its commit. Click it to move, or × to leave it for later. Every open tab moves together: the one you clicked reloads, and the others say Updated in another tab · Reload. What's New follows, as after any update.
A release that fixes a security problem says Security update to … and has no ×. It still waits for your click.
What this can't do
- The browser fetches the service worker from the server on its own, at least daily, and runs a changed one without asking. No site can stop that. A changed worker could ignore the pinned release.
- The checker says what one computer was served at one moment. A server could answer someone else differently, or recognise the checker and answer it differently from a browser.
- Browser extensions you've allowed on the site can read the page.
So these steps make a change easier to notice. They can't stop a server that means harm. If that matters to you, use the iPhone or Android app, and see Security and privacy.