Skip to content

Commit 4e918f8

Browse files
Merge remote-tracking branch 'refs/remotes/origin/1.7-dev' into 1.7-dev
# Conflicts: # schema/bom-1.7.proto # schema/bom-1.7.schema.json # schema/bom-1.7.xsd
2 parents 3da8e47 + 636eb43 commit 4e918f8

File tree

6 files changed

+38
-41
lines changed

6 files changed

+38
-41
lines changed

schema/bom-1.7.proto

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -514,8 +514,8 @@ message Metadata {
514514
repeated Lifecycles lifecycles = 9;
515515
// The organization that created the BOM. Manufacturer is common in BOMs created through automated processes. BOMs created through manual means may have '.authors' instead.
516516
optional OrganizationalEntity manufacturer = 10;
517-
// The Traffic Light Protocol (TLP) classification that controls the sharing and distribution of the data that the BOM describes.
518-
optional Tlp distribution = 11;
517+
// The Traffic Light Protocol (TLP) classification that controls the sharing and distribution of the component that the BOM describes.
518+
optional TlpClassification distribution = 11;
519519
}
520520

521521
message Lifecycles {
@@ -677,18 +677,20 @@ message Swid {
677677
optional string url = 7;
678678
}
679679

680-
// The Traffic Light Protocol (TLP) classification for the data that the BOM describes. TLP is a classification system for identifying the potential risk associated with artefact, including whether it is subject to certain types of legal, financial, or technical threats. Refer to https://www.first.org/tlp/ for further information. The default classification is `TLP_CLEAR`
681-
enum Tlp {
682-
// buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX -- `TLP_CLEAR` is our fallback, the default.
683-
TLP_CLEAR = 0;
684-
// Limited distribution but can be shared within a community.
685-
TLP_GREEN = 1;
686-
// Limited distribution but can be shared within an organization and with clients
687-
TLP_AMBER = 2;
688-
// Limited distribution but can be shared within an organization.
689-
TLP_AMBER_AND_STRICT = 3;
690-
// Restricted distribution to individual recipients and must not be shared.
691-
TLP_RED = 4;
680+
// Traffic Light Protocol (TLP) is a classification system for identifying the potential risk associated with artefact, including whether it is subject to certain types of legal, financial, or technical threats. Refer to https://www.first.org/tlp/ for further information.
681+
//The default classification is "CLEAR"
682+
enum TlpClassification {
683+
// The information is not subject to any restrictions as regards the sharing.
684+
// buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX -- "CLEAR" is our fallback, the default.
685+
TLP_CLASSIFICATION_CLEAR = 0;
686+
// The information is subject to limited disclosure, and recipients can share it within their community but not via publicly accessible channels.
687+
TLP_CLASSIFICATION_GREEN = 1;
688+
// The information is subject to limited disclosure, and recipients can only share it on a need-to-know basis within their organization and with clients.
689+
TLP_CLASSIFICATION_AMBER = 2;
690+
// The information is subject to limited disclosure, and recipients can only share it on a need-to-know basis within their organization.
691+
TLP_CLASSIFICATION_AMBER_AND_STRICT = 3;
692+
// The information is subject to restricted distribution to individual recipients only and must not be shared.
693+
TLP_CLASSIFICATION_RED = 4;
692694
}
693695

694696
// Specifies a tool (manual or automated).

schema/bom-1.7.schema.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -721,23 +721,23 @@
721721
}
722722
},
723723
"tlpClassification": {
724+
"title": "Traffic Light Protocol (TLP) Classification",
725+
"description": "Traffic Light Protocol (TLP) is a classification system for identifying the potential risk associated with artefact, including whether it is subject to certain types of legal, financial, or technical threats. Refer to [https://www.first.org/tlp/](https://www.first.org/tlp/) for further information.\nThe default classification is \"CLEAR\"",
724726
"type" : "string",
725727
"default": "CLEAR",
726-
"title": "Traffic Light Protocol (TLP) Classification",
727-
"description": "The Traffic Light Protocol (TLP) classification for the data that the BOM describes. TLP is a classification system for identifying the potential risk associated with artefact, including whether it is subject to certain types of legal, financial, or technical threats. Refer to [https://www.first.org/tlp/](https://www.first.org/tlp/) for further information. The default classification is CLEAR",
728728
"enum": [
729+
"CLEAR",
730+
"GREEN",
729731
"AMBER",
730732
"AMBER_AND_STRICT",
731-
"GREEN",
732-
"RED",
733-
"CLEAR"
733+
"RED"
734734
],
735735
"meta:enum": {
736-
"AMBER": "The BOM is subject to limited disclosure, and recipients can only share the BOM on a need-to-know basis within their organization and with clients.",
737-
"AMBER_AND_STRICT": "The BOM is subject to limited disclosure, and recipients can only share the BOM on a need-to-know basis within their organization.",
738-
"GREEN": "The BOM is subject to limited disclosure, and recipients can share the BOM within their community but not via publicly accessible channels.",
739-
"RED": "The BOM is subject to restricted distribution to individual recipients only and must not be shared.",
740-
"CLEAR": "The BOM is not subject to any restrictions as regards the sharing of the information within the BOM."
736+
"CLEAR": "The information is not subject to any restrictions as regards the sharing.",
737+
"GREEN": "The information is subject to limited disclosure, and recipients can share it within their community but not via publicly accessible channels.",
738+
"AMBER": "The information is subject to limited disclosure, and recipients can only share it on a need-to-know basis within their organization and with clients.",
739+
"AMBER_AND_STRICT": "The information is subject to limited disclosure, and recipients can only share it on a need-to-know basis within their organization.",
740+
"RED": "The information is subject to restricted distribution to individual recipients only and must not be shared."
741741
}
742742
},
743743
"tool": {

schema/bom-1.7.xsd

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ limitations under the License.
256256
Formal registration is optional.</xs:documentation>
257257
</xs:annotation>
258258
</xs:element>
259-
<xs:element name="distribution" type="bom:tlpType" minOccurs="0" maxOccurs="1">
259+
<xs:element name="distribution" type="bom:tlpClassificationType" default="CLEAR" minOccurs="0" maxOccurs="1">
260260
<xs:annotation>
261261
<xs:documentation>The Traffic Light Protocol (TLP) classification that controls the sharing and distribution
262262
of the data that the BOM describes.</xs:documentation>
@@ -396,51 +396,46 @@ limitations under the License.
396396
</xs:anyAttribute>
397397
</xs:complexType>
398398

399-
<xs:simpleType name="tlpType" default="CLEAR">
399+
<xs:simpleType name="tlpClassificationType">
400400
<xs:annotation>
401401
<xs:documentation xml:lang="en">
402-
The Traffic Light Protocol (TLP) classification for the data that the BOM describes. TLP is a classification
403-
system for identifying the potential risk associated with artefact, including whether it is subject to certain
404-
types of legal, financial, or technical threats. Refer to https://www.first.org/tlp/ for further information.
405-
The default classification is CLEAR.
402+
Traffic Light Protocol (TLP) is a classification system for identifying the potential risk associated with artefact, including whether it is subject to certain types of legal, financial, or technical threats. Refer to https://www.first.org/tlp/ for further information.
403+
The default classification is "CLEAR"
406404
</xs:documentation>
407405
</xs:annotation>
408406
<xs:restriction base="xs:string">
409407
<xs:enumeration value="CLEAR">
410408
<xs:annotation>
411409
<xs:documentation>
412-
The BOM is not subject to any restrictions as regards the sharing of the information within the BOM.
410+
The information is not subject to any restrictions as regards the sharing.
413411
</xs:documentation>
414412
</xs:annotation>
415413
</xs:enumeration>
416414
<xs:enumeration value="GREEN">
417415
<xs:annotation>
418416
<xs:documentation>
419-
The BOM is subject to limited disclosure, and recipients can share the BOM within their community
420-
but not via publicly accessible channels.
417+
The information is subject to limited disclosure, and recipients can share it within their community but not via publicly accessible channels.
421418
</xs:documentation>
422419
</xs:annotation>
423420
</xs:enumeration>
424421
<xs:enumeration value="AMBER">
425422
<xs:annotation>
426423
<xs:documentation>
427-
The BOM is subject to limited disclosure, and recipients can only share the BOM on a need-to-know
428-
basis within their organization and with clients.
424+
The information is subject to limited disclosure, and recipients can only share it on a need-to-know basis within their organization and with clients.
429425
</xs:documentation>
430426
</xs:annotation>
431427
</xs:enumeration>
432428
<xs:enumeration value="AMBER_AND_STRICT">
433429
<xs:annotation>
434430
<xs:documentation>
435-
The BOM is subject to limited disclosure, and recipients can only share the BOM on a need-to-know
436-
basis within their organization.
431+
The information is subject to limited disclosure, and recipients can only share it on a need-to-know basis within their organization.
437432
</xs:documentation>
438433
</xs:annotation>
439434
</xs:enumeration>
440435
<xs:enumeration value="RED">
441436
<xs:annotation>
442437
<xs:documentation>
443-
The BOM is subject to restricted distribution to individual recipients only and must not be shared.
438+
The information is subject to restricted distribution to individual recipients only and must not be shared.
444439
</xs:documentation>
445440
</xs:annotation>
446441
</xs:enumeration>

tools/src/test/resources/1.7/valid-metadata-distribution-1.7.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
66
"version": 1,
77
"metadata": {
8-
"distribution": "CLEAR"
8+
"distribution": "RED"
99
},
1010
"components": []
1111
}

tools/src/test/resources/1.7/valid-metadata-distribution-1.7.textproto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ spec_version: "1.7"
55
version: 1
66
serial_number: "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79"
77
metadata {
8-
distribution: CLEAR
8+
distribution: TLP_CLASSIFICATION_RED
99
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<bom serialNumber="urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79" version="1" xmlns="http://cyclonedx.org/schema/bom/1.7">
33
<metadata>
4-
<distribution>CLEAR</distribution>
4+
<distribution>RED</distribution>
55
</metadata>
66
<components />
77
</bom>

0 commit comments

Comments
 (0)