Some checks failed
AOC Guard CI / aoc-guard (push) Has been cancelled
AOC Guard CI / aoc-verify (push) Has been cancelled
Concelier Attestation Tests / attestation-tests (push) Has been cancelled
Console CI / console-ci (push) Has been cancelled
Docs CI / lint-and-preview (push) Has been cancelled
Export Center CI / export-ci (push) Has been cancelled
VEX Proof Bundles / verify-bundles (push) Has been cancelled
- Introduced sample proof bundle configuration files for testing, including `sample-proof-bundle-config.dsse.json`, `sample-proof-bundle.dsse.json`, and `sample-proof-bundle.json`. - Implemented a verification script `test_verify_sample.sh` to validate proof bundles against specified schemas and catalogs. - Updated existing proof bundle configurations with new metadata, including versioning, created timestamps, and justification details. - Enhanced evidence entries with expiration dates and hashes for better integrity checks. - Ensured all new configurations adhere to the defined schema for consistency and reliability in testing.
2.3 KiB
2.3 KiB
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
stella evidence verify --bundle ../bundle.tgz --offlineonce CLI supports offline mode.
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.
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