Skip to content
hiveDOCS
GITHUB ↗v1.3.0-rc.3
Ask Beeanswers from these docs

Ask anything about Hive. Bee reads the most relevant pages of these docs and answers from them, with links to where it found the answer.

OR
Hand the docs to your own agent

Help me understand and set up Hive. Read https://hive.admir-saheta.com/agent-guide.md first, then walk me through it step by step.

Releasing Hive

What a release contains, how one is cut and gated, the self-hosted runner, and how to verify a release.

How a release is cut, what must pass before it is published, how the self-hosted runner for the long gates is set up, and how anyone can verify a release. The policy (release kinds, support, the checklist) is in GOVERNANCE.md.

What a release contains

The release workflow (.github/workflows/release.yml) builds with goreleaser, from a tag on main, and publishes:

File What it is
hive_<version>_<os>_<arch>.tar.gz (.zip on Windows) The binary, LICENSE and README.md, for darwin and linux on amd64 and arm64, and windows on amd64 and arm64
*.sbom.json An SPDX SBOM per archive (syft)
checksums.txt SHA-256 of every archive and SBOM
checksums.txt.sig An ed25519 signature of checksums.txt with the release key; hive update checks it
checksums.txt.sshsig The same key’s signature in OpenSSH’s format; install.sh and install.ps1 check it with ssh-keygen -Y verify
Build provenance A SLSA attestation per archive, stored by GitHub (gh attestation verify)

The release key’s public half is built into every release binary (buildinfo.releaseKey) and embedded in the installers. The private half is the HIVE_RELEASE_SIGNING_KEY secret, and an offline copy the maintainers hold. A new key means old binaries reject new releases, so it is never rotated casually.

Builds are reproducible: the same commit builds the same bytes. CI checks this on every change (make reproducible): it builds the archives twice from copies made at different times and compares them.

Cutting a release

  1. Make sure main is green, and the release checklist in GOVERNANCE.md is done: the compatibility matrix row, CHANGELOG.md, and for a minor release the security review.

  2. Run the nightly checks on the commit you will tag. Use a self-hosted runner and a 72-hour chaos soak for a minor or major release:

    sh
    gh workflow run nightly.yml --ref main # a patch release
    gh workflow run nightly.yml --ref main -f chaos=72h -f runner=hive-soak # a minor or major release
  3. Tag that commit with an annotated tag and push it:

    sh
    git tag -a v1.1.0 -m "v1.1.0: Trusted Distribution"
    git push origin v1.1.0

    A lightweight tag is refused. The official plugins’ release tags in this repository are lightweight, and must never publish hive.

The release gate

The first job of the release workflow (.github/scripts/release-gate.sh) checks the tagged commit before anything is built:

Tag Needs, on the tagged commit
A release candidate (v1.1.0-rc.1) ci succeeded
A patch release (v1.0.10) ci and a nightly run succeeded
A minor or major release (v1.1.0, v2.0.0) ci, and a nightly run with a chaos soak of 72 hours or more succeeded

Nightly runs are named nightly (chaos <duration>), which is how the gate finds the soak’s length. When the gate fails, it says what to run. Fix that, then delete and push the tag again; nothing was published.

The self-hosted runner

Hosted runners stop a job after 6 hours, so the 72-hour chaos soak, long multi-machine soaks, and the cross-user connection test need a machine of the project’s own.

  • Machine: Linux (amd64), 8 cores, 16 GB of memory, 50 GB of disk, with Go, git and OpenSSH installed. Nothing else runs on it.
  • Accounts: the runner’s user, and a second, unprivileged user (nobody will do) for the cross-user test. The runner’s user may run sudo -u nobody without a password, and nothing else as root.
  • Registration: add it to admirable-oss/hive (Settings → Actions → Runners) with the label hive-soak, as a service that starts on boot. Restrict it to this repository and to workflow_dispatch runs of nightly.yml: a public repository must never run pull requests on a self-hosted runner.
  • Use: gh workflow run nightly.yml --ref <ref> -f runner=hive-soak -f chaos=72h -f soak=8h.

The desktop app

Once the CLI is published, the release workflow builds the desktop app on each system (desktop/build/release.sh) and attaches it to the same release:

File What it is
hive-desktop_<version>_darwin_universal.zip The app for macOS (arm64 and amd64), signed with a Developer ID and notarized, with the release’s hive inside
hive-desktop_<version>_windows_amd64_setup.exe The installer for Windows, signed, with the release’s hive.exe (a per-user install)
hive-desktop_<version>_linux_<arch>.AppImage, .deb, .rpm The app for Linux on amd64 and arm64; the .deb and .rpm are signed with the project’s PGP key
desktop-checksums.txt SHA-256 of every desktop package
desktop-checksums.txt.sig, .sshsig The release key’s signatures of it; the app’s updater checks the .sig

The bundled hive is the release’s own. It is fetched from the release and verified before it is packed. Stable releases also update the hive-desktop cask in admirable-oss/homebrew-tap.

These jobs run only when the repository variable HIVE_DESKTOP_RELEASE is true, because they need the platforms’ signing credentials:

Name Kind What it is
MACOS_CERTIFICATE, MACOS_CERTIFICATE_PASSWORD secrets The Developer ID Application certificate, as a base64 .p12, and its password
MACOS_SIGNING_IDENTITY variable Its name: Developer ID Application: … (TEAMID)
APPLE_ID, APPLE_APP_PASSWORD secrets The Apple ID and an app-specific password, for notarization
APPLE_TEAM_ID variable The team the certificate belongs to
WINDOWS_CERTIFICATE, WINDOWS_CERTIFICATE_PASSWORD secrets The code signing certificate, as a base64 .pfx, and its password
LINUX_SIGNING_KEY, LINUX_SIGNING_PASSPHRASE secrets An armored PGP private key for the .deb and .rpm, and its passphrase

A missing credential fails the job; nothing is published unsigned. The CLI’s release is already out by then, and an app that finds a release without desktop packages sees no update.

Try the release path without a tag. The desktop workflow builds the same packages, unsigned, on every system:

sh
gh workflow run desktop.yml --ref main -f package=true
# or locally, for this system:
HIVE_DESKTOP_UNSIGNED=1 HIVE_CLI=$(command -v hive) desktop/build/release.sh v0.0.0-dev

Verifying a release

Anyone can check a release without trusting this repository’s word for it.

sh
# The binary you run is the release: download it, verify it, compare.
hive version --verify
# A download, by hand: the signature, then the checksums.
curl -fsSLO https://github.com/admirable-oss/hive/releases/download/v1.1.0/checksums.txt
curl -fsSLO https://github.com/admirable-oss/hive/releases/download/v1.1.0/checksums.txt.sshsig
printf '%s\n' "$(go run ./tools/release-sign allowed-signers <release public key>)" > allowed_signers
ssh-keygen -Y verify -f allowed_signers -I hive-release -n hive-release -s checksums.txt.sshsig < checksums.txt
shasum -a 256 -c checksums.txt --ignore-missing
# Where it was built: the provenance GitHub recorded for the archive.
gh attestation verify hive_1.1.0_linux_amd64.tar.gz -R admirable-oss/hive
# A desktop package: the same, with desktop-checksums.txt.
ssh-keygen -Y verify -f allowed_signers -I hive-release -n hive-release -s desktop-checksums.txt.sshsig < desktop-checksums.txt
shasum -a 256 -c desktop-checksums.txt --ignore-missing
# That it is reproducible: build the tag yourself and compare checksums.
git checkout v1.1.0 && make reproducible