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

BOM file for coretto java rpm #368

Open
michmazur opened this issue Jul 18, 2024 · 3 comments
Open

BOM file for coretto java rpm #368

michmazur opened this issue Jul 18, 2024 · 3 comments

Comments

@michmazur
Copy link

Hi,

Our security team requires defining versions for all 3rd party dependencies used by our Docker images. There is an internal tool used for scanning, and it has problems with Coretto 11 RPM distribution.

I want to have the option to download/generate a BOM file during build in GitHub Actions and attach it to the build Docker file

Question:
Where can I find or generate a full BOM (SPDX format) file for the RPM distribution?

Snippet from Dockerfile:

# Install Java Coretto 11
RUN rpm --import https://yum.corretto.aws/corretto.key
RUN curl -L -o /etc/yum.repos.d/corretto.repo https://yum.corretto.aws/corretto.repo
RUN dnf install -y java-11-amazon-corretto-devel
RUN java --version

The base image is Red Hat 9

@lutkerd
Copy link
Contributor

lutkerd commented Jul 18, 2024

Corretto does not currently provide an SBOM, we can look into what that would entail for all of the build types and platforms supported.

In the meantime, all of the license and version info should be in the legal directory of the RPM file.

@michmazur
Copy link
Author

Unfortunately, the "legal" catalog is not enough. Unknown versions are in the "jmod" directory

Like:

  • xmlsec-java usr/lib/jvm/java-11-amazon-corretto/jmods/java.xml.crypto.jmod/classes
  • xalan usr/lib/jvm/java-11-amazon-corretto/jmods/java.xml.jmod/classes/com/sun/org/apache
  • asm usr/lib/jvm/java-11-amazon-corretto/jmods/java.base.jmod/classes/jdk/internal/org/objectweb/asm

@lutkerd
Copy link
Contributor

lutkerd commented Aug 8, 2024

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

No branches or pull requests

2 participants