fix(csaf): vendor remediations named through product groups (#515) #523

Merged
sharang merged 1 commits from fix/515-csaf-groups into main 2026-10-06 17:23:23 +00:00
Owner

Found while pre-verifying test plan check 36 locally on the build stage runs (8ea3731).

Bug

The CSAF advisories match: on the synthetic CODESYS target, 25 alerts gain an advisory link and fixed versions. But every remediation came out empty. CERT@VDE's vendors name a remediation's products through group_ids, which point into product_tree.product_groups (e.g. CSAFGID-1001 → CSAFPID-51001…51003). The reader only took product_ids, so no remediation matched the affected product.

Fix

  • csaf_ingest: remediations resolve group_ids through the product groups.
  • csaf_ingest::PARSER_VERSION = 2 records how an advisory was read.
  • csaf_feed: stored rows carry parser. A row read by an older version counts as unknown, so the next refresh re-fetches and re-reads it; stage's already-indexed advisories are corrected without manual steps. Providers are read in order, CERT@VDE's vendors before Siemens, so CODESYS's 36 are re-read in the first run (cap 400). Siemens follows over the next runs.
  • The synthetic VDE-shaped fixture now names its remediation through a group, like the real advisories. The parser test and the matcher test (remediation vendor_fix: Update to version 3.5.22.40.) cover it.

Checks

  • core csaf_ingest and agent csaf_* tests pass.
  • clippy -D warnings for core and agent.

I'll re-check on stage once it's deployed. The re-read happens in the refresh 2 minutes after the agent starts; check 36 then shows the remediation on hover. Stage only; no tag.

🤖 Generated with Claude Code

https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p

Found while pre-verifying test plan check 36 locally on the build stage runs (8ea3731). ## Bug The CSAF advisories match: on the synthetic CODESYS target, 25 alerts gain an advisory link and fixed versions. But **every remediation came out empty**. CERT@VDE's vendors name a remediation's products through `group_ids`, which point into `product_tree.product_groups` (e.g. `CSAFGID-1001` → `CSAFPID-51001…51003`). The reader only took `product_ids`, so no remediation matched the affected product. ## Fix - `csaf_ingest`: remediations resolve `group_ids` through the product groups. - `csaf_ingest::PARSER_VERSION = 2` records how an advisory was read. - `csaf_feed`: stored rows carry `parser`. A row read by an older version counts as unknown, so the **next refresh re-fetches and re-reads it**; stage's already-indexed advisories are corrected without manual steps. Providers are read in order, CERT@VDE's vendors before Siemens, so CODESYS's 36 are re-read in the first run (cap 400). Siemens follows over the next runs. - The synthetic VDE-shaped fixture now names its remediation through a group, like the real advisories. The parser test and the matcher test (remediation `vendor_fix: Update to version 3.5.22.40.`) cover it. ## Checks - core `csaf_ingest` and agent `csaf_*` tests pass. - clippy `-D warnings` for core and agent. I'll re-check on stage once it's deployed. The re-read happens in the refresh 2 minutes after the agent starts; check 36 then shows the remediation on hover. Stage only; no tag. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
sharang added 1 commit 2026-10-06 17:10:58 +00:00
fix(csaf): vendor remediations named through product groups (#515)
CI / Detect Changes (pull_request) Skipped
CI / Check (push) 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 11m57s
048fdfa552
Found in the pre-verification of the staging test plan (check 36): every
CODESYS alert from a CSAF advisory came without the vendor's remediation.
CERT@VDE's vendors name a remediation's products through `group_ids`
(product_tree.product_groups), and the reader only took `product_ids`.

- csaf_ingest: remediations resolve their group_ids through the product
  groups. PARSER_VERSION (2) records how advisories were read.
- csaf_feed: stored rows carry the parser version; a row read by an older
  one counts as unknown, so the next refresh fetches and reads it again
  (CERT@VDE's providers come before Siemens, so CODESYS's 36 are re-read in
  the first run).
- The synthetic VDE-shaped fixture names its remediation through a group,
  as the real ones do; the matcher test's remediation assertion now covers
  it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
sharang merged commit 90d8d072a4 into main 2026-10-06 17:23:23 +00:00
Sign in to join this conversation.