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

SupplyChainReceipt

Source schemas/json/supply-chain-receipt.schema.json

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

Supply-chain receipt for an admitted software artifact (OBSP 0.1 section 5.2): artifact digest, SBOM (SPDX or CycloneDX) reference and digest, SLSA provenance reference and build level, and an optional SCITT transparency receipt. A receipt records verification for a stated scope; it is not admission.

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

Properties

PropertyRequiredTypeDescription
schemaVersionyesreference
apiVersionyesconstant
kindyesconstant
protocolVersionyesconstant
receiptUniyesreference
artifactyesobject
sbomyesobject
provenanceyesobject
transparencynoobjectOptional SCITT transparency receipt. When present it is complete.
verificationyesobject
evidenceRefsnoarray
recordedAtyesreference
extensionsnoreference

Positive fixtures

  • supply-chain-receipt.valid.json

Negative fixtures

  • supply-chain-receipt.floating-version.json: artifact version is pinned
  • supply-chain-receipt.missing-artifact-digest.json: artifact digest required
  • supply-chain-receipt.partial-scitt-receipt.json: a SCITT receipt when present is complete
  • supply-chain-receipt.sbom-without-digest.json: SBOM reference is digest-bound
  • supply-chain-receipt.slsa-level-out-of-range.json: SLSA build level 0..3
  • supply-chain-receipt.unknown-sbom-format.json: SBOM format SPDX or CycloneDX only

Mappings to open standards

A mapping to a standard, never a conformance statement.

  • maps to NS-12 Software, models and AI/ML artifacts (relation REL-NS-12)
  • maps to SLSA and in-toto (relation EXT-SLSA)

Schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:obsp:schema:v3.1:supplychainreceipt",
  "title": "SupplyChainReceipt",
  "description": "Supply-chain receipt for an admitted software artifact (OBSP 0.1 section 5.2): artifact digest, SBOM (SPDX or CycloneDX) reference and digest, SLSA provenance reference and build level, and an optional SCITT transparency receipt. A receipt records verification for a stated scope; it is not admission.",
  "type": "object",
  "required": [
    "schemaVersion",
    "apiVersion",
    "kind",
    "protocolVersion",
    "receiptUni",
    "artifact",
    "sbom",
    "provenance",
    "verification",
    "recordedAt"
  ],
  "properties": {
    "schemaVersion": {
      "$ref": "#/$defs/SchemaVersion"
    },
    "apiVersion": {
      "const": "obsp/supply-chain-receipt/v3.1"
    },
    "kind": {
      "const": "SupplyChainReceipt"
    },
    "protocolVersion": {
      "const": "obsp/0.1"
    },
    "receiptUni": {
      "$ref": "#/$defs/Uni"
    },
    "artifact": {
      "type": "object",
      "required": [
        "name",
        "version",
        "artifactType",
        "digest"
      ],
      "properties": {
        "name": {
          "$ref": "#/$defs/NonEmptyString"
        },
        "version": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "not": {
            "enum": [
              "latest",
              "LATEST",
              "*"
            ]
          }
        },
        "artifactType": {
          "enum": [
            "CONTAINER_IMAGE",
            "FIRMWARE",
            "SOFTWARE_PACKAGE",
            "MODEL",
            "SYSTEM_PACK",
            "CONFIGURATION_BUNDLE"
          ]
        },
        "digest": {
          "$ref": "#/$defs/Digest"
        },
        "providerUni": {
          "$ref": "#/$defs/Uni"
        }
      },
      "additionalProperties": false
    },
    "sbom": {
      "type": "object",
      "required": [
        "format",
        "specVersion",
        "ref",
        "digest"
      ],
      "properties": {
        "format": {
          "enum": [
            "SPDX",
            "CycloneDX"
          ]
        },
        "specVersion": {
          "type": "string",
          "pattern": "^[0-9]+\\.[0-9]+(\\.[0-9]+)?$"
        },
        "ref": {
          "$ref": "#/$defs/NonEmptyString"
        },
        "digest": {
          "$ref": "#/$defs/Digest"
        }
      },
      "additionalProperties": false
    },
    "provenance": {
      "type": "object",
      "required": [
        "framework",
        "predicateType",
        "slsaBuildLevel",
        "envelope",
        "ref",
        "digest"
      ],
      "properties": {
        "framework": {
          "const": "SLSA"
        },
        "predicateType": {
          "enum": [
            "https://slsa.dev/provenance/v1",
            "https://slsa.dev/provenance/v0.2"
          ],
          "description": "in-toto predicate type identifier (a specification identifier, not an endpoint)"
        },
        "slsaBuildLevel": {
          "enum": [
            0,
            1,
            2,
            3
          ],
          "description": "SLSA v1.0 build track level"
        },
        "envelope": {
          "const": "DSSE"
        },
        "ref": {
          "$ref": "#/$defs/NonEmptyString"
        },
        "digest": {
          "$ref": "#/$defs/Digest"
        },
        "builderUni": {
          "$ref": "#/$defs/Uni"
        }
      },
      "additionalProperties": false
    },
    "transparency": {
      "type": "object",
      "required": [
        "service",
        "transparencyServiceUni",
        "receiptDigest",
        "registeredAt"
      ],
      "properties": {
        "service": {
          "const": "SCITT"
        },
        "transparencyServiceUni": {
          "$ref": "#/$defs/Uni"
        },
        "entryId": {
          "$ref": "#/$defs/NonEmptyString"
        },
        "receiptDigest": {
          "$ref": "#/$defs/Digest"
        },
        "registeredAt": {
          "$ref": "#/$defs/Timestamp"
        }
      },
      "additionalProperties": false,
      "description": "Optional SCITT transparency receipt. When present it is complete."
    },
    "verification": {
      "type": "object",
      "required": [
        "verifierRole",
        "state",
        "verifiedAt",
        "scope"
      ],
      "properties": {
        "verifierRole": {
          "const": "VERIFIER"
        },
        "state": {
          "enum": [
            "VERIFIED_FOR_SCOPE",
            "FAILED",
            "NOT_VERIFIED"
          ]
        },
        "verifiedAt": {
          "$ref": "#/$defs/Timestamp"
        },
        "scope": {
          "$ref": "#/$defs/NonEmptyString"
        }
      },
      "additionalProperties": false
    },
    "evidenceRefs": {
      "type": "array",
      "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
}