Licensing and delivery model
Signed packages and verification, offline per-domain licensing with single-use activation codes, the three real-life clock experiences, and what one model key per customer means.
This article covers what you get, how it is activated, how you upgrade, and three things that are easiest to discover only on the day you go live.
What you get
A self-hosted single-binary program, plus a one-line install script. It listens on its own port, does its own TLS, and issues and renews its own certificates, without assuming a reverse proxy or CDN in front. The install script generates an environment file (readable only by the service account), creates the data directory, and installs it as a system service; during first install it opens a plaintext administration channel (default 8086), which closes automatically once initialization is complete, and later restarts never open it again.
The release is a signed package: every artifact has a SHA-256 digest and signature, and both install and upgrade verify them; when the machine's crypto-tool versions are too old, it falls back to the current release digest anchor embedded in the script, instead of "skipping verification".
Licensing is offline, by domain
Running the site requires a domain license: the activation code is issued by us, bound to the domain, the customer and a validity period (or permanent), single-use, and forms a chain with the preceding codes in the same profile — so "activating an old code again on another machine" will not succeed. Verification happens entirely on this machine and does not depend on our servers being online: when the network is down or our services are unavailable, the site keeps serving visitors.
The trust root only grows and never shrinks: historical public keys are never removed from the verification list, so old licenses still verify on new versions; to forbid a key from signing new code again, a denylist is used, rather than deleting the historical public key.
Three real-life experiences, stated in advance:
First, on a freshly installed site whose domain is not yet activated, the browser cannot reach the backend. This is not a malfunction: the license judges the domain, and IP direct-connection only serves the administration channel (the public site returns 403 on the direct address). Everything is normal after activation.
Second, the system clock. Both licensing and TLS look at the time, so small adjustments (minute-level) are tolerated; when the deviation is too large, the system clearly reports "clock anomaly" instead of guessing. The rule is: waiting does not push the recorded time watermark back down, and the system recovers automatically once the time is corrected. The genuinely troublesome case is a machine whose clock was once mistakenly set to the future — that requires us to issue a one-time recovery code, which you activate within a deadline after fixing the time. So do not manually move the server time forward.
Third, model keys are maintained by us, one per customer. The backend field keeps write permission (changing the key goes through it), but it is never echoed in plaintext, and leaving it empty means no change. When billing looks abnormal, the first thing to rule out is "someone changed the key last week" — this has a record, and it records the provider, the model, the hostname and "whether it was changed", not the password itself.
How to upgrade correctly
The order is: back up → upgrade → verify item by item → watch the logs. upgrade.sh does the earlier steps itself: first stop the service, then touch the files; it copies the binary, VERSION and the database (including the WAL and shared-memory files) into a timestamped backup directory; downgrades are refused by default (migration is not backward compatible, and forcing an old version in would leave the database structure on the new schema).
The key one: any failure between shutdown and passing the health check automatically rolls back, with the database swapped back along with it. Rollback is not in-place overwriting — it first moves the current trio away, then puts the backed-up one back; otherwise the old database would be "recovered" into the new structure by the WAL left by the failed version, and the rollback would report success while writes still cannot go back.
On old machines (crypto-tool versions too old), the reinstall script path is used; it likewise copies the database first and swaps the database back on failure; the details are in the Upgrade Guide, not repeated here.
What to check after upgrading, and what not to misread
/healthz has several tiers, and the migrations tier showing pending on an upgraded old database is a common shape (some version rows in the ledger are no longer declared by the current binary); it is neither "upgrade failed" nor "completely fine" — real missing structure must be verified by whether each backend manifest surface answers. The response body contains only status words; the actual failure text is in the startup log.
Themes do not change because of an upgrade: published snapshots pin the theme version, and the upgrade program does not alter the visitor pages' appearance. Content does not move either. Changing the appearance is those three steps in the backend (upload / enable and publish / roll back to the previous version if needed).
The last one is about scope: online updates and public download entry points are not part of this product's delivery. A client can read which version of the server it is connected to, but the "fetching the package" step is held by the deployer — upgrades either go through the script or the maintainer swaps the binary manually.