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

Add configuration to disable capturing any file info in SBOM #3132

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

tomersein
Copy link
Contributor

@tomersein tomersein commented Aug 17, 2024

Adds files.enable configuration such that, when set to false, no entries are populated in the .files section of the SBOM.

Closes #2989

tomersein and others added 2 commits November 12, 2024 10:01
@wagoodman wagoodman changed the title fix none in files Add configuration to disable capturing any file info in SBOM Nov 12, 2024
Signed-off-by: Alex Goodman <[email protected]>
@wagoodman
Copy link
Contributor

force push was to rebase / solve merge conflicts

Signed-off-by: Alex Goodman <[email protected]>
for _, relationship := range s.Relationships {
for _, coordinates := range extractCoordinates(relationship) {
set.Add(coordinates)
if set.Size() > 0 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the downside with this is that we are adding relationships already from pkg-to-file or file-to-file and here we're silently dropping only the nodes, but not changing the relationships. I think this part needs a little more thought -- that is, if there is an edge in the SBOM that describes the file directly, then we either need to include that file or drop the relationship.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi! sounds right.. however I am not sure how to solve it.
please let me know how to proceed further so this PR can be merged in the future :)

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

Successfully merging this pull request may close these issues.

Setting file.metadata.selection to none still results in files in the SBOM
2 participants