Skip to content

Commit 680b4fc

Browse files
[1.7] Added citation support and test cases. (#630)
## Changed - Formulations may be used to describe how any referencable object within the BOM came together, including components, services, metadata, declarations, or the BOM itself. Before, it was restricted to components and services. ## Added - Citations - describe how certain information in the BOM came together, or were sourced from, or are asserted. ----- TODO/DONE - [x] JSON schema modified - [x] XML schema modified - [x] ProtoBuf schema modified - [x] JSON examples/test data crafted - [x] XML examples/test data crafted - [x] ProtoBuf examples/test data crafted
2 parents e95af17 + e9689a5 commit 680b4fc

File tree

9 files changed

+734
-12
lines changed

9 files changed

+734
-12
lines changed

schema/bom-1.7.proto

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,14 @@ message Bom {
3737
repeated Annotation annotations = 11;
3838
// Specifies optional, custom, properties
3939
repeated Property properties = 12;
40-
// Describes how a component or service was manufactured or deployed. This is achieved through the use of formulas, workflows, tasks, and steps, which declare the precise steps to reproduce along with the observed formulas describing the steps which transpired in the manufacturing process.
40+
// Describes the formulation of any referencable object within the BOM, including components, services, metadata, declarations, or the BOM itself. This may encompass how the object was created, assembled, deployed, tested, certified, or otherwise brought into its present form. Common examples include software build pipelines, deployment processes, AI/ML model training, cryptographic key generation or certification, and third-party audits. Processes are modeled using declared and observed formulas, composed of workflows, tasks, and individual steps.
4141
repeated Formula formulation = 13;
4242
// The list of declarations which describe the conformance to standards. Each declaration may include attestations, claims, and evidence.
4343
repeated Declarations declarations = 14;
4444
// A collection of reusable objects that are defined and may be used elsewhere in the BOM.
4545
repeated Definition definitions = 15;
46+
// A collection of attributions indicating which entity supplied information for specific fields within the BOM.
47+
repeated Citation citations = 16;
4648
}
4749

4850
enum Classification {
@@ -313,7 +315,7 @@ enum ExternalReferenceType {
313315
EXTERNAL_REFERENCE_TYPE_CONFIGURATION = 35;
314316
// Information used to substantiate a claim.
315317
EXTERNAL_REFERENCE_TYPE_EVIDENCE = 36;
316-
// Describes how a component or service was manufactured or deployed.
318+
// Describes the formulation of any referencable object within the BOM, including components, services, metadata, declarations, or the BOM itself.
317319
EXTERNAL_REFERENCE_TYPE_FORMULATION = 37;
318320
// The location where the source code distributable can be obtained. This is often an archive format such as zip or tar.gz. The source-distribution type complements the use of the version control (vcs) type.
319321
EXTERNAL_REFERENCE_TYPE_SOURCE_DISTRIBUTION = 38;
@@ -331,6 +333,8 @@ enum ExternalReferenceType {
331333
EXTERNAL_REFERENCE_TYPE_PATENT_FAMILY = 44;
332334
// References assertions made regarding patents associated with a component or service. Assertions distinguish between ownership, licensing, and other relevant interactions with patents.
333335
EXTERNAL_REFERENCE_TYPE_PATENT_ASSERTION = 45;
336+
// 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.
337+
EXTERNAL_REFERENCE_TYPE_CITATION = 46;
334338
}
335339

336340
enum HashAlg {
@@ -2613,3 +2617,39 @@ enum PatentAssertionType {
26132617
// The patent or patent family is being used under a research or evaluation license.
26142618
PATENT_ASSERTION_TYPE_RESEARCH_OR_EVALUATION = 8;
26152619
}
2620+
2621+
// Details a specific attribution of data within the BOM to a contributing entity or process.
2622+
message Citation {
2623+
message Pointers {
2624+
// Users of other serialisation formats (e.g. XML) shall use the JSON Pointer format to ensure consistent field referencing across representations.
2625+
// Must contain at least 1 item.
2626+
repeated string pointer = 1;
2627+
}
2628+
message Expressions {
2629+
// Specifies a path expression used to locate a value within a BOM. The expression syntax shall conform to the format of the BOM's serialisation.
2630+
// Use [JSONPath](https://datatracker.ietf.org/doc/html/rfc9535) for JSON, [XPath](https://www.w3.org/TR/xpath/) for XML, and default to JSONPath for Protocol Buffers unless otherwise specified.
2631+
// Implementers shall ensure the expression is valid within the context of the applicable serialisation format. Use either "pointer" or "expression" but not both in this object.
2632+
// Must contain at least 1 item.
2633+
repeated string expression = 1;
2634+
}
2635+
2636+
// Optional unique identifier for the citation
2637+
optional string bom_ref = 1;
2638+
// Exactly one of the "pointers" or "expressions" elements must be present.
2639+
oneof target {
2640+
// One or more JSON Pointers(https://datatracker.ietf.org/doc/html/rfc6901) identifying the BOM fields to which the attribution applies.
2641+
Pointers pointers = 2;
2642+
// One or more path expressions used to locate values within a BOM.
2643+
Expressions expressions = 3;
2644+
}
2645+
// Timestamp when the attribution was made or the information was supplied.
2646+
google.protobuf.Timestamp timestamp = 4;
2647+
// The `bom-ref` of an object, such as a component, service, tool, organisational entity, or person that supplied the cited information.
2648+
// At least one of the "attributed_to" or "process" elements must be present.
2649+
optional string attributed_to = 5;
2650+
// The `bom-ref` to a process (such as a formula, workflow, task, or step) defined in the `formulation` section that executed or generated the attributed data.
2651+
// At least one of the "attributed_to" or "process" elements must be present.
2652+
optional string process = 6;
2653+
// An optional description or comment about the context or quality of the data attribution.
2654+
optional string note = 7;
2655+
}

schema/bom-1.7.schema.json

Lines changed: 80 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
"items": {"$ref": "#/definitions/formula"},
101101
"uniqueItems": true,
102102
"title": "Formulation",
103-
"description": "Describes how a component or service was manufactured or deployed. This is achieved through the use of formulas, workflows, tasks, and steps, which declare the precise steps to reproduce along with the observed formulas describing the steps which transpired in the manufacturing process."
103+
"description": "Describes the formulation of any referencable object within the BOM, including components, services, metadata, declarations, or the BOM itself. This may encompass how the object was created, assembled, deployed, tested, certified, or otherwise brought into its present form. Common examples include software build pipelines, deployment processes, AI/ML model training, cryptographic key generation or certification, and third-party audits. Processes are modeled using declared and observed formulas, composed of workflows, tasks, and individual steps."
104104
},
105105
"declarations": {
106106
"type": "object",
@@ -527,6 +527,13 @@
527527
}
528528
}
529529
},
530+
"citations": {
531+
"type": "array",
532+
"items": {"$ref": "#/definitions/citation"},
533+
"uniqueItems": true,
534+
"title": "Citations",
535+
"description": "A collection of attributions indicating which entity supplied information for specific fields within the BOM."
536+
},
530537
"properties": {
531538
"type": "array",
532539
"title": "Properties",
@@ -1900,6 +1907,7 @@
19001907
"patent",
19011908
"patent-family",
19021909
"patent-assertion",
1910+
"citation",
19031911
"other"
19041912
],
19051913
"meta:enum": {
@@ -1925,7 +1933,7 @@
19251933
"log": "A record of events that occurred in a computer system or application, such as problems, errors, or information on current operations.",
19261934
"configuration": "Parameters or settings that may be used by other components or services.",
19271935
"evidence": "Information used to substantiate a claim.",
1928-
"formulation": "Describes how a component or service was manufactured or deployed.",
1936+
"formulation": "Describes the formulation of any referencable object within the BOM, including components, services, metadata, declarations, or the BOM itself.",
19291937
"attestation": "Human or machine-readable statements containing facts, evidence, or testimony.",
19301938
"threat-model": "An enumeration of identified weaknesses, threats, and countermeasures, dataflow diagram (DFD), attack tree, and other supporting documentation in human-readable or machine-readable format.",
19311939
"adversary-model": "The defined assumptions, goals, and capabilities of an adversary.",
@@ -1948,6 +1956,7 @@
19481956
"patent": "References information about patents which may be defined in human-readable documents or in machine-readable formats such as CycloneDX or ST.96. For detailed patent 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).",
19491957
"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).",
19501958
"patent-assertion" : "References assertions made regarding patents associated with a component or service. Assertions distinguish between ownership, licensing, and other relevant interactions with patents.",
1959+
"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.",
19511960
"other": "Use this if no other types accurately describe the purpose of the external reference."
19521961
}
19531962
},
@@ -6105,6 +6114,75 @@
61056114
"$ref": "#/definitions/patentFilingDate"
61066115
}
61076116
}
6117+
},
6118+
"citation": {
6119+
"type": "object",
6120+
"title": "Citation",
6121+
"description": "Details a specific attribution of data within the BOM to a contributing entity or process.",
6122+
"additionalProperties": false,
6123+
"properties": {
6124+
"bom-ref": {
6125+
"$ref": "#/definitions/refType",
6126+
"title": "BOM Reference"
6127+
},
6128+
"pointers": {
6129+
"type": "array",
6130+
"items": {
6131+
"type": "string",
6132+
"title": "Field Reference",
6133+
"description": "A [JSON Pointer](https://datatracker.ietf.org/doc/html/rfc6901) identifying the BOM field to which the attribution applies.\nUsers of other serialisation formats (e.g. XML) shall use the JSON Pointer format to ensure consistent field referencing across representations."
6134+
},
6135+
"minItems": 1,
6136+
"title": "Field References",
6137+
"description": "One or more [JSON Pointers](https://datatracker.ietf.org/doc/html/rfc6901) identifying the BOM fields to which the attribution applies.\nExactly one of the \"pointers\" or \"expressions\" elements must be present."
6138+
},
6139+
"expressions": {
6140+
"type": "array",
6141+
"items": {
6142+
"type": "string",
6143+
"title": "Path Expression",
6144+
"description": "Specifies a path expression used to locate a value within a BOM. The expression syntax shall conform to the format of the BOM's serialisation.\nUse [JSONPath](https://datatracker.ietf.org/doc/html/rfc9535) for JSON, [XPath](https://www.w3.org/TR/xpath/) for XML, and default to JSONPath for Protocol Buffers unless otherwise specified.\nImplementers shall ensure the expression is valid within the context of the applicable serialisation format."
6145+
},
6146+
"minItems": 1,
6147+
"title": "Path Expressions",
6148+
"description": "One or more path expressions used to locate values within a BOM.\nExactly one of the \"pointers\" or \"expressions\" elements must be present."
6149+
},
6150+
"timestamp": {
6151+
"type": "string",
6152+
"format": "date-time",
6153+
"title": "Timestamp",
6154+
"description": "The date and time when the attribution was made or the information was supplied."
6155+
},
6156+
"attributedTo": {
6157+
"$ref": "#/definitions/refLinkType",
6158+
"title": "Attributed To",
6159+
"description": "The `bom-ref` of an object, such as a component, service, tool, organisational entity, or person that supplied the cited information.\nAt least one of the \"attributedTo\" or \"process\" elements must be present."
6160+
},
6161+
"process": {
6162+
"$ref": "#/definitions/refLinkType",
6163+
"title": "Process Reference",
6164+
"description": "The `bom-ref` to a process (such as a formula, workflow, task, or step) defined in the `formulation` section that executed or generated the attributed data.\nAt least one of the \"attributedTo\" or \"process\" elements must be present."
6165+
},
6166+
"note": {
6167+
"type": "string",
6168+
"title": "Note",
6169+
"description": "An optional description or comment about the context or quality of the data attribution."
6170+
},
6171+
"signature": {
6172+
"$ref": "#/definitions/signature",
6173+
"title": "Signature",
6174+
"description": "An optional digital signature verifying the authenticity or integrity of the attribution."
6175+
}
6176+
},
6177+
"required": ["timestamp"],
6178+
"anyOf": [
6179+
{ "required": ["attributedTo"] },
6180+
{ "required": ["process"] }
6181+
],
6182+
"oneOf": [
6183+
{ "required": ["pointers"] },
6184+
{ "required": ["expressions"] }
6185+
]
61086186
}
61096187
}
61106188
}

0 commit comments

Comments
 (0)