Offline Verification Playbook (EB9)
Purpose: allow auditors to validate Evidence Locker bundles without network access, using only POSIX tools. Applies to both sealed bundle.tgz and portable portable-bundle-v1.tgz.
Prerequisites
tar,sha256sum(orshasum),awk,base64.- Optional:
jqfor schema validation;cosignorstellaCLI for DSSE verification if pre-loaded.
Quick steps (sealed bundle)
tar -xzf bundle.tgz -C /tmp/bundlecd /tmp/bundle- Validate checksums:
sha256sum -c checksums.txt - Derive Merkle root (matches DSSE subject):
sha256sum checksums.txt | awk '{print $1}' - Validate manifest against schema (if
jqpresent):jq -e 'input | type=="object"' manifest.json >/dev/null - Verify DSSE envelope (optional but recommended):
cat manifest.json | base64 | cosign verify-blob --key cosign.pub --bundle signature.json --bundleType dsse- or, for a portable bundle, run the operator command
stella evidence verify-offline portable-bundle-v1.tgz(SPRINT_20260704_009 SER-3). It runs the sameEvidencePortableBundleOfflineVerifierfully offline and is fail-closed (exit 1 on any integrity failure, incl. a single flipped byte); add--output jsonfor machine-readable results.
Protected Evidence Requirements
Production sealed bundles and Decision Capsules must include durable signer evidence. EvidenceLocker fails closed when a required timestamp authority returns no timestamp, when only transient key generation is available, or when capsule sealing would persist an unsigned result. The local/test harness exceptions are explicit configuration switches only: Signing:AllowEphemeralKeyMaterial=true and Signing:AllowUnsignedCapsules=true.
Offline reviewers should treat a production capsule with signingStatus="unsigned" as invalid protected evidence unless the package explicitly identifies itself as a local/test fixture.
Quick steps (portable bundle)
Same as sealed, plus confirm redaction:
jq -e 'has(\"redaction\") and .redaction.portable==true' manifest.json >/dev/null(ifjqavailable)- Confirm no tenant identifiers in
bundle.jsonandmanifest.json.
The single offline verification authority is StellaOps.EvidenceLocker.Core.Services.EvidencePortableBundleOfflineVerifier (BCL-only; SPRINT_20260704_009 SER-3 lifted it from …Infrastructure.Services into the lean Core lib so the stella evidence verify-offline CLI can reuse it without pulling EF/Npgsql/AWS into the offline path). Use it directly for local EvidenceLocker tests and offline QA gates, or via the CLI operator command, against the portable-bundle-v1.tgz stream. The verifier performs archive-local checks only: checksum coverage, manifest file digest/size binding, manifest.sig payload binding, dsse_envelope.json payload digest binding, Rekor tile coverage for artifact and canonical BOM digests, and bundle.json redaction. It deliberately makes no network calls and does not replace public-key DSSE or Rekor checkpoint signature validation when trust roots are available.
Embeddable verifier script
Place the following script into verify-offline.sh when assembling portable bundles. It exits non-zero on any mismatch and prints the Merkle root used as DSSE subject.
#!/usr/bin/env bash
set -euo pipefail
BUNDLE="${1:-bundle.tgz}"
WORKDIR="$(mktemp -d)"
cleanup() { rm -rf "$WORKDIR"; }
trap cleanup EXIT
tar -xzf "$BUNDLE" -C "$WORKDIR"
cd "$WORKDIR"
sha256sum -c checksums.txt
MERKLE=$(sha256sum checksums.txt | awk '{print $1}')
printf "merkle_root=%s\n" "$MERKLE"
if command -v jq >/dev/null; then
jq -e 'type=="object" and has("entries")' manifest.json >/dev/null
fi
Fixtures
- Golden bundles and replay records live under
tests/EvidenceLocker/Bundles/Golden/. - Expected Merkle roots and DSSE payload digests should be recorded alongside each fixture to keep CI deterministic.
References
- Manifest schema:
docs/modules/evidence-locker/schemas/bundle.manifest.schema.json - Checksums schema:
docs/modules/evidence-locker/schemas/checksums.schema.json - Merkle recipe: see
docs/modules/evidence-locker/bundle-packaging.md
