Attest the gateway
Check, before you send anything, that an API host runs Panward's published gateway software in a genuine enclave.
Why attest#
TLS ends inside Panward's gateway enclave. Attesting a host shows that the software holding the other end of your connection is the published, measured gateway release in a genuine enclave, before you send it anything. A check you run yourself needs no key and no account.
Fetch an attestation with a nonce#
GET /v1/attestation?nonce= returns the attestation document of the gateway instance that answers, bound to your nonce: 32 random bytes as 64 hexadecimal characters. Choose a new nonce for every check, so an old document cannot be replayed to you.
NONCE=$(openssl rand -hex 32) curl -s "https://api.eu.panward.ai/v1/attestation?nonce=$NONCE" -o attestation.json
import secrets import requests nonce = secrets.token_hex(32) r = requests.get("https://api.eu.panward.ai/v1/attestation", params={"nonce": nonce}) r.raise_for_status() with open("attestation.json", "wb") as f: f.write(r.content)
import { randomBytes } from "node:crypto"; import { writeFile } from "node:fs/promises"; const nonce = randomBytes(32).toString("hex"); const response = await fetch(`https://api.eu.panward.ai/v1/attestation?nonce=${nonce}`); if (!response.ok) throw new Error(`attestation: ${response.status}`); await writeFile("attestation.json", Buffer.from(await response.arrayBuffer()));
The attestation document#
The document's format is panward.attestation/1.
| Field | Always present | Type | Notes |
|---|---|---|---|
| format | Yes | panward.attestation/1 | |
| tee | Yes | intel-tdx | |
| quote | Yes | string | The hardware quote, hexadecimal. Its `report_data` is `SHA-256(JCS(report_data_statement))` followed by 32 zero bytes. |
| report_data_statement | Yes | object | |
| keyset | Yes | object | Keys generated inside the enclave at boot and bound into the quote. Verifiers pin measurements, not these keys. |
| measurements | Yes | object | Launch and runtime measurement registers, each 96 hexadecimal characters. |
| event_log | Yes | array of object | Measured boot events that replay to the runtime measurement registers. |
| release | Yes | object | |
| runtime | Yes | object | Values that change without a new image. They are not hardware-measured; they are signed by the attested receipt key. |
| runtime_signature | Yes | string | Ed25519 signature by a key of `keyset.receipt_keys` over JCS(`runtime`), hexadecimal. |
{
"format": "panward.attestation/1",
"tee": "intel-tdx",
"quote": "040002008100000000000000939a7233f79c4ca9940a0db3957f0607",
"report_data_statement": {
"purpose": "panward.attestation/1",
"nonce": "5f3c9a1e7b2d4c6f8a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f",
"keyset_digest": "sha256:9b1d2f4c6e8a0b3d5f7a9c1e3b5d7f9a1c3e5b7d9f1a3c5e7b9d1f3a5c7e9b1d"
},
"keyset": {
"receipt_keys": [
{
"key_id": "rk_01JC7M2Q8X",
"alg": "ed25519",
"public_key": "3b6a27bcceb6a42d62a3a8d02a6f0d73653215771de243a63ac048a18b59da29"
}
],
"tls_keys": [
{
"domain": "api.eu.panward.ai",
"spki_sha256": "7d1a54127b222502f5b79b5fb0803061152a44f92b37e23c6527baf665d4da9a"
}
],
"not_after": 1790600000
},
"measurements": {
"mrtd": "c68518a0ebb42136c12b2275164f8c72f25fa9a34392228687ed6e9caeb9c0f1dbd895e9cf475121c029dc47e70e91fd",
"rtmr0": "85e0855a6384fa1c8a6ab36d0dcbfaa11a5753e5a070c08218ae5fe872fcb86967fd2449c29e22e59dc9fec998cb6547",
"rtmr1": "9b43f9f34a64bec7ec8c2a1d6b5d0a9e2c1f8a7b6c5d4e3f2a1b0c9d8e7f6a5b4c3d2e1f0a9b8c7d6e5f4a3b2c1d0e9f",
"rtmr2": "7cc2dadd5849bad220ab122c4fbf25a74dc91cc12702447d3b5cac0f49b2b139994f5cd936b293e5f0f14dea4262d668",
"rtmr3": "2e3f4a5b6c7d8e9f0a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2c3d4e5f6a7b8c9d"
},
"event_log": [
{
"register": 3,
"event": "image-digest",
"digest": "2e3f4a5b6c7d8e9f0a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2c3d4e5f6a7b8c9d",
"payload": "sha256:4f8b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b"
}
],
"release": {
"version": "2026.11.3",
"image_digest": "sha256:4f8b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b",
"transparency_log": {
"log_index": 148220931,
"bundle": "eyJTaWduZWRFbnRyeVRpbWVzdGFtcCI6Ik1FVUNJUUQifQ"
}
},
"runtime": {
"config_bundle": "sha256:1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b",
"verification_policy": "sha256:6f5e4d3c2b1a0f9e8d7c6b5a4f3e2d1c0b9a8f7e6d5c4b3a2f1e0d9c8b7a6f5e",
"region": "eu",
"started_at": 1789990000
},
"runtime_signature": "8ef196e78fc6d3734becb55e3d6ce49a939b8eed820dc5c1f1c4c7c11fd7b365bf5eac898e5cdad15aa77fcf8431c1713ccb3aba597fb897b1d58c7ebc8f0c66"
}The six checks#
A verifier checks, on your side:
- the quote chains to the hardware vendor's root with current collateral, and debug mode is off;
- the quote's
report_dataequalsSHA-256(JCS(report_data_statement))followed by 32 zero bytes, and the statement carries the caller's nonce; report_data_statement.keyset_digestequalssha256:+ hex ofSHA-256(JCS(keyset));measurementsequal a row of the published release file (GET /public/releases);runtime_signatureis valid under a key ofkeyset.receipt_keys;- optionally, the TLS connection's key hash is in
keyset.tls_keys.
The verification guide runs each check by hand.
With Warden#
warden attest fetches a document with a nonce of its own and runs every check, the TLS binding included (Warden command line).
$ warden attest api.eu.panward.ai --releases releases.json
Measurements and the release list#
The release list holds, for each gateway release, its version, its measurements per host platform and VM shape, the source commit, the image digest, its transparency-log entry and its notice dates. Releases are announced at least 7 days before they serve traffic, and old and new releases are both valid during a rollout.
GET /api/public/releases is part of the contract and is not served yet. Give Warden a release file with --releases. What is not available yet.$ warden releases --releases releases.json
Pin measurements, never keys#
Each gateway instance generates its own keys when it starts, so a pinned key breaks at the next restart. Many instances answer one host, and repeated calls see different keys with the same measurements. Pin the measurements of the releases you accept.
What runtime tells you#
runtime holds the hashes of the configuration bundle and of the verification policy, the region and the start time. They are not measured by the hardware, because they change without a new image. They are signed by a key of the attested keyset (runtime_signature), so you can see which configuration and verification policy were live. Published policy versions are listed with a summary at GET /public/verification-policies.
TLS binding#
Compare the SHA-256 of your connection's server key with keyset.tls_keys for the host name. A match shows that your TLS session ends inside the attested enclave and not at something in front of it.
$ openssl s_client -connect api.eu.panward.ai:443 -servername api.eu.panward.ai </dev/null 2>/dev/null \ | openssl x509 -pubkey -noout | openssl pkey -pubin -outform der | sha256sum $ jq -r '.keyset.tls_keys[] | .domain + " " + .spki_sha256' attestation.json
Archived attestations#
Before an instance issues any receipt it archives a boot-time document without a client nonce. A receipt names it in gateway.attestation_id: sha256: and the hex SHA-256 of the document's canonical JSON. It proves the key binding of an old receipt after the instance is gone. The address is the content, so the answer never changes, and a verifier hashes the body and compares it with the id.
curl -s "https://panward.ai/api/public/attestations/sha256:a3f1c5e7b9d1f3a5c7e9b1d3f5a7c9e1b3d5f7a9c1e3b5d7f9a1c3e5b7d9f1a3" -o archived.json
$ warden attest --archived archived.json --releases releases.json
How often to attest#
Attest when you deploy, on a schedule, and whenever the release list changes. The Verify in CI guide runs it in a pipeline.
Limits#
Attestation protects against software and administrators. It cannot rule out someone with physical access to the hardware.