-
-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add support for TLP marking in metadata (fixes #595) #604
base: 1.7-dev
Are you sure you want to change the base?
Conversation
2d456e1
to
5d5201f
Compare
e7f1f82
to
1fd2561
Compare
Signed-off-by: anthonyharrison <[email protected]>
Signed-off-by: anthonyharrison <[email protected]>
CycloneDX#595) Signed-off-by: anthonyharrison <[email protected]>
a767891
to
55425e5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you add some documentation here and there, and properly set the default values?
for backwards compatibility reasons, i would not set "CLEAR" as the default value. clean means a decision actively was made, right? in JSON, this would mean no default is defined, and the property is optional. |
I see CLEAR as the default when the user makes no choice as the user is more likely to explicitly state one of the other values (which indicates that he has thought about the constraints as regards sharing the BOM). Personally, I would prefer to see all BOMs to have the TLP value explicitly stated but that is possibly too much to expect at this stage. |
…d documentation (fixes CycloneDX#595) Signed-off-by: anthonyharrison <[email protected]>
Signed-off-by: Jan Kowalleck <[email protected]>
tools/src/test/resources/1.7/valid-metadata-distribution-1.7.textproto
Outdated
Show resolved
Hide resolved
I'll try to fix the open issues ASAP |
Signed-off-by: Jan Kowalleck <[email protected]>
Signed-off-by: Jan Kowalleck <[email protected]>
schema/bom-1.7.proto
Outdated
@@ -514,6 +514,8 @@ message Metadata { | |||
repeated Lifecycles lifecycles = 9; | |||
// The organization that created the BOM. Manufacturer is common in BOMs created through automated processes. BOMs created through manual means may have '.authors' instead. | |||
optional OrganizationalEntity manufacturer = 10; | |||
// The Traffic Light Protocol (TLP) classification that controls the sharing and distribution of the component that the BOM describes. | |||
optional Tlp distribution = 11; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Traffic Light Protocol (TLP) classification that controls the sharing and distribution of the component that the BOM describes.
wait what? was the original ticket not about the distribution of the BOM?
why is it now about the distribution of the component???
if this was really about the distribution of the component that the BOM describes,
than the appropriate field would not be $.metadata.someshting
but $.metadata.component.something
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@anthonyharrison could you revisit this annotation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jkowalleck I was using the term component to mean SBOM, HBOM, etc and not a software component. Is there a recommended way of saying this as the TLP applies to all types of BOM?
My proposed change would be 'The Traffic Light Protocol (TLP) classification that controls the sharing and distribution of the BOM'
Signed-off-by: Jan Kowalleck <[email protected]>
…on (fixes CycloneDX#595) Signed-off-by: anthonyharrison <[email protected]>
# Conflicts: # schema/bom-1.7.proto # schema/bom-1.7.schema.json # schema/bom-1.7.xsd
…on (fixes CycloneDX#595) Signed-off-by: anthonyharrison <[email protected]>
As discussed in ticket #595, this PR adds TLP marking in the BOM metadata.
This PR superseeds #603