fix(cve): notifications and tracker issues respect VEX not_affected and fixed #555

Merged
sharang merged 3 commits from fix/notifications-respect-vex into main 2026-10-09 17:07:38 +00:00
3 Commits
Author SHA1 Message Date
Sharang ParnerkarandClaude Opus 5.5 e0b9ebee75 fix(cve): the ISSUE_AUTOCLOSE summary line is logged on every scan, also with nothing to close
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 8m35s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
2026-10-09 18:57:43 +02:00
Sharang ParnerkarandClaude Opus 5.5 f552a6a72a feat(cve): closing CVE issues settled by VEX behind ISSUE_AUTOCLOSE (off by default)
No new notification or issue for a not_affected/fixed CVE stays always on.
Closing an issue that is already open now depends on ISSUE_AUTOCLOSE
(off | dry_run | on, unknown -> off with a warning), like ISSUE_CATCHUP:
dry_run logs one line per target with the counts per VEX status and makes
no tracker call; on closes at most 20 per target and scan (every Gitea
request waits for its instance's slot) and logs closed/deferred/failed.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
2026-10-09 18:53:52 +02:00
Sharang ParnerkarandClaude Opus 5.5 f15d1e5066 fix(cve): notifications and tracker issues respect VEX not_affected and fixed
A CVE alert whose VEX statement is not_affected or fixed (by a person, by
the scan from Yocto CVE_STATUS / CVE: patches, or imported OpenVEX) still
raised a notification and opened or kept a tracker issue.

- core: CveAlert::is_resolved_by_vex (via VexStatus::resolves), plus
  OpenVEX names for statuses and justifications.
- vex_lifecycle::attach_stored_vex gives the scan's alerts (which carry no
  VEX) the statement stored on the alert.
- cve_notify::notify_new_cves: one notification path for the scans (code and
  PLC control-app) and the hourly CVE monitor; skips settled alerts.
- The code pipeline now notifies after the Yocto statements are applied, so a
  recipe's not_affected suppresses the notification on the first scan too.
- cve_issues: no issue for a settled CVE; an open one is closed with a
  comment naming the VEX status and justification (not gated on a complete
  scan); a withdrawn statement reopens the same issue.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
2026-10-09 18:53:52 +02:00