Enhancement request: Retain transitive relationship between packages when importing SBOM
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 30/100
Research direction
Start with the attached sbom-1-4-formatted.cdx.json and exported dejacode_beta-systems_product_dejacode-transitive-dependencies-3_0.0.1.cdx.json files, comparing the dependency relationships that are flattened during import and export. Done means the product-scoped mapping preserves transitive and intentionally excluded dependencies so a re-export retains the imported hierarchy.
Written by the indexing model from the issue text.
Description
Is your enhancement request related to a problem? Please describe.
DejaCode allows to load packages associated with a product from an SBOM. A modern SBOM that fulfills requirements such as BSI TR-03183 will have to list transitive dependencies, meaning that not just the immediate dependencies used by the product are included, but also the ones they depend on and so on until all indirect dependencies are listed as well. When DejaCode imports the packages from the SBOM it only associates them directly with the product, all information about the transitive nature between packages is completely lost. The SBOM exported from DejaCode will list all dependencies as if they were direct dependencies of the product. As such it is not an accurate SBOM and does not fulfill current regulations.
What are the benefits of the requested enhancement?
The exported SBOM would provide accurate information. Currently, it does not reflect the actual status of the dependencies and as such is not an SBOM that fulfills regulation such as the Cyber Resilience Act or NTIA Minimum Elements for a Software Bill of Materials persuant to Executive Order 14028 as well as other national standards/technical guidelines.
Describe the solution you would like
It would be highly important that DejaCode retains the relationships between packages by storing the hierarchy in the context of the product. The exported SBOM for the product should retain the hierarchy that was provided when importing the SBOM.
The indirect dependencies for a package may seem fixed for a particular package version that is a direct dependency. However, there are uses cases where some of the transitive dependencies could get intentionally excluded, especially for Java software. Thus my recommendation would be to have this mapping in the product and not in the package itself.
Additional notes
Example data for an SBOM imported into DejaCode and the result after exporting it. Notice that dependencies has turned into a flat list.
Imported SBOM:
Exported SBOM:
- Dominant language
- Python
- Stars
- 53
- Forks
- 32
- Avg merge
- 16h 44m
- Merged PRs (30d)
- 10
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from aboutcode-org/dejacode
-
Unify product Clone, "Save as new" and admin "Save as new" into a single clone featurePossibly taken @d4rshnn claimed this 10 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 45/100
aboutcode-org/dejacode#603 ·
Maintainers usually reply within 1 day
-
design needed enhancement
Difficulty 3/5 1-2 days Newbie friendliness 62/100
aboutcode-org/dejacode#561 · 3 comments ·
Maintainers usually reply within 1 day
-
Enhancement request: Refine License Category - Copyleft LimitedMay be free again @hesa claimed this 138 days ago, and no pull request is open. Opendesign needed enhancement
aboutcode-org/dejacode#499 · 13 comments · 3 assignees ·
Maintainers usually reply within 1 day
-
BUG: Product overview page splits product with many versions across pagesMay be free again A pull request for this issue was closed without being merged. Openbug design needed enhancement
Difficulty 3/5 1-2 days Newbie friendliness 45/100
aboutcode-org/dejacode#460 ·
Maintainers usually reply within 1 day
-
design needed
Difficulty 5/5 Over a week Newbie friendliness 20/100
aboutcode-org/dejacode#452 · 2 comments ·
Maintainers usually reply within 1 day
All issues in aboutcode-org/dejacode
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
mohanraj00/entelos#200 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
-
sweep
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
bketelsen/truenas-mcp#77 ·
Maintainers usually reply within 1 day
-
Console writes URL credentials to the local log, though AGENTS.md says secrets never reach diskOpen
Difficulty 1/5 Under an hour Newbie friendliness 86/100
sandbox-quantum/switch#2163 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
openedx/xblock-lti-consumer#765 ·
Maintainers usually reply within 1 day