orgasm.dev
Trust

Get the attestation policy

GET
/v1/attestation-policy

What a device must check in an enclave's attestation before it publishes media: the token issuer, the confidential-computing hardware, the enclave image's source and minimum release, and the sealing scheme. The SDK checks it for you. No key needed.

Query Parameters

mode?string

The policy for test or live sessions.

Default"live"
Value in"test""live"

Response Body

The policy.

application/json
  1. response

What an enclave's attestation must show before a device sends it media. In test mode no enclave runs, and the policy says so.

object*string
mode*string
Value in"test""live"
version*string
enforced*boolean

Whether devices must verify an attestation in this mode.

issuer*|

The issuer the attestation token must be signed by.

Formaturi
hardware*array<string>

The confidential-computing hardware the enclave must run on.

image*
seal*
evidence*

How the enclave signs its answers to the device.

debugAllowed*boolean

Whether a debuggable enclave is accepted. Never in live mode.

verify*|

What the enclave's own verifier (tee-verify, in the enclave's source) holds a running enclave to, for the enclaves this mode's sessions run on. null in test mode.

note?string
updatedAt*string
Formatdate-time
Example Request
curl -X GET 'https://orgasm.dev/v1/attestation-policy'
Example Response
{  "object": "attestation_policy",  "mode": "test",  "version": "string",  "enforced": true,  "issuer": "http://example.com",  "hardware": [    "string"  ],  "image": {    "source": "http://example.com",    "minRelease": "string",    "digests": [      "string"    ],    "signers": [      "string"    ],    "repository": "string",    "releasesUrl": "http://example.com"  },  "seal": {    "schemes": [      "v1"    ]  },  "evidence": {    "algorithm": "Ed25519"  },  "debugAllowed": true,  "verify": {    "sourceUri": "string",    "imageRepo": "string",    "signerKeyIds": [      "string"    ],    "minRelease": "string",    "readingsUrl": "http://example.com",    "invokers": [      "string"    ],    "captureBucket": "string",    "requestSeal": "string",    "projectIds": [      "string"    ],    "imageRefPrefixes": [      "string"    ]  },  "note": "string",  "updatedAt": "2019-08-24T14:15:22Z"}