Make use of "Last BOM Import" as input for Policy engine
Current Behavior:
As of Dependency-Track v4.6.0, the policy engine does not yet support checking for anything relating to age.
Proposed Behavior:
Use "Last BOM Import" date an input for the Policy engine. This way, one would be able to define freshness rules and alert on them if need be. This is totally separate from checking for components being out of date (or just old)... this is checking for possible pipeline problems...
- BOM not updated because the project has been archived and no one updated Dependency-Track
- BOM update because of changes in build process. ie, the BOM is supposed to be uploaded - but something has broken.
This suggestion is not mine... it comes from @syalioune in https://github.com/DependencyTrack/frontend/issues/147
We discussed this in Slack already for a bit, just adding this here for completeness:
Before we implement this, we will need a way to apply policies on the project level, not for components. Otherwise every component within a project will get a policy violation when the "Last BOM Import" policy is triggered, which would be too much noise.
project-level policies are targetted for 5.x. Therefore, this enhancement can also be targetted for 5.x (as it cannot be done in 4.x)