Isolithdocumentation

Guide 2 of 3

Admin and install guide

How to install, secure, back up, and recover the Isolith delivery stack. There are two install paths: the online one-command path and the signed air-gap path for machines with no network at all. Both finish on the same health checks.

1. Prerequisites (every install)

2. Online install (one command)

git clone SITE-REPO-URL isolith
cd isolith/workstreams/delivery/deploy/deploy
./install.sh

The script preflights Docker/Compose/disk, writes .env from .env.example (host binds default to 127.0.0.1 so nothing is exposed to the LAN), builds the single stack image, starts the services, waits for every health check, and curls each surface. Exit 0 iff all surfaces answer green.

ServiceBinaryHost address (default)Health surface
pdmoep-pdm127.0.0.1:8787GET /api/v1/health
vieweroep-web127.0.0.1:8790GET / (200)
p2poep-opsdash127.0.0.1:8080GET /healthz
docsoep-docs127.0.0.1:8792GET /healthz

Manage the stack with ./install.sh --down (stop), --no-build (reuse the image) and, for bundling, ./release.sh 0.1.0 --tarball --out ../releases which produces the offline image tarball plus a .sha256 checksum.

3. Air-gap install (no network at all)

An air-gapped shop has a machine with no default route, no DNS, and no registry. The signed offline bundle is the single artifact that crosses the gap (USB stick or ISO). Everything the target needs is inside it. There is no reach-back, no phone-home, no registry pull, and no runtime that talks to a vendor cloud.

The flow: build on a connected host → transfer by USB/ISO → verify on the target → load → configure → start → verify → rollback on failure. None of the target steps touch the network.

On the connected build host

cd scripts/airgap
gpg --import keys/oep-airgap-signing.pub.asc
export SIGN_KEY_ID=oep-airgap-signing
./build-offline-bundle.sh --version 0.1.0 \
    --images isolith/oep-pdm:0.1.0 \
    --compose docker-compose.airgap.yml \
    --out dist/

Output: isolith-offline-0.1.0.tar.gz (the bundle), .sha256 (media checksum), and .sig (detached signature).

On the air-gapped target

sha256sum -c isolith-offline-0.1.0.tar.gz.sha256
sudo ./airgap-verify.sh --bundle /media/usb/isolith-offline-0.1.0.tar.gz
sudo ./airgap-install.sh \
    --bundle /media/usb/isolith-offline-0.1.0.tar.gz \
    --install-dir /opt/isolith --project oep

airgap-install.sh verifies the bundle gpg signature and its sha256, extracts and verifies the signed MANIFEST (every file's checksum is checked, so a tampered bit anywhere fails install), docker-loads the embedded images (no pull), writes a fresh /opt/isolith/.env with a new local secret and OEP_UPDATE_CHECK=off by default, brings the stack up, waits for the same health checks as an online install, and records proof/airgap-install-record.json as the audit record. If health never comes up it rolls back; it never leaves a half-broken stack pretending to be healthy.

4. TLS

oep-pdm terminates TLS natively (no reverse proxy required). For a zero-config LAN identity, generate a local CA + leaf and point the PDM at it:

scripts/gen-stack-certs.sh workstreams/delivery/deploy/certs    # ca.pem, cert.pem, key.pem (+chain)
oep-pdm --persist-dir <vault> --tls-cert workstreams/delivery/deploy/certs/cert.pem --tls-key workstreams/delivery/deploy/certs/key.pem

5. Backup (daily, checksummed, to a second disk)

The vault (metadata DB + content-addressed blobs + tamper-evident audit chain) is snapshotted to a second disk or archive target:

scripts/backup/vault-backup.sh <BK_TARGET>   # write bundle + self-verify
scripts/backup/install-vault-backup-cron.sh    # schedule it daily
scripts/backup/vault-restore-check.sh          # restore round-trip proof

6. Disaster recovery

The quarterly DR runbook restores the full vault to a fresh machine in under 60 minutes, verified by health checks and a real vault read. Run scripts/dr/drill-restore.sh or the manual procedure in workstreams/delivery/disaster-recovery/dr-runbook.md. Schedule an off-cycle drill whenever the vault schema, backup layout, restore procedure, or a release train changes.

7. Update posture (decision 11)

The update checker is advisory, non-blocking, disable-able, and off by default. The program runs identically whether the checker finds a server, finds nothing, or cannot reach anything; no update gate ever prevents launch. It polls a configurable source (remote URL, on-site mirror, or an offline signed bundle placed by an admin), verifies signed manifests before any payload, and never fails closed. Telemetry stays out by default.

8. Health checks, honest summary

Every install path ends on the same contract: PDM /api/v1/health, viewer GET / 200, p2p /healthz, and docs /healthz. Success is measured, not assumed; air-gap installs record an audit file on the target. If a step cannot be shown green, the install is reported as failed and (air-gap) rolled back.

Next: the honest format capability matrix