Skip to content

Commit e43821f

Browse files
Merge branch '2.0-dev' into 2.0-dev-party-model
2 parents e79bb8e + e7474ca commit e43821f

20 files changed

Lines changed: 983 additions & 375 deletions

schema/2.0/cyclonedx-2.0-bundled.min.schema.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

schema/2.0/cyclonedx-2.0-bundled.schema.json

Lines changed: 556 additions & 117 deletions
Large diffs are not rendered by default.

schema/2.0/model/cyclonedx-common-2.0.schema.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,14 @@
5454
"additionalProperties": false,
5555
"properties": {
5656
"alg": {
57-
"$ref": "#/$defs/hashAlgorithm"
57+
"$ref": "#/$defs/hashAlgorithm",
58+
"title": "Hash Algorithm",
59+
"description": "The standard, well-known algorithm used to compute the hash."
5860
},
5961
"content": {
60-
"$ref": "#/$defs/hashValue"
62+
"$ref": "#/$defs/hashValue",
63+
"title": "Hash Value",
64+
"description": "The value of the hash computed using the standard, well-known algorithm."
6165
}
6266
}
6367
},
@@ -223,6 +227,7 @@
223227
"patent-family",
224228
"patent-assertion",
225229
"citation",
230+
"swid-tag",
226231
"other"
227232
],
228233
"meta:enum": {
@@ -273,6 +278,7 @@
273278
"patent-family": "References information about a patent family which may be defined in human-readable documents or in machine-readable formats such as CycloneDX or ST.96. A patent family is a group of related patent applications or granted patents that cover the same or similar invention. For detailed patent family information or to reference the information provided directly by patent offices, it is recommended to leverage standards from the World Intellectual Property Organization (WIPO) such as [ST.96](https://www.wipo.int/standards/en/st96).",
274279
"patent-assertion" : "References assertions made regarding patents associated with a component or service. Assertions distinguish between ownership, licensing, and other relevant interactions with patents.",
275280
"citation": "A reference to external citations applicable to the object identified by this BOM entry or the BOM itself. When used with a BOM-Link, this allows offloading citations into a separate CycloneDX BOM.",
281+
"swid-tag": "A Software Identification (SWID) tag document conforming to ISO/IEC 19770-2. The reference resolves to the XML SoftwareIdentity document itself, including all of its metadata (entities, evidence, payload, links, and meta elements). This is distinct from the `swid` identifier scheme, which carries only the tagId of a SWID tag.",
276282
"other": "Use this if no other types accurately describe the purpose of the external reference."
277283
}
278284
},

schema/2.0/model/cyclonedx-component-2.0.schema.json

