Verify offline
Verify receipts in an air-gapped or restricted network with material you collected beforehand.
What you need to carry across#
| File | What it is | Where it comes from |
|---|---|---|
| receipt.json | The receipt | GET /v1/receipts/{id} |
| archived.json | The archived attestation document named by the receipt's gateway.attestation_id | GET /public/attestations/{attestation_id} |
| releases.json | The release file | The published release list |
| collateral.json | A collateral bundle for the attestation's quote | The hardware vendor |
| request.json, response.bin | Optional: the exact request and response bytes, for step 4 | Your own records |
You also need the warden binary in the offline environment.
Collect the material online#
The archived document is addressed by its content: the answer never changes, and Warden hashes it and compares it with the id, so it does not matter which copy you carry.
#!/bin/sh set -eu curl -s https://api.panward.ai/v1/receipts/rcpt_01JC7Q4N9W3XK2H8ZP5T6V7B8M \ -H "Authorization: Bearer $PANWARD_API_KEY" -o receipt.json # The archived attestation document the receipt names, by its content address. curl -s "https://panward.ai/api/public/attestations/sha256:a3f1c5e7b9d1f3a5c7e9b1d3f5a7c9e1b3d5f7a9c1e3b5d7f9a1c3e5b7d9f1a3" -o archived.json sha256sum receipt.json archived.json releases.json collateral.json request.json response.bin > MANIFEST
For one receipt, the console's Evidence bundle download carries the receipt, the archived attestation it names and the published verification policies in one file (Download a receipt).
GET /api/public/releases is part of the contract and is not served yet. Bring the release file you trust. What is not available yet.Collect the collateral bundle for the quote from the hardware vendor's collateral service, or from the copy Panward keeps for verifiers in a browser, GET /api/public/collateral/intel, asked for by the platform identifier from the quote's certification data. Every item in it is signed by the vendor and Warden checks it against the vendor's root, so either copy will do.
Verify offline#
--offline makes no network call at all; every input comes from a file.
$ sha256sum -c MANIFEST $ warden verify receipt.json --request request.json --response response.bin \ --attestation archived --attestation-file archived.json \ --collateral collateral.json --releases releases.json --offline
$ warden verify --bundle evidence-rcpt_01JC7Q4N9W3XK2H8ZP5T6V7B8M.json \ --request request.json --response response.bin \ --collateral collateral.json --releases releases.json --offline
What is skipped offline#
The TLS binding (step 6) and a fresh attestation need the live endpoint, so they are skipped and the report says so. The archived document still proves the key binding: it is the document the instance archived before it issued any receipt. The time bound of a receipt is skipped too unless you supply a checkpoint with --checkpoint.
Collateral expiry#
Collateral has a validity window. Refresh the bundle before it expires; with expired collateral, step 1 fails and Warden says why.
Rebuild the gateway image#
Chain of custody#
Hash every file you carry across before and after the transfer, and record which build of warden you used. The collect script writes a MANIFEST that sha256sum -c checks on the other side.