feat(platform): count open vulnerabilities in the portal's target list #568

Merged
sharang merged 2 commits from feat/platform-targets-open-vulnerabilities into main 2026-10-14 18:20:56 +00:00
Owner

The portal's project page showed "keine offenen Befunde" for bp-test/log4shell on staging, although log4j-core 2.25.3 has three open advisories (CVE-2026-34477/-34478/-34480, fixed in 2.25.4). The platform target list counted only the findings collection; CVE alerts live in cve_alerts.

  • PlatformTarget.open_vulnerabilities: CVE alerts with no resolved_at and a VEX status other than not_affected / fixed, one aggregation for all listed targets (run in parallel with the findings count).
  • The count helpers are shared; unit tests for the filter and the per-target counts.
  • Additive field: the registry and portal pick it up in follow-up PRs (tenant-registry, portal).

Checks: cargo test -p compliance-agent --lib target_count_tests, cargo fmt, cargo clippy -p compliance-agent --all-targets -D warnings.

🤖 Generated with Claude Code

https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB

The portal's project page showed "keine offenen Befunde" for `bp-test/log4shell` on staging, although log4j-core 2.25.3 has three open advisories (CVE-2026-34477/-34478/-34480, fixed in 2.25.4). The platform target list counted only the `findings` collection; CVE alerts live in `cve_alerts`. - `PlatformTarget.open_vulnerabilities`: CVE alerts with no `resolved_at` and a VEX status other than `not_affected` / `fixed`, one aggregation for all listed targets (run in parallel with the findings count). - The count helpers are shared; unit tests for the filter and the per-target counts. - Additive field: the registry and portal pick it up in follow-up PRs (tenant-registry, portal). Checks: `cargo test -p compliance-agent --lib target_count_tests`, `cargo fmt`, `cargo clippy -p compliance-agent --all-targets -D warnings`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
sharang added 1 commit 2026-10-14 16:13:15 +00:00
feat(platform): count open vulnerabilities in the portal's target list
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Failing after 4m40s
4378730afb
The target list the portal shows per project (GET /api/v1/platform/tenants/
{id}/targets) counted only open findings. A target whose only problems are
known vulnerabilities in its components (e.g. log4j-core 2.25.3 with three
later advisories) read "no open findings".

Each target now also carries open_vulnerabilities: its CVE alerts that are
not resolved and not assessed not_affected or fixed in VEX, counted in one
aggregation like the findings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
sharang added 1 commit 2026-10-14 18:08:53 +00:00
chore(deps): rustls 0.23.46 (RUSTSEC-2026-0346..0349)
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 11m21s
c1e61e757a
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
sharang merged commit 43d8ff1589 into main 2026-10-14 18:20:56 +00:00
sharang deleted branch feat/platform-targets-open-vulnerabilities 2026-10-14 18:20:56 +00:00
Sign in to join this conversation.