§ 05 · OFFLINE INSTALL
Offline Install
Delivering the whole stack to a customer VM that cannot reach a registry, a package mirror, or us.
A regulated customer wants HiveCFM on a machine with no Internet route. That removes, in one stroke, every mechanism we normally use to put software on a box: the container registry, the apt mirror, Key Vault, Certbot, npm, CI. What is left is a filesystem and a person carrying media.
The hivecfm-offline project is the answer to that. It is a separate Azure DevOps project (not a repo inside HiveCFM) at dev.azure.com/istnetworksrnd/hivecfm-offline, and it delivers a fresh install of Core, Hub, Superset, n8n, PostgreSQLPostgreSQLThe open-source relational database HiveCFM runs on. Replaces SQL Server for this project./pgvectorpgvectorA Postgres extension that adds a vector column type for similarity search. Used for AI-powered survey insights. and Valkey onto one Ubuntu Server 24.04 amd64 VM running Podman. Novu and MongoDB are excluded by design.
Open this section when you need to install at a customer site, when you are reviewing what an offline install actually guarantees, or when you need to know whether our own tooling can touch one.
The five things that surprise everyone
Read these before anything else. Each one has bitten somebody.
- A git clone cannot install. 194 of the 300 files in the checksum manifest are deliberately absent from git. The 5.08 GB payload ships through Azure Artifacts. See Git vs Artifacts.
- The air gap is created at install time, not declared in a file. The checked-in compose file attaches an egress-capable network to seven of nine services. Stage 04 rewrites that. See Install stages.
- No host port is published at all.
psql -h localhost -p 5432cannot work on these boxes. - Two of the ten stages never run on their own. Stages 09 and 10 are manual; stage 01 runs on every invocation and re-hashes about 5 GB each time.
- A green result is not always a measurement. Every boolean in the functional-acceptance JSON is a literal in the reporting code. See Reading the evidence.
The lifecycle
Six phases. Only one of them has no script and no gate, and it is the one where a human walks across a building.
| Phase | Where | Owned by | Closes when |
|---|---|---|---|
| A Preparation | connected build host | preparation/collect-packages.sh, download-ubuntu-iso.py, export-images.py | each payload re-installs under --network none; the ISO hash matches Canonical’s |
| B Distribution | connected staging machine | tools/download-release.sh → helpers/verify-bundle.py | All bundled file hashes PASS: 300 |
| C Media transfer | a corridor | a person | the carried manifest hash matches on the target |
| D Installation | offline target | install-offline.sh, stages 01–08 | one marker per stage under .state/ |
| E Acceptance | offline target | stage 08 plus 21 human checks in docs/TARGET-ACCEPTANCE.md | offline-health.json reports PASS |
| F Operations | offline target | stages 09 and 10, plus a two-minute health timer | boot_id changed and a fresh health PASS |
Phase C is the only step with no automation and no gate. Everything either side of it is scripted and leaves a file behind. Carry the manifest hash out-of-band, separately from the media, and compare it on arrival: nothing in the kit does that for you.
What lands on the box
Seven persistent containers built from six images (HubHubThe Go service that owns background processing, integrations, and the admin API. Sibling to Core. API and Hub worker share one), plus two transient migration jobs.
| Container | Image source | Reached by |
|---|---|---|
core | hivecfmregistry.azurecr.io/hivecfm-core | nginx → <subnet>.10:3000 |
hub-api | hivecfmregistry.azurecr.io/hivecfm-hub | core over the internal bridge |
hub-worker | same HubHubThe Go service that owns background processing, integrations, and the admin API. Sibling to Core. image | nothing; health check disabled by design |
postgres | pgvector/pgvector | every application container |
redis | valkey/valkey | core, superset |
superset | hivecfmregistry.azurecr.io/hivecfm-superset | nginx → <subnet>.11:8088 |
n8n | n8nio/n8n | nginx → <subnet>.12:5678 |
Five databases across four owning roles: hivecfm and saml are both owned by hivecfm_core (the SAMLSAMLThe XML-based enterprise SSO protocol HiveCFM supports for customers using Okta, Azure AD, or similar IdPs. database is retained for schema requirements; SSO is disabled), hivecfm_hub by hivecfm_hub, superset_app by superset, and n8n by n8n. The analytics role superset_readonly holds no table SELECT at all; its only read path is fifteen reviewed v_* views.
Persistent RLS policies on this release are zero, and the acceptance suite asserts that they stay zero. Do not read an installation pass as approval for untrusted multi-tenant production use. The detail, and why it matters to us, is in Our automation.
Sizing and prerequisites
Plan for 8 vCPU, 32 GB RAM, and a 256 GB data volume, with the data filesystem mounted at /opt/hivecfm-offline and persisted by UUID in /etc/fstab. The installer’s own floor is lower and is not a capacity guarantee: it refuses to continue below roughly 15 GiB of RAM or 30 GiB free.
The scripts never partition or format a disk. Choose disks deliberately in the Ubuntu installer, then confirm the mount before you start:
findmnt /opt/hivecfm-offline
df -h /opt/hivecfm-offlineOne VM means one failure domain and maintenance downtime. Say so during handover.
Read in this order
Orientation
- Git vs Artifacts — why a clone cannot install, how the 5.08 GB release is fetched and verified, and where the integrity chain has a broken link.
- Install stages — all ten stages on one screen, what closes each gate, and the resume rules that catch people out.
Judgement
- Reading the evidence — the evidence files, what each green result proves, and the three controls that pass without measuring anything.
Day two
- Operating it — the compose wrapper, backup and restore, reboot verification, and two dated time bombs.
Internal
- Our automation — whether
@hivecfm/migratorcan target an offline install (it cannot, and why), the seam into the onboarding skill chain, and what must stay a human decision.