Lines changed: 150 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -137,39 +137,8 @@
137137
"$ref": "cyclonedx-patent-2.0.schema.json#/$defs/patentAssertions",
138138
"title": "Component Patent(s)"
139139
},
140-
"cpe": {
141-
"type": "string",
142-
"title": "Common Platform Enumeration (CPE)",
143-
"description": "Asserts the identity of the component using CPE. The CPE must conform to the CPE 2.2 or 2.3 specification. See [https://nvd.nist.gov/products/cpe](https://nvd.nist.gov/products/cpe). Refer to `@.evidence.identity` to optionally provide evidence that substantiates the assertion of the component's identity.",
144-
"examples": ["cpe:2.3:a:acme:component_framework:-:*:*:*:*:*:*:*"]
145-
},
146-
"purl": {
147-
"type": "string",
148-
"title": "Package URL (purl)",
149-
"description": "Asserts the identity of the component using package-url (purl). The purl, if specified, must be valid and conform to the specification defined at: [https://github.com/package-url/purl-spec](https://github.com/package-url/purl-spec). Refer to `@.evidence.identity` to optionally provide evidence that substantiates the assertion of the component's identity.",
150-
"examples": ["pkg:maven/com.acme/tomcat-catalina@9.0.14?packaging=jar"]
151-
},
152-
"omniborId": {
153-
"type": "array",
154-
"title": "OmniBOR Artifact Identifier (gitoid)",
155-
"description": "Asserts the identity of the component using the OmniBOR Artifact ID. The OmniBOR, if specified, must be valid and conform to the specification defined at: [https://www.iana.org/assignments/uri-schemes/prov/gitoid](https://www.iana.org/assignments/uri-schemes/prov/gitoid). Refer to `@.evidence.identity` to optionally provide evidence that substantiates the assertion of the component's identity.",
156-
"items": { "type": "string" },
157-
"examples": [
158-
"gitoid:blob:sha1:a94a8fe5ccb19ba61c4c0873d391e987982fbbd3",
159-
"gitoid:blob:sha256:9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"
160-
]
161-
},
162-
"swhid": {
163-
"type": "array",
164-
"title": "Software Heritage Identifier",
165-
"description": "Asserts the identity of the component using the Software Heritage persistent identifier (SWHID). The SWHID, if specified, must be valid and conform to the specification defined at: [https://docs.softwareheritage.org/devel/swh-model/persistent-identifiers.html](https://docs.softwareheritage.org/devel/swh-model/persistent-identifiers.html). Refer to `@.evidence.identity` to optionally provide evidence that substantiates the assertion of the component's identity.",
166-
"items": { "type": "string" },
167-
"examples": ["swh:1:cnt:94a9ed024d3859793618152ea559a168bbcbb5e2"]
168-
},
169-
"swid": {
170-
"$ref": "#/$defs/swid",
171-
"title": "SWID Tag",
172-
"description": "Asserts the identity of the component using [ISO-IEC 19770-2 Software Identification (SWID) Tags](https://www.iso.org/standard/65666.html). Refer to `@.evidence.identity` to optionally provide evidence that substantiates the assertion of the component's identity."
140+
"identifiers": {
141+
"$ref": "#/$defs/identifiers"
173142
},
174143
"pedigree": {
175144
"type": "object",
@@ -334,57 +303,6 @@
334303
}
335304
}
336305
},
337-
"swid": {
338-
"type": "object",
339-
"title": "SWID Tag",
340-
"description": "Specifies metadata and content for ISO-IEC 19770-2 Software Identification (SWID) Tags.",
341-
"required": [
342-
"tagId",
343-
"name"
344-
],
345-
"additionalProperties": false,
346-
"properties": {
347-
"tagId": {
348-
"type": "string",
349-
"title": "Tag ID",
350-
"description": "Maps to the tagId of a SoftwareIdentity."
351-
},
352-
"name": {
353-
"type": "string",
354-
"title": "Name",
355-
"description": "Maps to the name of a SoftwareIdentity."
356-
},
357-
"version": {
358-
"type": "string",
359-
"title": "Version",
360-
"default": "0.0",
361-
"description": "Maps to the version of a SoftwareIdentity."
362-
},
363-
"tagVersion": {
364-
"type": "integer",
365-
"title": "Tag Version",
366-
"default": 0,
367-
"description": "Maps to the tagVersion of a SoftwareIdentity."
368-
},
369-
"patch": {
370-
"type": "boolean",
371-
"title": "Patch",
372-
"default": false,
373-
"description": "Maps to the patch of a SoftwareIdentity."
374-
},
375-
"text": {
376-
"title": "Attachment text",
377-
"description": "Specifies the metadata and content of the SWID tag.",
378-
"$ref": "cyclonedx-common-2.0.schema.json#/$defs/attachment"
379-
},
380-
"url": {
381-
"type": "string",
382-
"title": "URL",
383-
"description": "The URL to the SWID file.",
384-
"format": "iri-reference"
385-
}
386-
}
387-
},
388306
"componentEvidence": {
389307
"type": "object",
390308
"title": "Evidence",
@@ -542,16 +460,11 @@
542460
"type": "object",
543461
"title": "Identity Evidence",
544462
"description": "Evidence that substantiates the identity of a component.",
545-
"required": [ "field" ],
463+
"required": [ "scheme" ],
546464
"additionalProperties": false,
547465
"properties": {
548-
"field": {
549-
"type": "string",
550-
"enum": [
551-
"group", "name", "version", "purl", "cpe", "omniborId", "swhid", "swid", "hash"
552-
],
553-
"title": "Field",
554-
"description": "The identity field of the component which the evidence describes."
466+
"scheme": {
467+
"$ref": "#/$defs/identityScheme"
555468
},
556469
"confidence": {
557470
"type": "number",
@@ -563,7 +476,7 @@
563476
"concludedValue": {
564477
"type": "string",
565478
"title": "Concluded Value",
566-
"description": "The value of the field (cpe, purl, etc) that has been concluded based on the aggregate of all methods (if available)."
479+
"description": "The value of the scheme that has been concluded based on the aggregate of all methods (if available)."
567480
},
568481
"methods": {
569482
"type": "array",
@@ -714,6 +627,150 @@
714627
"$ref": "cyclonedx-data-2.0.schema.json#/$defs/dataGovernance"
715628
}
716629
}
630+
},
631+
"identifiers": {
632+
"type": "array",
633+
"title": "Identifiers",
634+
"description": "Identifiers asserted by one or more parties to identify this component. Each entry groups one or more identity claims by the party asserting them. Identifiers carry positive claims of identity. For unverified or inferred identity data, use evidence.",
635+
"items": {
636+
"$ref": "#/$defs/identifier"
637+
},
638+
"uniqueItems": true
639+
},
640+
"identifier": {
641+
"type": "object",
642+
"title": "Identifier",
643+
"description": "A set of identifiers attributed to a single asserting party.",
644+
"required": [
645+
"party",
646+
"identities"
647+
],
648+
"additionalProperties": false,
649+
"properties": {
650+
"bom-ref": {
651+
"$ref": "cyclonedx-common-2.0.schema.json#/$defs/refType"
652+
},
653+
"party": {
654+
"$ref": "cyclonedx-common-2.0.schema.json#/$defs/refLinkType",
655+
"title": "Asserting Party",
656+
"description": "Reference using bom-link or bom-ref to the party making the identity assertion."
657+
},
658+
"identities": {
659+
"type": "array",
660+
"title": "Identities",
661+
"description": "The discrete identity claims asserted by the party.",
662+
"items": {
663+
"$ref": "#/$defs/identity"
664+
},
665+
"minItems": 1,
666+
"uniqueItems": true
667+
}
668+
}
669+
},
670+
"identity": {
671+
"type": "object",
672+
"title": "Identity",
673+
"description": "A single identity claim, pairing a typed identifier scheme with the value asserted under that scheme.",
674+
"required": [
675+
"scheme",
676+
"value"
677+
],
678+
"additionalProperties": false,
679+
"properties": {
680+
"scheme": { "$ref": "#/$defs/identityScheme" },
681+
"value": { "$ref": "#/$defs/identityValue" }
682+
}
683+
},
684+
"identityScheme": {
685+
"title": "Identifier Scheme",
686+
"description": "The scheme under which an identifier is asserted. Either a predefined value or a custom scheme described by name and description.",
687+
"oneOf": [
688+
{
689+
"type": "string",
690+
"enum": [
691+
"purl",
692+
"cpe",
693+
"swid",
694+
"swhid",
695+
"omniborid",
696+
"epc-rfid",
697+
"giai",
698+
"gln",
699+
"gmn",
700+
"gtin-8",
701+
"gtin-12",
702+
"gtin-13",
703+
"gtin-14",
704+
"mpn",
705+
"part-number",
706+
"model-number",
707+
"sku",
708+
"serial-number",
709+
"asset-tag",
710+
"udi-di",
711+
"udi-pi",
712+
"fcc-id",
713+
"imei",
714+
"mac-address",
715+
"tei"
716+
],
717+
"meta:enum": {
718+
"purl": "Package-URL identifier, conforming to the Package-URL specification.",
719+
"cpe": "Common Platform Enumeration name, conforming to NIST Interagency Report 7695.",
720+
"swid": "Software Identification tag identifier, conforming to ISO/IEC 19770-2.",
721+
"swhid": "Software Heritage persistent identifier.",
722+
"omniborid": "OmniBOR Artifact Identifier, also known as a gitoid.",
723+
"epc-rfid": "Electronic Product Code - RFID (EPC Tag Data Standard)",
724+
"giai": "Global Individual Asset Identifier (GIAI)",
725+
"gln": "Global Location Number (GLN)",
726+
"gmn": "Global Model Number (GMN)",
727+
"gtin-8": "Global Trade Identification Number (GTIN-8 / EAN/UCC-8)",
728+
"gtin-12": "Global Trade Identification Number (GTIN-12 / UPC-A)",
729+
"gtin-13": "Global Trade Identification Number (GTIN-13 / EAN/UCC-13)",
730+
"gtin-14": "Global Trade Identification Number (GTIN / EAN/UCC-14 or ITF-14)",
731+
"mpn": "Manufacturer Part Number, assigned by the original manufacturer.",
732+
"part-number": "Part number assigned by a distributor, integrator, or operator.",
733+
"model-number": "Product model number assigned by the manufacturer.",
734+
"sku": "Stock Keeping Unit, assigned by a seller or distributor.",
735+
"serial-number": "Unique identifier for an individual instance of a product.",
736+
"asset-tag": "Asset tag assigned by the owning or operating organization.",
737+
"udi-di": "Unique Device Identifier, Device Identifier portion, conforming to ISO/IEC 15459 and applicable regulatory frameworks.",
738+
"udi-pi": "Unique Device Identifier, Production Identifier portion, conforming to ISO/IEC 15459 and applicable regulatory frameworks.",
739+
"fcc-id": "United States Federal Communications Commission equipment identifier.",
740+
"imei": "International Mobile Equipment Identity, conforming to 3GPP TS 23.003.",
741+
"mac-address": "IEEE 802 Media Access Control address.",
742+
"tei": "Transparency Exchange Identifier conforming to the Transparency Exchange API specification."
743+
}
744+
},
745+
{
746+
"type": "object",
747+
"title": "Custom Identifier Scheme",
748+
"description": "A custom identifier scheme not represented in the predefined taxonomy.",
749+
"required": [
750+
"name"
751+
],
752+
"additionalProperties": false,
753+
"properties": {
754+
"name": {
755+
"type": "string",
756+
"minLength": 1,
757+
"title": "Name",
758+
"description": "The name of the custom identifier scheme."
759+
},
760+
"description": {
761+
"type": "string",
762+
"title": "Description",
763+
"description": "A description of the custom identifier scheme."
764+
}
765+
}
766+
}
767+
]
768+
},
769+
"identityValue": {
770+
"type": "string",
771+
"minLength": 1,
772+
"title": "Identifier Value",
773+
"description": "The value of an identifier."
717774
}
718775
}
719776
}

