§ 05 · OFFLINE INSTALL · EVIDENCE
Reading the evidence
A check that can pass against the wrong thing is worse than no check. This page separates the two.
The install leaves a trail of JSON under /opt/hivecfm-offline/evidence/. That trail is the deliverable as much as the running stack is: it is what you hand a customer who asks “prove it installed correctly.”
Which means you have to be able to say, for each file, what it proves and what it does not. The kit’s own VALIDATION.md is unusually good at this and is worth reading as a model of the genre. This page is the operational version of the same discipline.
The evidence map
| File | Written by | Read it for |
|---|---|---|
offline-configuration.json | stage 04 | The rendered network map. Confirm backend.internal is true |
core-migration-verification.json | stages 06, 08 | {expected: 200, missing: [], extra: [], failed: 0} |
uat-bootstrap.json | stage 06 | The organization, project and environment ids that were created |
superset-integration.json | stage 06 | Dataset registration and the analytics-role denial |
offline-application-tests.json | stage 08 | The functional suite. Read the caveat below before quoting it |
offline-health.json | stage 08, then every 2 min | status and, critically, timestamp |
latest-offline-backup.json | stage 09 | Envelope path, key custody note, authentication result |
restore-test.json | stage 09 | Per-table row parity across all five databases |
Quick read of the two that matter most:
sudo jq -r '.expected, .missing, .extra, .failed' \
/opt/hivecfm-offline/evidence/core-migration-verification.json
# 200 <- one line per filter, in order: expected, missing, extra, failed
# []
# []
# 0
sudo jq -r '.status, .timestamp' /opt/hivecfm-offline/evidence/offline-health.json
# PASS
# <an ISO-8601 UTC timestamp — check it is later than the event you are proving>Genuinely proven
These are real measurements against the live system. Quote them without hedging.
| Claim | What backs it |
|---|---|
| 200 Core migrations applied, none missing, extra or failed | verify-core-migrations.py diffs the live _prisma_migrations and DataMigration tables against a 200-name list and asserts on any difference. 185 schema, 15 data |
| Seven containers running, six health checks healthy | offline-health.py inspects each container. hub-worker is whitelisted because its health check is disabled by design, and is checked by process name instead |
| Core login, session and logout; authenticated Superset SQL; an n8n workflow created, activated, fired and deleted; HubHubThe Go service that owns background processing, integrations, and the admin API. Sibling to Core. CRUD plus a 401 on a missing token | test-offline-applications.py performs each call and raises on failure |
| Container-to-site HTTPS works for all three hostnames using the local CA | The same suite asserts HTTP 200 from inside a container against each site name |
| Packages install with no network interface at all | Both the preparation collection and the target install run under unshare --net. The default set additionally asserts dockerd and containerd are absent |
| The ISO bytes match Canonical’s published SHA256 | A real assertion in download-ubuntu-iso.py |
| The backup envelope rejects a wrong key, a flipped ciphertext bit, and mutated metadata before decrypting | test-backup-envelope.py. The strongest single test in the repo |
| An encrypted backup restores into a network-disabled container with exact per-table row parity across five databases | offline-restore-test.py, recorded in restore-test.json |
| Image filesystem layers match the source manifest | verify-images.py, unconditionally |
Asserted, not measured
Same files, different epistemic status. Cite the assertion, not the JSON.
Every boolean in offline-application-tests.json is a Python literal. They are keys in a single report dictionary, written after the assertions above it have already passed. The assertions decide whether the file is written at all; the contents are authorial. So "httpsCredentialsSessionLogout": true means “the script reached line 63”, which is real evidence — but it is not a recorded measurement, and it can never read false.
Three controls deserve individual attention because their names promise more than they deliver:
readonlyUserTableDenied checks that superset_readonly cannot SELECT from "User". But "User" is referenced by zero of the fifteen analytics views. "Contact" is referenced, and is never tested. The control passes vacuously: it is guarding a door nobody walks through.
outboundConnectionBlocked is one two-second TCP fetch to 1.1.1.1 from one container. No DNS, no UDP, no port 443, no other container, and nothing about host egress. It is evidence that one path is closed, not that the box is isolated.
persistentRlsPolicies: 0 is true, and is also a tripwire rather than a reassurance. See the RLS tripwire.
Two more worth knowing. hubWorkerProcess is a string comparison against /proc/1/comm. And core-pending-migrations.json is not a list of pending migrations at all: it is a verbatim copy of the static expected list, written before migrating.
What the release explicitly did not validate
Straight from the kit’s own VALIDATION.md, and the reason you should never present an offline release as a completed site acceptance:
- The preparation host retained network connectivity. These tests do not claim a physically disconnected whole-host installation.
- Prerequisite
.statemarkers were reused during preparation, and are documented as reused host prerequisites rather than delivered success markers. - The Podman application test used the preparation host’s default Podman storage, not the target’s dedicated
/opt/hivecfm-offline/podman. - No VM was installed from the ISO, and no VM was rebooted.
- The backup destination was a bind mount, “not a second physical failure domain”.
- Not validated at all: licensed tenant business flows, embedded analytics in a licensed tenant, SMTP, Microsoft Graph, external AI, Hub webhook delivery and signature verification, SSO, and whole-VM disaster recovery.
- Of the
dockerruntime branch,VALIDATION.mdclaims only that the optional Docker package set installed from the local repository with networking disabled. (The kit does also ship a fullevidence/docker-baseline/application run, but it predates compatibility fixes that later shipped, so treatpodman-test/as the record.)
One inference of our own, flagged as such because the document does not say it: taken together with the absence of any whole-run record, the reused markers mean we have found no evidence that the ordered 01 → 08 pipeline has ever run start to finish on one host. Treat the first customer install as the first end-to-end run, and watch it accordingly.
Two further reading notes. The docker-baseline/ evidence directory is a superseded intermediate filed as a peer of podman-test/: it predates compatibility fixes that later shipped, so treat podman-test/ as the record. And the saml row inside restore-test.json reads zero tables and zero rows, so one fifth of the restore drill validates nothing.
Reporting an install honestly
Say what ran, what it proved, and what remains open. The kit gives you the structure for this: work through the 21 checkboxes in docs/TARGET-ACCEPTANCE.md and attach the redacted evidence, never credentials, private keys or database contents.
A defensible summary reads like this:
Stages 01–08 completed on
<host>at<time>. 200 Core migrations verified with none missing, extra or failed. Seven containers running, six health checks healthy,hub-workerverified by process identity.offline-health.jsonreports PASS at<timestamp>, which is after the reboot at<time>. Functional acceptance and the encrypted backup and restore drill both completed. Per-table row counts matched for every table recorded across the five databases, noting that thesamldatabase contributed zero tables and zero rows, so four of the five carried the comparison.Not established by this run: licence provisioning, tenant isolation (persistent RLS policy count is zero by design on this release), whole-VM disaster recovery, and any external integration. The ISO hash matched Canonical’s published value; its GPG signature was not verified, because the kit ships no keyring.
Never run the kit’s helpers under python3 -O or with PYTHONOPTIMIZE set. Every gate in this section is a bare assert, so optimised mode silently removes every hash, layer, privilege and count comparison while the success banners still print. No shipped code path sets it and sudo’s env_reset strips it, so this is latent rather than live — but it is the one environment variable that can turn this whole page into theatre.
Next: Operating it.