Skip to content
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

Reproducible serialNumber generation #420

Closed
ppkarwasz opened this issue Nov 4, 2023 · 1 comment
Closed

Reproducible serialNumber generation #420

ppkarwasz opened this issue Nov 4, 2023 · 1 comment

Comments

@ppkarwasz
Copy link
Contributor

In order to allow the usage of BOM-links from external CycloneDX documents, the generated SBOM should always include a serialNumber.

Currently this is only generated if the reproducibility flag is disabled. We could improve the generation algorithm to generate a deterministic serialNumber. The generating algorithm might depend on:

  • cryptographic hashes of a Maven module artifacts (SBOM excluded, obviously). We can restrict this to the hash of the POM file and main artifact,
  • for the aggregate BOM, it should also consider the serial numbers/hashes of its child modules.
ppkarwasz added a commit to ppkarwasz/logging-parent that referenced this issue Nov 4, 2023
The `cyclonedx-maven-plugin` has still some limitations that prevent it
from publishing a reproducible `serialNumber`
(CycloneDX/cyclonedx-maven-plugin#420) and adding a reference to a VEX
document (CycloneDX/cyclonedx-maven-plugin#419 and
CycloneDX/cyclonedx-maven-plugin#421).

This PR provides a temporary workaround that will allow us to produce an
CycloneDX (only the XML version), enhanced with these two elements.
vy added a commit to apache/logging-parent that referenced this issue Nov 6, 2023
* Add `serialNumber` and VEX references to generate SBOMs

The `cyclonedx-maven-plugin` has still some limitations that prevent it
from publishing a reproducible `serialNumber`
(CycloneDX/cyclonedx-maven-plugin#420) and adding a reference to a VEX
document (CycloneDX/cyclonedx-maven-plugin#419 and
CycloneDX/cyclonedx-maven-plugin#421).

This PR provides a temporary workaround that will allow us to produce an
CycloneDX (only the XML version), enhanced with these two elements.

---------

Co-authored-by: Volkan Yazıcı <volkan@yazi.ci>
vy added a commit to apache/logging-parent that referenced this issue Nov 6, 2023
* Add `serialNumber` and VEX references to generate SBOMs

The `cyclonedx-maven-plugin` has still some limitations that prevent it
from publishing a reproducible `serialNumber`
(CycloneDX/cyclonedx-maven-plugin#420) and adding a reference to a VEX
document (CycloneDX/cyclonedx-maven-plugin#419 and
CycloneDX/cyclonedx-maven-plugin#421).

This PR provides a temporary workaround that will allow us to produce an
CycloneDX (only the XML version), enhanced with these two elements.

---------

Co-authored-by: Volkan Yazıcı <volkan@yazi.ci>
vy added a commit to vy/cyclonedx-maven-plugin that referenced this issue Nov 9, 2023
vy added a commit to vy/cyclonedx-maven-plugin that referenced this issue Nov 9, 2023
vy added a commit to vy/cyclonedx-maven-plugin that referenced this issue Nov 9, 2023
Signed-off-by: Volkan Yazıcı <volkan@yazi.ci>
hboutemy pushed a commit that referenced this issue Dec 9, 2023
Signed-off-by: Volkan Yazıcı <volkan@yazi.ci>
hboutemy added a commit that referenced this issue Dec 9, 2023
hboutemy added a commit that referenced this issue Dec 9, 2023
Signed-off-by: Hervé Boutemy <hboutemy@apache.org>
hboutemy added a commit that referenced this issue Dec 9, 2023
Signed-off-by: Hervé Boutemy <hboutemy@apache.org>
@hboutemy
Copy link
Contributor

hboutemy commented Jan 14, 2024

done in #425 (updated in #441)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants