AxiomSearch

Wiki › Admin guide

App releases

The Axiom server can distribute new AxiomSearch builds to your analysts. You upload a build on the admin page, and every signed-in analyst's app offers it, verifies it and installs it. This page explains publishing, release signing, how the in-app updater checks a download, and how Windows code signing fits in.

Windows and Linux builds are published separately, each with its own current version: the Windows AxiomSearch.exe and the Linux AxiomSearch-<version>-x86_64.AppImage. Pick the platform in the upload form; each app is only offered its own platform's build. See The Linux build below.

How a release reaches analysts

  1. An admin uploads the built AxiomSearch.exe under Releases → App releases on the admin page, with a version number, optional release notes and, when signing is set up, a signature.
  2. Each signed-in app checks the server at launch and every 30 minutes. When the published version is newer than its own, an Update button with the version appears at the bottom right of the window, with a notice once per version. The button opens your notes and Download & install.
  3. The analyst clicks Download & install. The app downloads the file next to its own exe, never into a temporary folder, verifies it, and swaps it in place. The button then reads Restart to finish, and the analyst closes and reopens the app.

The update check and the in-app download both need a signed-in session; a standard self-hosted server serves the build to nobody else. An analyst who isn't signed in to the server is offered no update. Signed-in analysts can also fetch the published build from the portal's Desktop app card, which shows the version and the first lines of its notes — handy for first installs, where there is no app to offer the update yet.

Release signing

Release signing is the defence that survives a server compromise. Whoever builds AxiomSearch releases makes an Ed25519 key pair with the relsign tool: the private key stays on their build machine, and every release build embeds the public key and accepts only updates signed with the matching private key. The server's part is to enforce the signature at upload:

  1. Get the public key, as hex, from whoever builds your releases. It isn't secret. Use the key that matches the builds your analysts run.
  2. Add it to the server's environment as RELEASE_PUBKEY=<hex> and recreate the container with docker compose up -d. From then on the server refuses uploads whose signature is missing or doesn't match the file. A malformed value stops the server at startup on purpose, rather than silently allowing unsigned uploads.
  3. Upload each release with the signature made for that exact file.

Neither the server nor anyone holding an admin password can then alter a release that signed builds will accept.

If you build releases yourself, relsign is in the AxiomSearch source (tools/relsign). Make the key pair once, on the build machine, never on the server. It prints the public key as hex:

go run ./tools/relsign keygen -out axiom-release.key

Warning: Whoever holds axiom-release.key must guard it like a password: off the server and out of source control, with a copy in a password manager or an offline backup. Anyone holding it can sign releases every analyst's app will trust. If it is lost or may be compromised, a new pair is needed: rebuild with the new public key, update RELEASE_PUBKEY, withdraw the current release, and get that one build to analysts outside the updater.

Publishing a release

Whoever builds the release produces the exe and its signature. On the build machine, that is the build, with the version and public key embedded, and the signing step:

wails build -clean -ldflags "-X main.appVersion=3.1.1 -X main.releasePubKeyHex=<public key hex>"
go run ./tools/relsign sign -key axiom-release.key build/bin/AxiomSearch.exe
  1. Pick the version. Use MAJOR.MINOR.PATCH, strictly greater than what analysts run. The updater ignores suffixes such as -fixed when comparing, so never reuse a version number; bump the patch digit instead.
  2. Build with the first command, using the version and public key.
  3. Smoke-test the exe. Launch it, run one lookup, and check that Settings shows the new version and that it only installs signed releases. A build without these flags is a development build: it reports 0.0.0-dev, never offers updates and skips signature checks.
  4. Sign the exact file that will be uploaded with the second command. It prints the signature. Rebuilding, even without code changes, produces different bytes and invalidates it.
  5. Upload it under App releases: choose the exe, enter the version (it must match the version built into the exe), short notes, and paste the signature. Click Publish release.
  6. Verify on one machine first. Restart AxiomSearch somewhere so it checks at once, install, restart, and confirm the version in Settings. Then tell the team.

If someone else builds your releases, start at step 5 with the exe, version and signature they provide, after smoke-testing the exe yourself.

The App releases section shows the current release with its size, upload date, uploader, a signed or unsigned label and its SHA-256. When the server enforces signing, the signature field says it is required.

Uploads must fit the server's request size limit, MAX_BODY_MB (default 64 MB). Raise it for a larger build.

The Linux build

The Linux build is an AppImage: one file analysts mark executable and run. It uses the WebKitGTK 4.1 and GTK libraries already on the machine, and a desktop keyring (GNOME Keyring, KWallet or another Secret Service provider) to hold its encryption key.

Publishing it works like Windows, with two differences:

  • Sign it for its platform. Run relsign sign -platform linux-amd64 -version 3.1.1 <the AppImage>. It prints one value, the version signature, which covers the version, the platform and the file, so a Windows build can never be served to Linux apps or the other way round. Leave the first signature box empty.
  • Upload it with the platform set to Linux. The server refuses a file that isn't a Linux build in the Linux slot.

A Linux app updates itself when it runs as the AppImage: it downloads the new one next to it, verifies it, and replaces the file in place. An analyst running a bare binary instead is told to download the new AppImage from the portal.

How the updater verifies a download

The app always checks the downloaded file's SHA-256 against the server's release manifest and refuses a mismatch. When the build embeds a release public key, it also requires a valid Ed25519 signature over that digest, made with your offline private key. Only then does it stage the file and swap it in.

Because the app checks the signature itself, a compromised server or admin account can't push a tampered binary to analysts running signed builds: the attacker would need your private key. If you publish a release without a signature while analysts run signed builds, their update button reads Update … can't install and says why. Setting RELEASE_PUBKEY makes the server catch this at upload time instead.

Without signing, the chain of custody is TLS, admin-only upload, the SHA-256 check and the audit log.

Withdraw and roll back

  • Withdraw stops offering the current release. Apps that already installed it keep it, and no files are deleted.
  • Rollback means publishing a build of the earlier code under a higher version number, since the updater only moves forward. Say why in the notes. Don't upload the old exe again under a new number: it still reports its own version, so after installing it the app offers the update again. The server keeps the newest five uploaded builds in /data/releases/.

Every upload is audited as release_upload (version, size, digest and whether it was signed) and every withdrawal as release_withdraw. An upload you don't recognize is an incident.

Windows code signing (Authenticode)

The Ed25519 signature protects the update channel; it doesn't tell Windows the file is trustworthy. Unsigned executables can trigger SmartScreen or be blocked by application control on managed machines, so release builds should also carry an Authenticode signature, or you arrange an allow-list with your IT team before wide distribution.

Order matters. Authenticode signing changes the file, so Authenticode-sign first, then create the release signature with relsign over the signed exe. A release signature made before Authenticode signing no longer matches.

Install AxiomSearch in a folder the analyst can write to, such as the per-user install location. The updater writes next to the running exe and fails if that folder isn't writable, for example under Program Files.

Troubleshooting releases

SymptomUsual cause
Upload refused: signature missing or doesn't matchSigned a different file (rebuilt or Authenticode-signed after signing), or a different key than RELEASE_PUBKEY
No update offered to analystsPublished version isn't newer, analyst isn't signed in, or they run a development build; the app re-checks every 30 minutes or at restart
Banner says the update can't be installedRelease uploaded unsigned while analysts run signed builds
Install fails writing next to the appThe app's folder isn't writable by the analyst
Server won't start after setting RELEASE_PUBKEYThe value isn't the exact 32-byte hex key relsign printed