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

Support CEL based Expression for Detecting Internal Components

Open VinodAnandan opened this issue 1 year ago • 2 comments

Current Behavior

Currently, Dependency-Track lacks only support for detecting internal components using component name, group based regex.

Proposed Behavior

Integrate CEL-based expression support into Dependency-Track to allow users to define and use expressions for detecting internal components within their projects. These expressions could also access other component properties like purl, cpe, swid, etc., as well as project properties and tags. To maintain backward compatibility, existing regex can be migrated into CEL-based expressions.

Checklist

VinodAnandan avatar Jul 02 '24 07:07 VinodAnandan

as well as project properties and tags

Any use cases that come to mind for this? Can / should a component's "internal" status really depend on project-level information?

nscuro avatar Jul 02 '24 09:07 nscuro

Any use cases that come to mind for this? Can / should a component's "internal" status really depend on project-level information?

I was considering improving the accuracy of the detection, especially in cases where there are known projects with forked components or projects that contain components that don't comply with the regex patterns.

VinodAnandan avatar Jul 02 '24 10:07 VinodAnandan