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

[Bug]: Java package not recognized by SBOM creators #646

Open
sithmein opened this issue Sep 2, 2024 · 3 comments
Open

[Bug]: Java package not recognized by SBOM creators #646

sithmein opened this issue Sep 2, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@sithmein
Copy link

sithmein commented Sep 2, 2024

Please add the exact image (with tag) that you are using

eclipse-temurin:17-jre-alpine

Please add the version of Docker you are running

24.0.5

What happened?

We are using eclipse-temurin:17-jre-alpine as base for many images. We are creating SBOMs (CycloneDX) for all our images using trivy. We discovered that these SBOMs do not include the JRE (but all other APKs from the base image). The reason is likely that the JRE is not installed as an APK but extracted from a Tar archive.
The question I have is whether you are aware of any SBOM creators that can still detect the JRE. Or are there any plans for providing a complete SBOM for the Docker image which we can then merge with our additions?

Relevant log output

No response

@sithmein sithmein added the bug Something isn't working label Sep 2, 2024
@karianna
Copy link
Contributor

karianna commented Sep 2, 2024

@gdams - I think you and tianon were looking at this space recently

@gdams
Copy link
Member

gdams commented Sep 12, 2024

I have a feeling that anchore/syft#3217 might help here, It appears to add detection support for Temurin to Syft which can be used to generate an SBOM

@sithmein
Copy link
Author

sithmein commented Sep 13, 2024

Jep, syft is indeed able to detect the JRE (even if it is added as Oracle). However, we have to use trivy because it adds metadata that is required for subsequent vulnerability scanning with trivy. I'll try to make the trivy developers aware of this problem.
aquasecurity/trivy#7499

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants