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

DecommissionRecord

Source schemas/json/decommission-record.schema.json

On this page
  1. Properties
  2. Positive fixtures
  3. Negative fixtures
  4. Schema

Closing record for a node, site cell, cluster or provider integration (OBSP 0.1 section 5.12): identities revoked, keys wiped or returned, the owner's data exported in open formats with a digest-bound manifest, and final evidence. Every part is required.

FieldValue
Identifierurn:obsp:schema:v3.1:decommissionrecord
Dialecthttps://json-schema.org/draft/2020-12/schema
Used by functionsExit and decommission

Properties

PropertyRequiredTypeDescription
schemaVersionyesreference
apiVersionyesconstant
kindyesconstant
protocolVersionyesconstant
recordUniyesreference
subjectyesobject
performedByyesobject
decommissionedAtyesreference
identitiesRevokedyesarray
keysyesarray
exportManifestyesobject
finalEvidenceRefsyesarray
recordedAtyesreference
extensionsnoreference

Positive fixtures

  • decommission-record.valid.json

Negative fixtures

  • decommission-record.key-retained.json: keys are wiped or returned, never retained
  • decommission-record.missing-export-manifest-digest.json: export manifest is digest-bound
  • decommission-record.missing-final-evidence.json: final evidence required
  • decommission-record.no-identities-revoked.json: identities revoked is required and non-empty
  • decommission-record.proprietary-export-format.json: export in open formats only
  • decommission-record.returned-key-without-recipient.json: a returned key names the role it was returned to

Schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:obsp:schema:v3.1:decommissionrecord",
  "title": "DecommissionRecord",
  "description": "Closing record for a node, site cell, cluster or provider integration (OBSP 0.1 section 5.12): identities revoked, keys wiped or returned, the owner's data exported in open formats with a digest-bound manifest, and final evidence. Every part is required.",
  "type": "object",
  "required": [
    "schemaVersion",
    "apiVersion",
    "kind",
    "protocolVersion",
    "recordUni",
    "subject",
    "performedBy",
    "decommissionedAt",
    "identitiesRevoked",
    "keys",
    "exportManifest",
    "finalEvidenceRefs",
    "recordedAt"
  ],
  "properties": {
    "schemaVersion": {
      "$ref": "#/$defs/SchemaVersion"
    },
    "apiVersion": {
      "const": "obsp/decommission-record/v3.1"
    },
    "kind": {
      "const": "DecommissionRecord"
    },
    "protocolVersion": {
      "const": "obsp/0.1"
    },
    "recordUni": {
      "$ref": "#/$defs/Uni"
    },
    "subject": {
      "type": "object",
      "required": [
        "subjectKind",
        "uni"
      ],
      "properties": {
        "subjectKind": {
          "enum": [
            "NODE",
            "SITE_CELL",
            "CLUSTER",
            "PROVIDER_INTEGRATION"
          ]
        },
        "uni": {
          "$ref": "#/$defs/Uni"
        },
        "deviceClass": {
          "type": "string",
          "pattern": "^ndc\\.[a-z0-9-]+\\.[a-z0-9-]+$"
        }
      },
      "additionalProperties": false
    },
    "performedBy": {
      "type": "object",
      "required": [
        "role",
        "uni"
      ],
      "properties": {
        "role": {
          "$ref": "#/$defs/ProtocolRole"
        },
        "uni": {
          "$ref": "#/$defs/Uni"
        }
      },
      "additionalProperties": false
    },
    "decommissionedAt": {
      "$ref": "#/$defs/Timestamp"
    },
    "identitiesRevoked": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "required": [
          "identityKind",
          "identityRef",
          "revokedAt",
          "revocationEvidenceDigest"
        ],
        "properties": {
          "identityKind": {
            "enum": [
              "X509_SVID",
              "ENROLMENT_CERTIFICATE",
              "WORKLOAD_SVID",
              "DEVICE_IDENTITY_BINDING",
              "API_CREDENTIAL"
            ]
          },
          "identityRef": {
            "$ref": "#/$defs/NonEmptyString"
          },
          "revokedAt": {
            "$ref": "#/$defs/Timestamp"
          },
          "revocationEvidenceDigest": {
            "$ref": "#/$defs/Digest"
          }
        },
        "additionalProperties": false
      }
    },
    "keys": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "required": [
          "keyRef",
          "disposition",
          "method",
          "performedAt",
          "evidenceDigest"
        ],
        "properties": {
          "keyRef": {
            "type": "string",
            "pattern": "^(secret|key)://[A-Za-z0-9][A-Za-z0-9:._/@-]{2,250}$"
          },
          "disposition": {
            "enum": [
              "WIPED",
              "RETURNED"
            ],
            "description": "A key is wiped or returned to its owner; retention is not a disposition"
          },
          "method": {
            "enum": [
              "TPM2_CLEAR",
              "CRYPTO_ERASE",
              "ZEROISE",
              "HSM_KEY_DESTROY",
              "SEALED_RETURN"
            ]
          },
          "returnedToRole": {
            "$ref": "#/$defs/ProtocolRole"
          },
          "performedAt": {
            "$ref": "#/$defs/Timestamp"
          },
          "evidenceDigest": {
            "$ref": "#/$defs/Digest"
          }
        },
        "additionalProperties": false,
        "if": {
          "properties": {
            "disposition": {
              "const": "RETURNED"
            }
          },
          "required": [
            "disposition"
          ]
        },
        "then": {
          "required": [
            "returnedToRole"
          ],
          "properties": {
            "method": {
              "const": "SEALED_RETURN"
            }
          }
        },
        "else": {
          "not": {
            "required": [
              "returnedToRole"
            ]
          },
          "properties": {
            "method": {
              "not": {
                "const": "SEALED_RETURN"
              }
            }
          }
        }
      }
    },
    "exportManifest": {
      "type": "object",
      "required": [
        "manifestDigest",
        "recipientRole",
        "files"
      ],
      "properties": {
        "manifestDigest": {
          "$ref": "#/$defs/Digest"
        },
        "recipientRole": {
          "const": "GRID_OPERATOR",
          "description": "The owner of the data receives the export"
        },
        "files": {
          "type": "array",
          "minItems": 1,
          "items": {
            "type": "object",
            "required": [
              "path",
              "format",
              "digest"
            ],
            "properties": {
              "path": {
                "$ref": "#/$defs/NonEmptyString"
              },
              "format": {
                "enum": [
                  "CSV",
                  "JSON",
                  "JSON_LINES",
                  "GEOJSON",
                  "NETCDF",
                  "HDF5",
                  "PARQUET",
                  "GEOPACKAGE",
                  "GEOTIFF",
                  "CBOR",
                  "PDF_A",
                  "PLAIN_TEXT",
                  "SPDX",
                  "CYCLONEDX"
                ],
                "description": "Open, documented formats only"
              },
              "digest": {
                "$ref": "#/$defs/Digest"
              }
            },
            "additionalProperties": false
          }
        }
      },
      "additionalProperties": false
    },
    "finalEvidenceRefs": {
      "type": "array",
      "minItems": 1,
      "items": {
        "$ref": "#/$defs/EvidenceRef"
      }
    },
    "recordedAt": {
      "$ref": "#/$defs/Timestamp"
    },
    "extensions": {
      "$ref": "#/$defs/Extensions"
    }
  },
  "$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"
      ]
    }
  },
  "additionalProperties": false
}