Choose what this site may use

This site uses strictly necessary cookies to work and to remember your privacy choices. With your permission it would also load content hosted by other services, such as videos, maps and fonts, which then receive your network address and device data. We do not sell or share your personal information and we run no advertising. Choose Accept all, Reject all or Customise. You can change your mind at any time through Privacy choices at the foot of every page.

  • Always on

    Needed for the site to work and to remember your privacy choices. Always on.

  • Remembers settings you choose, such as the light or dark display, in your browser.

  • Loads videos, maps and other content hosted by other services. Those services receive your address and device data.

Menu Close
In this section: Specification
Specification
Functions
Schemas
Registers

AttestationResult

Source schemas/json/attestation-result.schema.json

On this page
  1. Properties
  2. Positive fixtures
  3. Negative fixtures
  4. Mappings to open standards
  5. Schema

Verifier appraisal of AttestationEvidence (RFC 9334 attestation result, AR4SI tiers), bound to the nonce and the evidence digest it appraised and valid only until expiresAt. CONTRAINDICATED and NONE never permit identity issuance; a software root never affirms hardware.

FieldValue
Identifierurn:obsp:schema:v3.1:attestationresult
Dialecthttps://json-schema.org/draft/2020-12/schema
Used by functionsJoin

Properties

PropertyRequiredTypeDescription
schemaVersionyesreference
apiVersionyesconstant
kindyesconstant
protocolVersionyesconstant
resultUniyesreference
conceptualMessageyesconstantRFC 9334 conceptual message
verifieryesobject
attesteryesobject
nonceyesreferenceThe nonce the appraised evidence answered; binds result to evidence freshness
evidenceRefyesobject
rootOfTrustClassyesreference
statusyesreferenceOverall appraisal (AR4SI trustworthiness tier)
trustVectornoobject
appraisalPolicyRefyesreference
issuedAtyesreference
expiresAtyesreferenceRequired. A result without expiry is never accepted
permitsIdentityIssuanceyesboolean
signatureyes
timeQualityRefnoreference
diagnosticsnoarray
recordedAtyesreference
extensionsnoreference

Positive fixtures

  • attestation-result.valid.json

Negative fixtures

  • attestation-result.contraindicated-issues-identity.json: CONTRAINDICATED never permits identity issuance
  • attestation-result.missing-evidence-digest.json: a result is bound to the evidence digest
  • attestation-result.missing-expiry.json: a result is bound to an expiry
  • attestation-result.missing-nonce.json: a result is bound to the nonce
  • attestation-result.pass-status.json: status from AFFIRMING|WARNING|CONTRAINDICATED|NONE only
  • attestation-result.signed-by-node.json: only the verifier signs a result
  • attestation-result.software-root-affirms-hardware.json: a software root never affirms hardware

Mappings to open standards

A mapping to a standard, never a conformance statement.

  • maps to NS-11 Verification and monitoring (relation REL-NS-11)
  • maps to RFC 9334 (remote attestation procedures architecture) (relation EXT-RFC9334)

Schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:obsp:schema:v3.1:attestationresult",
  "title": "AttestationResult",
  "description": "Verifier appraisal of AttestationEvidence (RFC 9334 attestation result, AR4SI tiers), bound to the nonce and the evidence digest it appraised and valid only until expiresAt. CONTRAINDICATED and NONE never permit identity issuance; a software root never affirms hardware.",
  "type": "object",
  "required": [
    "schemaVersion",
    "apiVersion",
    "kind",
    "protocolVersion",
    "resultUni",
    "conceptualMessage",
    "verifier",
    "attester",
    "nonce",
    "evidenceRef",
    "rootOfTrustClass",
    "status",
    "appraisalPolicyRef",
    "issuedAt",
    "expiresAt",
    "permitsIdentityIssuance",
    "signature",
    "recordedAt"
  ],
  "properties": {
    "schemaVersion": {
      "$ref": "#/$defs/SchemaVersion"
    },
    "apiVersion": {
      "const": "obsp/attestation-result/v3.1"
    },
    "kind": {
      "const": "AttestationResult"
    },
    "protocolVersion": {
      "const": "obsp/0.1"
    },
    "resultUni": {
      "$ref": "#/$defs/Uni"
    },
    "conceptualMessage": {
      "const": "ATTESTATION_RESULT",
      "description": "RFC 9334 conceptual message"
    },
    "verifier": {
      "type": "object",
      "required": [
        "role",
        "verifierUni"
      ],
      "properties": {
        "role": {
          "const": "VERIFIER"
        },
        "verifierUni": {
          "$ref": "#/$defs/Uni"
        }
      },
      "additionalProperties": false
    },
    "attester": {
      "type": "object",
      "required": [
        "role",
        "nodeUni"
      ],
      "properties": {
        "role": {
          "const": "NODE"
        },
        "nodeUni": {
          "$ref": "#/$defs/Uni"
        },
        "deviceClass": {
          "$ref": "#/$defs/DeviceClass"
        }
      },
      "additionalProperties": false
    },
    "nonce": {
      "$ref": "#/$defs/Nonce",
      "description": "The nonce the appraised evidence answered; binds result to evidence freshness"
    },
    "evidenceRef": {
      "type": "object",
      "required": [
        "evidenceUni",
        "evidenceDigest"
      ],
      "properties": {
        "evidenceUni": {
          "$ref": "#/$defs/Uni"
        },
        "evidenceDigest": {
          "$ref": "#/$defs/Digest"
        }
      },
      "additionalProperties": false
    },
    "rootOfTrustClass": {
      "$ref": "#/$defs/RootOfTrustClass"
    },
    "status": {
      "$ref": "#/$defs/TrustTier",
      "description": "Overall appraisal (AR4SI trustworthiness tier)"
    },
    "trustVector": {
      "type": "object",
      "minProperties": 1,
      "properties": {
        "instanceIdentity": {
          "$ref": "#/$defs/TrustTier"
        },
        "configuration": {
          "$ref": "#/$defs/TrustTier"
        },
        "executables": {
          "$ref": "#/$defs/TrustTier"
        },
        "fileSystem": {
          "$ref": "#/$defs/TrustTier"
        },
        "hardware": {
          "$ref": "#/$defs/TrustTier"
        },
        "runtimeOpaque": {
          "$ref": "#/$defs/TrustTier"
        },
        "storageOpaque": {
          "$ref": "#/$defs/TrustTier"
        },
        "sourcedData": {
          "$ref": "#/$defs/TrustTier"
        }
      },
      "additionalProperties": false
    },
    "appraisalPolicyRef": {
      "$ref": "#/$defs/RecordRef"
    },
    "issuedAt": {
      "$ref": "#/$defs/Timestamp"
    },
    "expiresAt": {
      "$ref": "#/$defs/Timestamp",
      "description": "Required. A result without expiry is never accepted"
    },
    "permitsIdentityIssuance": {
      "type": "boolean"
    },
    "signature": {
      "allOf": [
        {
          "$ref": "#/$defs/Signature"
        },
        {
          "properties": {
            "signerRole": {
              "const": "VERIFIER"
            }
          }
        }
      ]
    },
    "timeQualityRef": {
      "$ref": "#/$defs/RecordRef"
    },
    "diagnostics": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "code",
          "message"
        ],
        "properties": {
          "code": {
            "type": "string",
            "pattern": "^OBS-[A-Z0-9]+-[0-9]{4}$"
          },
          "message": {
            "$ref": "#/$defs/NonEmptyString"
          }
        },
        "additionalProperties": false
      }
    },
    "recordedAt": {
      "$ref": "#/$defs/Timestamp"
    },
    "extensions": {
      "$ref": "#/$defs/Extensions"
    }
  },
  "allOf": [
    {
      "if": {
        "properties": {
          "status": {
            "enum": [
              "CONTRAINDICATED",
              "NONE"
            ]
          }
        },
        "required": [
          "status"
        ]
      },
      "then": {
        "properties": {
          "permitsIdentityIssuance": {
            "const": false
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "rootOfTrustClass": {
            "const": "SOFTWARE_ROOT"
          }
        },
        "required": [
          "rootOfTrustClass"
        ]
      },
      "then": {
        "properties": {
          "trustVector": {
            "properties": {
              "hardware": {
                "not": {
                  "const": "AFFIRMING"
                }
              }
            }
          }
        }
      }
    }
  ],
  "$defs": {
    "SchemaVersion": {
      "type": "string",
      "const": "3.1.0"
    },
    "Uni": {
      "type": "string",
      "minLength": 8,
      "maxLength": 256,
      "pattern": "^[A-Za-z0-9][A-Za-z0-9:._/@-]{7,255}$",
      "description": "Durable UNI or typed unresolved identifier according to authority rules"
    },
    "Digest": {
      "type": "string",
      "pattern": "^[a-z0-9][a-z0-9._-]{1,31}:[A-Fa-f0-9]{32,128}$",
      "description": "Algorithm-prefixed hexadecimal digest"
    },
    "NonEmptyString": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2048
    },
    "Timestamp": {
      "type": "string",
      "format": "date-time"
    },
    "RecordVersion": {
      "type": "string",
      "pattern": "^[0-9]+(\\.[0-9]+){0,2}$"
    },
    "Extensions": {
      "type": "object",
      "description": "Namespaced extension bag; unknown top-level fields remain forbidden.",
      "propertyNames": {
        "pattern": "^[a-z][a-z0-9]*(\\.[a-z][a-z0-9]*)+$"
      },
      "additionalProperties": true
    },
    "EvidenceRef": {
      "type": "object",
      "required": [
        "uri",
        "digest"
      ],
      "properties": {
        "uri": {
          "type": "string",
          "minLength": 1,
          "maxLength": 4096
        },
        "digest": {
          "$ref": "#/$defs/Digest"
        },
        "kind": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "recordedAt": {
          "$ref": "#/$defs/Timestamp"
        }
      },
      "additionalProperties": false
    },
    "ProtocolRole": {
      "enum": [
        "NODE",
        "SITE_CELL",
        "CLUSTER",
        "FED_PEER",
        "GRID_OPERATOR",
        "PROVIDER",
        "VERIFIER",
        "CONSUMER",
        "STEWARD"
      ],
      "description": "OBSP 0.1 participant role (specification section 3). Roles, never company names."
    },
    "RecordRef": {
      "type": "object",
      "required": [
        "uni",
        "digest"
      ],
      "properties": {
        "uni": {
          "$ref": "#/$defs/Uni"
        },
        "version": {
          "$ref": "#/$defs/RecordVersion"
        },
        "digest": {
          "$ref": "#/$defs/Digest"
        }
      },
      "additionalProperties": false
    },
    "VersionedRecordRef": {
      "type": "object",
      "required": [
        "uni",
        "version",
        "digest"
      ],
      "properties": {
        "uni": {
          "$ref": "#/$defs/Uni"
        },
        "version": {
          "$ref": "#/$defs/RecordVersion"
        },
        "digest": {
          "$ref": "#/$defs/Digest"
        }
      },
      "additionalProperties": false
    },
    "CorrectionState": {
      "enum": [
        "CURRENT",
        "DISPUTED",
        "SUPERSEDED",
        "WITHDRAWN",
        "RECALLED"
      ]
    },
    "DeviceClass": {
      "type": "string",
      "pattern": "^ndc\\.[a-z0-9-]+\\.[a-z0-9-]+$",
      "description": "Device class id (ndc.<family>.<class>)"
    },
    "Nonce": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{22,512}$",
      "description": "Fresh verifier-issued nonce, base64url without padding, at least 128 bits (22 characters)"
    },
    "RootOfTrustClass": {
      "enum": [
        "TPM2",
        "DICE",
        "SECURE_ELEMENT",
        "SOFTWARE_ROOT"
      ],
      "description": "Root-of-trust class. Always stated; SOFTWARE_ROOT is an explicit declaration and is never a default."
    },
    "TrustTier": {
      "enum": [
        "AFFIRMING",
        "WARNING",
        "CONTRAINDICATED",
        "NONE"
      ]
    },
    "Signature": {
      "type": "object",
      "required": [
        "algorithm",
        "signatureDigest",
        "keyRef",
        "signerRole"
      ],
      "properties": {
        "algorithm": {
          "enum": [
            "ED25519",
            "ECDSA_P256_SHA256",
            "ECDSA_P384_SHA384"
          ]
        },
        "signatureDigest": {
          "$ref": "#/$defs/Digest"
        },
        "keyRef": {
          "type": "string",
          "pattern": "^(secret|key)://[A-Za-z0-9][A-Za-z0-9:._/@-]{2,250}$"
        },
        "signerRole": {
          "$ref": "#/$defs/ProtocolRole"
        }
      },
      "additionalProperties": false
    }
  },
  "additionalProperties": false
}