Skip to content
LogoLogo

Attestation

Endpoint

POST /v1/attestation

Purpose

Returns Nitro attestation evidence bound to a fresh verifier nonce and the actual TLS connection. This authenticates the enclave communication boundary rather than a customer account.

Authorization

No wallet sign-in is required. The client independently verifies AWS-rooted authenticity, approved measurements, nonce freshness and binding to the live TLS peer key and connection.

Request fields

FieldTypeRequiredMeaning
noncestringYesStandard base64 encoding of a fresh 32-byte nonce.

Request example

Example request. Generate a fresh 32-byte verifier nonce for the actual connection:

{
  "nonce": "AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8="
}

Response fields

200 OK with:

FieldTypeMeaning
documentstringStandard base64-encoded Nitro attestation document.

Response example

Response shape; replace the placeholder with the standard-base64 COSE document returned by the service. Only the runtime document, independently verified against the live connection, authenticates the enclave.

{
  "document": "<standard-base64 Nitro COSE document returned at runtime>"
}

Constraints

Verification boundary

Verify the COSE ES384 signature and certificate chain against the pinned AWS Nitro root, the document timestamp and certificate validity, and one complete approved PCR0/PCR1/PCR2 tuple from your trusted build policy. Match PCR8 within that same tuple when required. Reject debug measurements and disallowed future or stale evidence.

The communication binding is exact:

exporter = TLS-Exporter(
  label = "EXPORTER-Hermit-Attestation-v2",
  context = absent,
  length = 32
)
document.nonce      = fresh request nonce[32]
document.public_key = live TLS certificate SubjectPublicKeyInfo DER
document.user_data  = UTF8("hermit.attested-tls.v2") || 0x00 || exporter[32]

The exporter context is absent, not an empty byte-string context. Obtain the exporter and peer key from the same live TLS connection used for the attestation request. A document from another connection or a trusted HTTPS certificate alone is insufficient. Reverify when establishing a new connection; do not reuse an admitted connection after policy revocation.

Browser APIs cannot inspect a TLS peer key or exporter. Use the private channel and application-encryption protocol for browser integrations.

Financial identity is discovered over that same verified connection.

Defined failures

HTTP statusErrorMeaning
400invalid_nonceThe nonce is not valid base64 or does not decode to 32 bytes.
501attestation_unavailableAttestation is unavailable in the current mode.
503attestation_busyAttestation capacity is exhausted.
500attestation_failedEvidence generation or connection binding failed.

These errors use the JSON shape {"error":"…"}. Request parsing and transport limits can reject a request separately.