SBOM for custom jlink JRE #66
Replies: 2 comments 4 replies
-
I am also curious how the selection of the version is managed 🤔 |
Beta Was this translation helpful? Give feedback.
-
Sorry for the delayed response. I suspect what's happening is this.
I'm guessing that you're not seeing it listed at runtime because there is a gap here. We add SBOM entries for dependencies that are installed, but there is no direct dependency for what gets installed into the runtime environment. What's installed is a dynamically generated subset of the JDK dependency. I'm not sure it makes sense to have the JDK dependency listed at runtime, because it doesn't technically exist and it could create false positives for scanners. At the same time, it's hard to describe what actually gets installed into the runtime container because it's dynamically added and user-customizable. I don't think I have a good answer for how this should work, so I'd really like to get feedback on what everyone thinks. How would you all like this to work? Do you know of any prior art in this area? Perhaps other tools that generate SBOMs, how do those handle |
Beta Was this translation helpful? Give feedback.
-
Using Spring Boot and its Maven plugin to create an image with a custom JRE I'm a bit puzzled.
From what I can tell so far this image is working as intended.
However I can't seem to find the JVM version in the SBOM and I believe that a Paketo buildback should have added it somewhere.
According to the build log:
According to paketo-buildpacks/amazon-corretto/buildpack.toml:
I've downloaded the SBOM files using the
pack
CLI as per https://paketo.io/docs/howto/sbom/#access-syft-cyclonedx-and-spdx-sbomsNow I would have expected to find the precise JVM version (11.0.18.10.1 / 11.0.18.10 / 11.0.18) somewhere.
However the closest matches are
layers/sbom/launch/paketo-buildpacks_executable-jar/sbom.syft.json
:I'm still reading up on SBOMs in general and the different formats, but none of those versions seem to be my buildpack runtime JRE version?
Am I looking in the wrong places, is my specific use-case with custom jlink JRE unsupported for SBOM generation and if so - why?
Beta Was this translation helpful? Give feedback.
All reactions