feat(dashboard): CVE trend charts on the overview and per repo, repos grouped by project (#952)
- GET /api/v1/cve-history: open CVEs with a fixed version per day (UTC)
by severity, for the tenant, one target or one project's targets, with
the open critical/high findings of the same scope; per-target series
on request. Computed from created_at, resolved_at and the VEX
statement's time, no snapshots.
- GET /api/v1/targets/{id}/top-updates: the package updates that close
the most of a target's open CVEs with a fix.
- Overview: KPI tiles with the 30-day change, a stacked bar chart of the
last 30 days, and the targets as cards grouped by portal project with
sparklines (instead of the CRA-by-target list).
- Target page: the same tiles and chart for the target, and a
"Wo handeln" table.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d274c68ecb
commit
f85d1e72fd
16 files changed
+1815
-172
No files matched your search
@@ -176,6 +176,8 @@ The agent exposes a REST API on port 3001:
|
||||
|--------|----------|-------------|
|
||||
| `GET` | `/api/v1/health` | Health check |
|
||||
| `GET` | `/api/v1/stats/overview` | Summary statistics and trends |
|
||||
| `GET` | `/api/v1/cve-history?days=30[&target=][&project=][&per_target=true]` | Open CVEs with a fixed version per day (UTC) by severity, for the tenant, a target or a project, with the open critical/high findings |
|
||||
| `GET` | `/api/v1/targets/{id}/top-updates` | The package updates that close the most of a target's open CVEs with a fix |
|
||||
| `GET` | `/api/v1/targets` | List targets (Prüfobjekte), each with its newest scan run |
|
||||
| `POST` | `/api/v1/targets` | Create a target |
|
||||
| `GET` / `PATCH` / `DELETE` | `/api/v1/targets/{id}` | Read, update (name, type, artifacts, `scan_config` incl. `issue_tracker`) or delete a target |
|
||||
|
||||
Reference in new issue
Block a user