feat(csaf): count a target's supplier advisories, with the provider's last read (#1025)

The target editor shows how many of the supplier's CSAF advisories are
kept and when its provider was last read. The newest fetched_at only
says when an advisory last changed, and a provider that cannot be read
would look like one without advisories, so each refresh now keeps a
status per provider (supplier_csaf_providers: checked_at, reachable).

GET /api/v1/targets/{id}/supplier-advisories returns the count and that
status, or null for a target without a supplier CSAF provider.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
This commit is contained in:
Sharang ParnerkarandClaude Opus 5.5 committed 2026-11-17 10:30:03 +01:00
1 parent 0790810afb
commit adf8af5392
6 files changed
+193 -1

No files matched your search

+3 -1
View File
@@ -129,7 +129,9 @@ go through the same CVE groups, VEX statements and ENISA drafts.
workspace's components. A scan matches them against the product itself by
the supplier's name and version for it, and against its components by purl.
A matching advisory raises a CVE alert with the supplier's remediation and
fixed versions.
fixed versions. `GET /api/v1/targets/{id}/supplier-advisories` returns how
many of the supplier's advisories are kept, when its provider was last
read, and whether it could be read then.
- **What the supplier states about a vulnerability:** a CycloneDX SBOM can
carry the supplier's VEX (`vulnerabilities[].analysis`: state,
justification, detail, response). Prüfwerk reads it for each component and