Signed Offline Advisory Bundle (air-gapped deployments)
Build a deterministic, signed advisory bundle that an air-gapped machine can verify without network access.
Admin guide Β· offline bundle runbook
| When to use | Before you start | Steps | Verify | Roll back |
|---|---|---|---|---|
| Publishing to an air-gapped site | Feed snapshot, static page, signing key | build, verify, check-parity |
Signature valid, parity clean | Restore the previous bundle pointer |
When to use
Use this runbook when advisory consumers cannot reach the online feed and need a signed local copy with a verifiable manifest.
Before you start
scripts/security/build_offline_bundle.pybuilds a tarball of the CSAF + OSV snapshot, a static HTML index with no external assets, and a manifest with the publication date, advisory IDs and source commit.- SHA-256 checksums and an optional detached signature are published beside the tarball together with a
latestpointer. verifyandcheck-parityuse only local files and the standard library, so they work on an air-gapped machine.- A release key must be available for
--require-signature; a bundle without a verifiable signature is staged, not trusted.
Steps
# 1. Build from a local feed snapshot and a local template.
python3 scripts/security/build_offline_bundle.py build \
--feed-dir /path/to/feed --static-dir security/offline \
--template security/offline/index.template.html --out /tmp/bundle \
--source-commit <40-hex-sha>
# 2. Verify offline, requiring the detached signature.
python3 scripts/security/build_offline_bundle.py verify --bundle /tmp/bundle \
--expected-revision <sha> --require-signature \
--verify-command 'gpg --verify {sig} {file}'
# 3. Prove the bundle matches the feed snapshot.
python3 scripts/security/build_offline_bundle.py check-parity \
--bundle /tmp/bundle --feed-dir /path/to/feed
# 4. Exercise the checker itself.
python3 scripts/security/build_offline_bundle.py --self-test
Verify
| Check | Command | Pass condition |
|---|---|---|
| Signature | verify --require-signature |
exit 0 |
| Revision | --expected-revision |
matches the source commit |
| Parity | check-parity |
every advisory ID matches the feed |
| Checker health | --self-test |
exit 0 |
| Independence | verify on an offline machine | no network call attempted |
Roll back
π΄ Point consumers at the previous bundle and latest pointer, then re-run verify. A wrong signed bundle is corrected by a new signed revision, never by editing the tarball; follow incident response.