dependency-track icon indicating copy to clipboard operation
dependency-track copied to clipboard

Allow filtering for internal components in SBOM export

Open flemminglau opened this issue 2 years ago • 2 comments

Current Behavior

Currently when doing an SBOM Export all project components are included in the export.

However DT has an attribute of components identifying them as being internal.

In some contexts it makes most sense to exclude such components from the SBOM. E.g. when providing the SBOM for OSS component License Validation by the legal department. In other contexts where the SBOM is intended to declare OSS components and not list any vendor proprietary components.

Proposed Behavior

We suggest that a variant of the SBOM export function is added where the SBOM does not include the components marked Internal.

Checklist

flemminglau avatar Oct 17 '23 09:10 flemminglau

Great suggestion!

Some additional notes:

  • Excluding components may break the dependency graph
  • The omission of components must be communicated in the BOM, e.g. by:
    • Adding a property that states that internal components are not includded
    • Using compositions to express completeness

nscuro avatar Oct 17 '23 09:10 nscuro

Maybe as an alternative somehow the internal components could be marked using the author, publisher or some other field. Just to ensure that the information that a module is internal is somehow available in the export.

flemminglau avatar Feb 15 '24 07:02 flemminglau