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

Export SBOM contained in native-image #40630

Open
mhalbritter opened this issue May 7, 2024 · 3 comments
Open

Export SBOM contained in native-image #40630

mhalbritter opened this issue May 7, 2024 · 3 comments
Labels
status: blocked An issue that's blocked on an external project change type: enhancement A general enhancement
Milestone

Comments

@mhalbritter
Copy link
Contributor

GraalVM's native-image has a feature where it can create a SBOM on native image build time and embed it. You can then use the native-image-inspect to extract the SBOM from the native image.

The GraalVM team would be open to expose an API in the graal-sdk to get the SBOM directly without the need of the native-image-inspect. We could add support for that in our actuator SBOM endpoint.

@mhalbritter mhalbritter added the type: enhancement A general enhancement label May 7, 2024
@mhalbritter mhalbritter added this to the 3.x milestone May 7, 2024
@mhalbritter mhalbritter added status: blocked An issue that's blocked on an external project change for: team-meeting An issue we'd like to discuss as a team to make progress labels May 7, 2024
@philwebb philwebb removed the for: team-meeting An issue we'd like to discuss as a team to make progress label May 8, 2024
@mhalbritter
Copy link
Contributor Author

@fniephaus Would it be possible to expose the embedded SBOM via a standard Java mechanism, e.g. a readable resource on the classpath or some custom URL scheme? Then we wouldn't need to add the dependency on the GraalVM SDK and it would work right now with Boot 3.3.0-RC1.

@fniephaus
Copy link

@mhalbritter I think that's technically feasible. Can you give an example or two how SBOMs are otherwise accessible via classpath/modulepath or a custom URL scheme?

@mhalbritter
Copy link
Contributor Author

mhalbritter commented May 8, 2024

Sure. Take a look at this documentation here. If the SBOM would be on the classpath, you could just use classpath:sbom.json in the config to read it from /sbom.json.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: blocked An issue that's blocked on an external project change type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

3 participants