Offline InstallGit vs Artifacts

§ 05 · OFFLINE INSTALL · DISTRIBUTION

Git vs Artifacts

The repo holds 1.7 MB of decisions. The install holds 5.08 GB of bytes. They travel separately, on purpose.

The hivecfm-offline repo is 112 files and about 1.7 MB of tracked content: shell scripts, config templates, Python helpers, documentation, manifests, and recorded test evidence. (A working clone reports 2.6 MB with du, but that figure includes .git.) The installable payload is somewhere else entirely.

Its own README states the consequence in one sentence: “A Git clone alone is not an installable offline kit.”

What is where

Git repoAzure Artifacts
Holdsscripts, templates, helpers, docs, manifests, evidenceUbuntu 24.04.4 ISO, 191 .deb files, one 6-image archive
Size1.7 MB tracked, 112 files5,078,224,077 bytes
Fetched withgit cloneaz artifacts universal download
Changesper commitper release version, immutably

Release coordinates, all of which you will need:

organization  istnetworksrnd
project       hivecfm-offline          (its own ADO project, not a HiveCFM repo)
feed          hivecfm-offline-releases
package       hivecfm-offline-kit
version       2026.9.7
scope         project, private
manifest      offline-kit/SHA256SUMS.json   300 entries

Of those 300 manifest entries, 194 are absent from git: the 191 debs, the ISO, the image archive, and one documentation file that was deleted from the repo but never removed from the manifest.

Downloading the release

This runs on a connected staging machine, never on the target. The offline server needs no Azure CLI, no Azure login, and no network.

# Prerequisites on the staging machine: Azure CLI + the azure-devops extension,
# authenticated with an account that can read this private project's feed.
bash tools/download-release.sh ./downloads/hivecfm-offline-kit

Expect two lines, in this order:

All bundled file hashes PASS: 300
Verified complete kit: ...

The wrapper exits 2 for three different reasons: az missing, python3 missing, or a non-empty destination directory. Read the message; do not assume it was an auth failure.

The equivalent long form, if you would rather see the moving parts:

az artifacts universal download \
  --organization https://dev.azure.com/istnetworksrnd \
  --project hivecfm-offline \
  --scope project \
  --feed hivecfm-offline-releases \
  --name hivecfm-offline-kit \
  --version 2026.9.7 \
  --path ./downloads/hivecfm-offline-kit
 
python3 ./downloads/hivecfm-offline-kit/helpers/verify-bundle.py

The gate nobody wrote

Here is the important part, and it is a gap rather than a feature.

verify-bundle.py hashes every file the manifest names and compares it against that same manifest. The manifest does not contain itself. The verifier is downloaded from inside the artifact it verifies. On the target, stage 01 re-runs the same script against the same manifest. Every link in that loop travels together in one package.

There is exactly one external anchor. release/azure-release.json records:

"kitChecksumManifestSha256": "1075474d4fa9e2d8f4b4a72d3e5bdddee716fadfd4d83edccfb4e48445d94331",
"checksumEntries": 300

No code in the repo reads that value. A repo-wide search finds one occurrence: the JSON file itself. So do it by hand, on the staging machine and again on the target, and carry the expected hash to the site through a different channel than the media:

sha256sum ./downloads/hivecfm-offline-kit/SHA256SUMS.json
# 1075474d4fa9e2d8f4b4a72d3e5bdddee716fadfd4d83edccfb4e48445d94331
⚠️

Without that manual comparison the trust root is entirely self-referential. The kit README concedes the point directly: the manifest “is not a digital signature”, and its trusted hash must be transferred separately through an approved channel.

The integrity chain, end to end

Two dashed edges, two honest weaknesses:

  • The ISO signature cannot be verified offline, ever. The kit ships os/SHA256SUMS.gpg but no Ubuntu public keyring, and no script calls gpg or gpgv. os/iso-verification.json records gpgSignatureVerified as a hardcoded false. The ISO’s hash was checked against Canonical’s published value; its signature was not.
  • Deb integrity rests on the manifest alone. Stage 02 builds a local file:// repository marked [trusted=yes] and there is no Release or InRelease file in packages/. If the manifest is good the debs are good, and if it is not, nothing else catches it.

Do not repack from git HEAD

SHA256SUMS.json still lists docs/HIVECFM_OFFLINE_AR_EG.md, a documentation file deleted in commit 8a8b1c5 and still linked from the repo README. verify-bundle.py opens each manifest entry with no existence guard.

So a kit repackaged from a fresh clone dies at stage 01 with an uncaught FileNotFoundError — and because manifest order puts that entry first, the reported failure names a documentation file, not the missing 3.4 GB ISO. Operators read that and go looking for the wrong problem.

Use the published 2026.9.7 package. Its download-back verification passed all 300 checksums on 2026-09-07.

Carrying it across

The kit is 5,078,224,077 bytes, which exceeds FAT32’s single-file limit. Use exFAT or ext4 media, or split it.

⚠️

The kit README tells the operator to “join them with the supplied script”. No split or join utility exists anywhere in the repo — .gitignore merely reserves the *.part[0-9][0-9] pattern. Do not go looking for it.

Use coreutils, present on both sides:

# staging machine
tar -C ./downloads -cf - hivecfm-offline-kit | split -b 2000m - kit.part
sha256sum kit.part*
 
# target
cat kit.part* | tar -C /srv -xf -
sha256sum /srv/hivecfm-offline-kit/SHA256SUMS.json   # compare to the carried value
sudo python3 /srv/hivecfm-offline-kit/helpers/verify-bundle.py

Then configure the site and hand over to Install stages.


HiveCFM Developer Hub — internal team guide