Hinkal API

Attestation

Fetch a GCP Confidential Space attestation token

GET/attestation
https://api.hinkal.io/attestation

Returns a signed JWT issued by GCP Confidential Space, proving that the enclave is running a specific Docker image inside a hardware-verified Trusted Execution Environment (AMD SEV-SNP).

The nonce you supply is embedded in the JWT's eat_nonce claim, binding the token to your request and preventing replay attacks.

Also returns verificationPublicKey — an EC P-256 public key generated by the enclave at startup. The key is embedded in the JWT's aud claim, so its presence in the Google-signed JWT proves it was generated inside the TEE. Use it to verify x-hinkal-response-signature headers on enclave-api responses.

Use this endpoint to verify that the code you can read in the Hinkal-API-Enclave repository is exactly what is running on the server.

Query parameters

NameTypeDescription
noncerequiredstring (uuid)A UUID you generate. Embedded in the JWT eat_nonce claim to bind the token to your request.

Responses

200Attestation token successfully fetched from the TEE server
NameTypeDescription
jwtrequiredstringSigned JWT issued by GCP Confidential Space (https://confidentialcomputing.googleapis.com). Contains the running image digest in submods.container.image_digest and your nonce in eat_nonce. Verify the signature against Google's OIDC JWKS.
imageDigestrequiredstringSHA256 digest of the running Docker image, extracted from submods.container.image_digest in the JWT payload. Compare this to digest.txt in the Hinkal-API-Enclave repository.
verificationPublicKeyrequiredstringPEM-encoded EC P-256 public key generated by the enclave at startup. Embedded in the JWT's aud claim — the Google-signed JWT proves this key was generated inside the TEE. Use it to verify the x-hinkal-response-signature header on enclave-api responses.
noncerequiredstring (uuid)Echoed nonce from the query string. Covered by x-hinkal-response-signature — verify this matches your request nonce to prove the response was not replayed.
400Missing required query parameter `nonce`
NameTypeDescription
successrequiredboolean
One of: false
errorrequiredstring
500Failed to fetch attestation token from TEE server
NameTypeDescription
successrequiredboolean
One of: false
errorrequiredstring