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

jam create-stack: Produce SBOMs for stacks in a standard SBOM format #78

Closed
fg-j opened this issue Jun 13, 2022 · 6 comments
Closed

jam create-stack: Produce SBOMs for stacks in a standard SBOM format #78

fg-j opened this issue Jun 13, 2022 · 6 comments

Comments

@fg-j
Copy link

fg-j commented Jun 13, 2022

While working on paketo-buildpacks/jammy-tiny-stack#2, it was brought up that the current mechanism for generating package receipts (using dpkg -l) is brittle; it won't work for non-Ubuntu stacks. It'd be better for Paketo's stacks automation – and probably for stack consumers – if the list of packages installed in the stack were generated in a standard SBOM format (e.g. CycloneDX) and returned as an output of jam create-stack.

@fg-j fg-j moved this to ❓Not scoped in Paketo Workstreams Jun 13, 2022
@fg-j fg-j moved this from ❓Not scoped to 🕵️‍♀️ Exploring in Paketo Workstreams Jun 15, 2022
@fg-j fg-j self-assigned this Jun 15, 2022
@fg-j
Copy link
Author

fg-j commented Jun 15, 2022

I find myself wondering if jam create-stack should take on this responsibility or if it's just as easy for stack creators to use a tool like syft to generate a package receipt themselves.

Maybe it's prudent to avoid SBOM implementation lock-in within jam itself. @ryanmoran What are your thoughts on that?

@ryanmoran
Copy link
Member

I only thought it would make sense for jam create-stack to emit an SBOM because its already capable of generating them for the stack itself. That code already lives in the command and adding this feature would mostly be about piping that SBOM output into a file onto the user's machine.

@fg-j
Copy link
Author

fg-j commented Jun 15, 2022

Good point. I forgot about that feature. That's currently "hidden," right? You have to set an undocumented env var to get an SBOM attached to the image. I guess the question is -- do we want to expose the SBOM as a full-fledged feature or are we trying to move toward a future where we can stop importing syft?

@ryanmoran
Copy link
Member

There's no near-term timeline where I see us being able to stop importing syft into this command. At the very least we will be supporting it in Bionic stacks until March of next year.

@fg-j fg-j removed their assignment Jun 17, 2022
@fg-j fg-j moved this from 🕵️‍♀️ Exploring to ❓Not scoped in Paketo Workstreams Jun 17, 2022
@ryanmoran ryanmoran moved this from ❓Not scoped to 📝 Todo in Paketo Workstreams Jul 11, 2022
@fg-j fg-j moved this from 📝 Todo to 🚧 In Progress in Paketo Workstreams Aug 4, 2022
@fg-j fg-j self-assigned this Aug 4, 2022
@fg-j fg-j moved this from 🚧 In Progress to 📝 Todo in Paketo Workstreams Aug 9, 2022
@fg-j fg-j removed their assignment Aug 9, 2022
@fg-j fg-j removed this from Paketo Workstreams Oct 3, 2022
@ForestEckhardt
Copy link
Contributor

@paketo-buildpacks/stacks-maintainers What is the status of this?

@robdimsdale
Copy link
Member

This issue is stale - I'm going to close it. If/when we encounter the underlying request (i.e. either we receive requests to create an SBOM in CDX format, or we can't successfully create non-ubuntu stacks) we can re-open.

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

4 participants