schema/2.0/model/cyclonedx-cryptography-2.0.schema.json

Lines changed: 41 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@
416416
]
417417
},
418418
"fingerprint": {
419-
"$ref": "cyclonedx-common-2.0.schema.json#/$defs/hash",
419+
"$ref": "#/$defs/fingerprint",
420420
"title": "Certificate Fingerprint",
421421
"description": "The fingerprint is a cryptographic hash of the certificate excluding it's signature."
422422
},
@@ -718,9 +718,7 @@
718718
"description": "The mechanism by which the cryptographic asset is secured by."
719719
},
720720
"fingerprint": {
721-
"$ref": "cyclonedx-common-2.0.schema.json#/$defs/hash",
722-
"title": "Fingerprint",
723-
"description": "The fingerprint is a cryptographic hash of the asset."
721+
"$ref": "#/$defs/fingerprint"
724722
},
725723
"relatedCryptographicAssets": {
726724
"$ref": "#/$defs/relatedCryptographicAssets"
@@ -1119,6 +1117,45 @@
11191117
}
11201118
}
11211119
},
1120+
"fingerprint": {
1121+
"type": "object",
1122+
"title": "Fingerprint",
1123+
"description": "The fingerprint is a cryptographic hash of the asset.",
1124+
"oneOf": [
1125+
{
1126+
"title": "Standard Hash",
1127+
"description": "A fingerprint computed using a standard, well-known hash algorithm.",
1128+
"required": ["alg", "content"],
1129+
"additionalProperties": false,
1130+
"properties": {
1131+
"alg": {
1132+
"$ref": "cyclonedx-common-2.0.schema.json#/$defs/hashAlgorithm"
1133+
},
1134+
"content": {
1135+
"$ref": "cyclonedx-common-2.0.schema.json#/$defs/hashValue"
1136+
}
1137+
}
1138+
},
1139+
{
1140+
"title": "Custom Fingerprint",
1141+
"description": "A fingerprint computed with a custom or non-standard algorithm not covered by the standard hash algorithms.",
1142+
"required": ["customAlg", "customContent"],
1143+
"additionalProperties": false,
1144+
"properties": {
1145+
"customAlg": {
1146+
"type": "string",
1147+
"title": "Custom Fingerprint Algorithm",
1148+
"description": "The name of the custom algorithm used to compute the fingerprint."
1149+
},
1150+
"customContent": {
1151+
"type": "string",
1152+
"title": "Custom Fingerprint Content",
1153+
"description": "The value of the fingerprint computed using the custom algorithm."
1154+
}
1155+
}
1156+
}
1157+
]
1158+
},
11221159
"securedBy": {
11231160
"type": "object",
11241161
"title": "Secured By",

0 commit comments

Comments
 (0)