Share, retain, and verify receipt integrity
Verify artifact integrity without implying that a digest verifies the receipt’s result.
Use this when
Use this before sharing or retaining receipt evidence.Before you start
Choose the customer-safe artifact and check its visibility, issuance time, and how many days your plan keeps receipts.Steps
- Copy the receipt’s public URL: the
canonicalPathof its receipt reference, of the formhttps://<API host>/public/receipts/<receipt id>. The same reference’ssha256is the published digest. - Fetch it with an unauthenticated GET, no credentials or headers, and save the response body exactly as received:
curl -fsS -o receipt.json '<canonicalPath>?format=json'. - Compute SHA-256 over those saved bytes without reformatting or re-serializing them:
shasum -a 256 receipt.json. - Compare the lowercase hex result with the reference’s
sha256. The same value is served assource.digestat<canonicalPath>?view=report-backand in the response’sX-Meguro-SHA256header. A match proves these bytes are unaltered; it does not validate the run’s result. - Retain the saved bytes in your own controlled evidence store if you need them after your plan stops keeping the receipt.
- Review the evidence and proof-boundary text separately; digest validity does not validate the result.