Skip to content

Observatory ProtocolSchemas

One contract, read the same way by every implementer.

Each object the protocol moves is published as a JSON schema (draft 2020-12). Select one to read its fields, the rules each value must meet and a document that passes, then check your own.

Version
0.1.0-draft
Status
Draft specification
Specification
CC BY 4.0
Code
Apache-2.0
Format
JSON Schema 2020-12
Steward
GCRI Canada
Source
obsp-0.1-foundation

The schemas, field by field.

Filter by name or field. Required fields are marked. Nested objects are shown to three levels.

Attestation evidence

urn:obsp:schema:v3.1:attestationevidence

RATS (RFC 9334) evidence a node presents to a verifier during Join (OBSP 0.1 section 5.1): fresh verifier nonce, claims, measurement digests, root-of-trust class with its quote or certificate digests, and the time quality in force. Evidence is not an attestation result and grants nothing by itself.

Fields of attestation-evidence
FieldTypeRules and meaning
schemaVersionrequiredstring= "3.1.0"
apiVersionrequiredstring= "obsp/attestation-evidence/v3.1"
kindrequiredstring= "AttestationEvidence"
protocolVersionrequiredstring= "obsp/0.1"
evidenceUnirequiredstringpattern ^[A-Za-z0-9][A-Za-z0-9:._/@-]{7,255}$ · ≥ 8 chars Durable UNI or typed unresolved identifier according to authority rules
conceptualMessagerequiredstring= "EVIDENCE" RFC 9334 conceptual message
ratsModelrequiredenumone of "PASSPORT", "BACKGROUND_CHECK"
attesterrequiredobject
attester.rolerequiredstring= "NODE"
attester.nodeUnirequiredstringpattern ^[A-Za-z0-9][A-Za-z0-9:._/@-]{7,255}$ · ≥ 8 chars Durable UNI or typed unresolved identifier according to authority rules
attester.deviceClassrequiredstringpattern ^ndc\.[a-z0-9-]+\.[a-z0-9-]+$ Device class id (ndc.<family>.<class>)
attester.siteUnistringpattern ^[A-Za-z0-9][A-Za-z0-9:._/@-]{7,255}$ · ≥ 8 chars Durable UNI or typed unresolved identifier according to authority rules
verifierNoncerequiredobject
verifierNonce.noncerequiredstringpattern ^[A-Za-z0-9_-]{22,512}$ Fresh verifier-issued nonce, base64url without padding, at least 128 bits (22 characters)
verifierNonce.issuedByrequiredobject
verifierNonce.issuedBy.rolerequiredstring= "VERIFIER"
verifierNonce.issuedBy.verifierUnirequiredstringpattern ^[A-Za-z0-9][A-Za-z0-9:._/@-]{7,255}$ · ≥ 8 chars Durable UNI or typed unresolved identifier according to authority rules
verifierNonce.issuedAtrequiredstringdate-time
rootOfTrustrequiredobjectExactly one root-of-trust class with its own evidence block; the blocks of other classes are forbidden.
rootOfTrust.classrequiredenumone of "TPM2", "DICE", "SECURE_ELEMENT", "SOFTWARE_ROOT" Root-of-trust class. Always stated; SOFTWARE_ROOT is an explicit declaration and is never a default.
rootOfTrust.tpmobject
rootOfTrust.tpm.quoteDigestrequiredstringpattern ^[a-z0-9][a-z0-9._-]{1,31}:[A-Fa-f0-9]{32,128}$ Algorithm-prefixed hexadecimal digest
rootOfTrust.tpm.pcrBankrequiredenumone of "SHA256", "SHA384", "SHA512"
rootOfTrust.tpm.pcrSelectionrequiredarray of integer≥ 1 items
rootOfTrust.tpm.akPublicKeyDigestrequiredstringpattern ^[a-z0-9][a-z0-9._-]{1,31}:[A-Fa-f0-9]{32,128}$ Algorithm-prefixed hexadecimal digest
rootOfTrust.tpm.ekCertificateDigeststringpattern ^[a-z0-9][a-z0-9._-]{1,31}:[A-Fa-f0-9]{32,128}$ Algorithm-prefixed hexadecimal digest
rootOfTrust.diceobject
rootOfTrust.dice.certificateChainDigestrequiredstringpattern ^[a-z0-9][a-z0-9._-]{1,31}:[A-Fa-f0-9]{32,128}$ Algorithm-prefixed hexadecimal digest
rootOfTrust.dice.layerCountrequiredinteger≥ 1
rootOfTrust.dice.tcbInfoDigeststringpattern ^[a-z0-9][a-z0-9._-]{1,31}:[A-Fa-f0-9]{32,128}$ Algorithm-prefixed hexadecimal digest
rootOfTrust.secureElementobject
rootOfTrust.secureElement.attestationCertificateDigestrequiredstringpattern ^[a-z0-9][a-z0-9._-]{1,31}:[A-Fa-f0-9]{32,128}$ Algorithm-prefixed hexadecimal digest
rootOfTrust.secureElement.attestationSignatureDigestrequiredstringpattern ^[a-z0-9][a-z0-9._-]{1,31}:[A-Fa-f0-9]{32,128}$ Algorithm-prefixed hexadecimal digest
rootOfTrust.softwareRootobjectExplicit software-root declaration. Required whenever the class is SOFTWARE_ROOT so the weaker root is never implied.
rootOfTrust.softwareRoot.reasonrequiredenumone of "NO_HARDWARE_ROOT_IN_DEVICE_CLASS", "HARDWARE_ROOT_UNAVAILABLE", "LAB_OR_REFERENCE_ONLY"
rootOfTrust.softwareRoot.keyProtectionrequiredenumone of "OS_KEYSTORE", "FILE_SYSTEM_PERMISSIONS", "NONE"
rootOfTrust.softwareRoot.statementrequiredstring= "SOFTWARE_ROOT_WITHOUT_HARDWARE_ASSURANCE"
claimsrequiredarray of object≥ 1 items
claims[].namerequiredstringpattern ^[a-z][a-z0-9_]*(\.[a-z0-9_]+)*$
claims[].valuerequiredstring | number | boolean
measurementsrequiredarray of object≥ 1 items
measurements[].componentrequiredstring≥ 1 chars
measurements[].digestrequiredstringpattern ^[a-z0-9][a-z0-9._-]{1,31}:[A-Fa-f0-9]{32,128}$ Algorithm-prefixed hexadecimal digest
measurements[].registerstring≥ 1 chars
measurements[].versionstring≥ 1 chars
evidenceFormatrequiredenumone of "EAT_CWT", "EAT_JWT", "TPM2_QUOTE", "DICE_TCB_INFO", "CMW", "OBSP_SOFTWARE_ROOT_STATEMENT"
evidenceDigestrequiredstringpattern ^[a-z0-9][a-z0-9._-]{1,31}:[A-Fa-f0-9]{32,128}$ Digest of the evidence bytes as conveyed to the verifier
timeQualityRefrequiredobjectTimeQuality record in force when the evidence was collected
timeQualityRef.unirequiredstringpattern ^[A-Za-z0-9][A-Za-z0-9:._/@-]{7,255}$ · ≥ 8 chars Durable UNI or typed unresolved identifier according to authority rules
timeQualityRef.versionstringpattern ^[0-9]+(\.[0-9]+){0,2}$
timeQualityRef.digestrequiredstringpattern ^[a-z0-9][a-z0-9._-]{1,31}:[A-Fa-f0-9]{32,128}$ Algorithm-prefixed hexadecimal digest
collectedAtrequiredstringdate-time
evidenceRefsarray of object
evidenceRefs[].urirequiredstring≥ 1 chars
evidenceRefs[].digestrequiredstringpattern ^[a-z0-9][a-z0-9._-]{1,31}:[A-Fa-f0-9]{32,128}$ Algorithm-prefixed hexadecimal digest
evidenceRefs[].kindstring≥ 1 chars
evidenceRefs[].recordedAtstringdate-time
recordedAtrequiredstringdate-time
extensionsobjectNamespaced extension bag; unknown top-level fields remain forbidden.

