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

Investigate: SBOM creation for all app types #650

Closed
Tracked by #628
sophiewigmore opened this issue Feb 7, 2022 · 1 comment
Closed
Tracked by #628

Investigate: SBOM creation for all app types #650

sophiewigmore opened this issue Feb 7, 2022 · 1 comment

Comments

@sophiewigmore
Copy link
Member

sophiewigmore commented Feb 7, 2022

Context

To implement Paketo RFC0038, we are considering how to build out an SBOM for various types of apps.

Issue

The most straightforward path appears to be generating an SBOM for the packages that get installed via dotnet publish (dotnet publish buildpack) and store it in a CNB lifecycle-accessible file as outlined in the RFC.

However, it may be advantageous for us to consider how we might approach generating SBOMs for apps that don't use 'dotnet publish' such as self-contained apps and framework-dependent executables. In this set up, we may end up generating the SBOM based off of a *.deps.json file. There is plenty of discourse on the options we have in the related Syft issue (linked below)

This issue is to investigate the viability of generating an SBOM from various types of .NET Core apps (framework-dependent executables/deployments, self-contained apps, and source apps).

The outcome should be documented here and used to inform our approach to contributing to the Syft issue, if we choose to go that route.

Associated Issue

Currently, we use the Syft library in packit in order to generate SBOMs for other buildpack language families, such as Node.js. The outcome of this issue will inform our strategy on the mechanism to actually generate an SBOM for a .NET Core app.

anchore/syft#373 exists, which may be the most straightforward and logical place to approach solving this issue, so we can then consume the release and generate the SBOM in a similar fashion to our other buildpacks. A reasonable starting place could be to consider how Syft could gather package info from the *.deps.json file after the publish step, or the obj/project.assets.json file.

@sophiewigmore sophiewigmore changed the title Investigate: SBOM creation for FDE/self contained executable apps Investigate: SBOM creation for all app types Feb 7, 2022
@github-actions github-actions bot removed the sbom label Feb 16, 2022
@fg-j fg-j moved this to Todo in Paketo Workstreams Mar 8, 2022
@ForestEckhardt
Copy link
Contributor

This issue has spawned a tracking issue in the dotnet-execute buildpack to add SBOM scanning there. You can see that issue here paketo-buildpacks/dotnet-execute#317.

Repository owner moved this from 📝 Todo to ✅ Done in Paketo Workstreams Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants