DependencyTrack / dependency-track

Dependency-Track is an intelligent Component Analysis platform that allows organizations to identify and reduce risk in the software supply chain.
https://dependencytrack.org/
Apache License 2.0
2.43k stars 529 forks source link

BOM_PROCESSED & BOM_CONSUMED Alerts Not Sent When BOM Processing V2 Enabled #3880

Closed msymons closed 1 week ago

msymons commented 1 week ago

Current Behavior

Alerts that are configured for BOM_PROCESSED & BOM_CONSUMED are incredibly useful for automating synchronisation of BOMs between two Dependency-Track Instances (using alerts of type Webhook in this case).

Thanks to logging introduced in v4.10 once can see proof in the logs when the alerts are failing and also (if desired) when they are working fine.

Such alerts stop working when BOM Processing V2 is enabled. There is no logging at all.

Testing shows that it is not just Webhook alerts that fail... emails also do not get sent.

Steps to Reproduce

Expected Behavior

Alerts for BOM_PROCESSED & BOM_CONSUMED should work when BOM Processing V2 is enabled.

Dependency-Track Version

4.11.4

Dependency-Track Distribution

Container Image

Database Server

PostgreSQL

Database Server Version

14.x

Browser

Google Chrome

Checklist

nscuro commented 1 week ago

Fixed via #3877. The notifications are dispatched, but using the wrong scope (SYSTEM instead of PORTFOLIO). This causes the configured alert rules to be bypassed.