Skip to content

Add worker to scan newly ingested advisories

Why are we doing this work

After a new advisory is ingested, it needs to be matched against the SBOM component corpus in order to find vulnerable components.

This issue covers the follwing:

  • Publish an EventStore event on ingestion.
  • React to that event by trigger a new scan worker.
  • Execute the scan service from that worker.

An advisory is ingested after being added to the advisory database, or after being updated. The scan worker and underlying scan service shouldn't assume that the advisory being processed is a new one.

Relevant links

Non-functional requirements

  • Documentation:
  • Feature flag: dependency_scanning_on_advisory_ingestion
  • Performance:
  • Testing:

Implementation plan

Tasks are all backend:

Verification steps

Edited by Fabien Catteau