Skip to main content
Menu
Proof / Attest the gateway
Proof

Attest the gateway

Check, before you send anything, that an API host runs Panward's published gateway software in a genuine enclave.

8 minute readUpdated 15 November 2026curl · Python · TypeScript · warden

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.

A new nonce for every check, then the document bound to it (no key)
NONCE=$(openssl rand -hex 32)

curl -s "https://api.eu.panward.ai/v1/attestation?nonce=$NONCE" -o attestation.json

The attestation document#

The document's format is panward.attestation/1.

FieldAlways presentTypeNotes
formatYespanward.attestation/1
teeYesintel-tdx
quoteYesstringThe hardware quote, hexadecimal. Its `report_data` is `SHA-256(JCS(report_data_statement))` followed by 32 zero bytes.
report_data_statementYesobject
keysetYesobjectKeys generated inside the enclave at boot and bound into the quote. Verifiers pin measurements, not these keys.
measurementsYesobjectLaunch and runtime measurement registers, each 96 hexadecimal characters.
event_logYesarray of objectMeasured boot events that replay to the runtime measurement registers.
releaseYesobject
runtimeYesobjectValues that change without a new image. They are not hardware-measured; they are signed by the attested receipt key.
runtime_signatureYesstringEd25519 signature by a key of `keyset.receipt_keys` over JCS(`runtime`), hexadecimal.
An attestation document (the contract's example)
{
  "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:

  1. the quote chains to the hardware vendor's root with current collateral, and debug mode is off;
  2. the quote's report_data equals SHA-256(JCS(report_data_statement)) followed by 32 zero bytes, and the statement carries the caller's nonce;
  3. report_data_statement.keyset_digest equals sha256: + hex of SHA-256(JCS(keyset));
  4. measurements equal a row of the published release file (GET /public/releases);
  5. runtime_signature is valid under a key of keyset.receipt_keys;
  6. 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).

Every check in one command
$ 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.

Not available yet
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.
The releases, their measurements and their transparency-log entries
$ 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.

The key hash of your connection, and the keys the document lists
$ 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.

The archived document a receipt names (no key; the answer never changes)
curl -s "https://panward.ai/api/public/attestations/sha256:a3f1c5e7b9d1f3a5c7e9b1d3f5a7c9e1b3d5f7a9c1e3b5d7f9a1c3e5b7d9f1a3" -o archived.json
Check an archived document
$ 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.

Not available yet
Rebuilding the image yourself and comparing its measurements is the step after this one. What is not available yet.

Limits#

Attestation protects against software and administrators. It cannot rule out someone with physical access to the hardware.

The enclave has no trusted clock: times in the document and in receipts are the gateway's own. Attestation shows which software runs; reading the source is what tells you whether that software is good.
Was this page helpful?Suggest an edit