A document that passes

{
  "schemaVersion": "3.1.0",
  "apiVersion": "obsp/attestation-evidence/v3.1",
  "kind": "AttestationEvidence",
  "protocolVersion": "obsp/0.1",
  "evidenceUni": "uni:attestation-evidence:site001-node01-0001",
  "conceptualMessage": "EVIDENCE",
  "ratsModel": "PASSPORT",
  "attester": {
    "role": "NODE",
    "nodeUni": "uni:node:site001-node01",
    "deviceClass": "ndc.edge.compute-small",
    "siteUni": "uni:site:site001"
  },
  "verifierNonce": {
    "nonce": "q9V1c2tB7xYwZ3pL0mN4rT8u",
    "issuedBy": {
      "role": "VERIFIER",
      "verifierUni": "uni:verifier:site001-site"
    },
    "issuedAt": "2026-10-27T10:00:00Z"
  },
  "rootOfTrust": {
    "class": "SOFTWARE_ROOT",
    "softwareRoot": {
      "reason": "NO_HARDWARE_ROOT_IN_DEVICE_CLASS",
      "keyProtection": "OS_KEYSTORE",
      "statement": "SOFTWARE_ROOT_WITHOUT_HARDWARE_ASSURANCE"
    }
  },
  "claims": [
    {
      "name": "node_agent.version",
      "value": "0.4.0"
    },
    {
      "name": "secure_boot.enabled",
      "value": true
    }
  ],
  "measurements": [
    {
      "component": "node-agent",
      "digest": "sha256:3333333333333333333333333333333333333333333333333333333333333333",
      "register": "PCR10",
      "version": "0.4.0"
    }
  ],
  "evidenceFormat": "OBSP_SOFTWARE_ROOT_STATEMENT",
  "evidenceDigest": "sha256:4444444444444444444444444444444444444444444444444444444444444444",
  "timeQualityRef": {
    "uni": "uni:time-quality:site001-node01-0001",
    "digest": "sha256:5555555555555555555555555555555555555555555555555555555555555555"
  },
  "collectedAt": "2026-10-27T10:00:05Z",
  "recordedAt": "2026-10-27T10:00:05Z"
}

The same contract in four formats.

JSON schemas for documents, an OpenAPI description of the gateway, an AsyncAPI description of the field messages and protocol buffers for the control plane, all in the open repository.

Schemas and examples: Observatory Protocol contributors, CC BY 4.0, copied from the open repository.