Evidence packs
An evidence pack is a signed record of a run: the scenario as written, what was sent and received (masked as the console shows it), the verdict, and the environment it ran in. An auditor verifies it later with the install’s public key and a small script, without the Platform.
1. Make a pack
Section titled “1. Make a pack”On a finished run’s page, Make an evidence pack (editors). The pack is signed with the install’s own key and chained to the pack before it. The run’s page lists its packs with two links: the page, a self-contained HTML document for a reader, and the pack file, the JSON an auditor verifies. The page embeds the pack file, so either is enough.
A pack records:
- the run: who started it, when, the scenario file as written, each step’s checks and masked messages, the result;
- the target: the simulated host’s configuration as it was (card numbers in a stateful issuer’s cards masked), its dialect and pack by reference, or the address of an external host;
- the Platform’s and engine’s versions, and the data policy in force;
- who asked for the pack, and when.
Packs stay until an admin deletes them; the data policy’s retention deletes runs, not evidence.
2. Verify a pack
Section titled “2. Verify a pack”Fetch the install’s public key from GET /api/evidence/public-key (any signed-in user) and keep it with your records. Then:
curl -fsSL -o iso8583sim-verify.py https://platform.example.com/iso8583sim-verify.pypython iso8583sim-verify.py --public-key <base64 key> evidence-pack-12.json evidence-pack-13.jsonOK pack 12 (run 412): hash and signature verifyOK pack 13 (run 415): hash and signature verifyOK chain: 2 packs follow each otherThe script needs Python 3.8 or later and nothing else. It puts the content back into its canonical form (JSON with sorted keys and no spaces), checks the SHA-256 against content_sha256, checks the Ed25519 signature over the content, a newline and previous_sha256, and, with several packs, that each names the hash of the one before it. A changed byte fails the pack; a removed pack shows as a gap in the chain. The HTML page can be given instead of the JSON file.
Without --public-key the script uses the key inside each pack, which proves only that the pack is consistent with itself; the key from the Platform is what makes it evidence.
3. What the chain means
Section titled “3. What the chain means”Every pack on an install names the hash of the previous pack, whoever asked for it and whichever run it records. An auditor holding the packs for a period can see that none is missing or altered. Deleting a pack (admins) leaves the gap visible: the next pack still names the deleted one’s hash.
4. Archive, retention and export
Section titled “4. Archive, retention and export”An install can copy every pack to an S3-compatible bucket as it is made (the install page of the docs names the settings). The bucket gets the pack file, its page and, once, the install’s public key, so a reviewer verifies from the bucket alone:
python iso8583sim-verify.py --public-key "$(cat public-key.txt)" pack-*.jsonA run’s page shows each pack as archived once it reached the bucket, or archive failed with the reason; admins retry with Archive now, which also serves packs made before the archive was set up. With a retention set, packs the bucket holds are removed from the database after that many days; packs not yet archived never are.
Export zip on a run’s page bundles the run’s packs with the public key and a README on verifying them. The same bundle for a whole suite run comes from GET /api/evidence/export?suite=KEY, or from the CI client, which makes a pack for every run of the suite and writes the zip:
python iso8583sim-run.py --url https://platform.example.com --token "$TOKEN" --evidence evidence.zip scenarios/*.yamlLimits for now
Section titled “Limits for now”- One pack per run; a suite run gets a zip of its runs’ packs rather than one signed pack of its own.
- The page is HTML; a PDF rendering comes when a renderer is chosen.