feat(api): a machine at a glance, and its open CVEs by component across its parts (#1026)
GET /api/v1/projects/{id}/overview: the machine's parts with their
supplier, open CVEs and last scan; across them the open and undecided
CVEs (and the undecided ones the supplier states something on), the
components each once and how many parts share, and the suppliers'
advisories. GET /api/v1/projects/{id}/cves: the open alerts of all parts,
grouped by component; a component in two parts is one group, its alerts
still decided per part. Both resolve the machine as the SBOM export does.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
This commit is contained in:
1 parent
b5a2dd93fd
commit
cbdd916a11
5 files changed
+474
-16
No files matched your search
@@ -514,6 +514,17 @@ and the components bought in from suppliers. `GET
|
||||
targets, has no SBOM (422). More than 100,000 components are refused (413),
|
||||
as for one target.
|
||||
|
||||
`GET /api/v1/projects/{id}/overview` shows the machine at a glance. It has
|
||||
each part with its supplier, open CVEs and last scan. Across the parts it
|
||||
gives the open CVEs by severity, the ones nobody has stated anything on yet
|
||||
(and how many of those the supplier states something on), the components
|
||||
(each once, and how many sit in more than one part) and the suppliers'
|
||||
advisories. `GET /api/v1/projects/{id}/cves` lists the machine's open CVEs
|
||||
grouped by component across its parts, with each alert naming its part
|
||||
(`repo_id`). A component in two parts is one group. Whether it affects the
|
||||
machine is still stated per part, because the vulnerable code may be reached
|
||||
in one part and not in the other.
|
||||
|
||||
## VEX: the status of each vulnerability
|
||||
|
||||
For each known vulnerability (CVE alert) of a target you state whether the
|
||||
|
||||
Reference in new issue
Block a user