feat(dashboard): bought-in components with their supplier's SBOM and VEX (#1025) #1035

Merged
sharang merged 2 commits from feat/supplier-dashboard into main 2026-11-17 10:13:59 +00:00
Owner

Part of #1025. This is the third of three PRs for the approved supplier mockup (https://claude.ai/artifact/KN3xqurmCJd9QXziKQB3Qc).

It's stacked on #1034, which is stacked on #1033. I'll rebase onto main after they're merged.

What

1 · Wizard, Typ

  • New "Herkunft" choice: "Selbst entwickelt" or "Von einem Zulieferer gekauft".
  • A bought-in component gets supplier fields: name, product, version and the CSAF provider (https only, checked as you type).
  • "Weiter" stays disabled until the supplier has a name.

2 · Wizard, Artefakte

  • The "Zugekaufte Komponente" hint, with "Zulieferer-SBOM" listed first and preselected.
  • Each SBOM is checked by the agent as it's added (#1033):
    • readable: a badge with "CycloneDX 1.5 · 212 Komponenten · 9 VEX-Aussagen";
    • refused: a red row with the reason in German or English. A refused file isn't uploaded and doesn't count as an artifact.
  • "Weiter" waits while a check is running. There's no password field for SBOMs.
  • The header names what's being onboarded ("… · von ").

3 · Prüfobjekt bearbeiten

  • New Zulieferer section, with the advisory status from #1034:
    • "14 Hinweise gelesen · zuletzt vor 5 Std. · nur für Ihren Arbeitsbereich";
    • "noch nicht gelesen" before the first read;
    • "nicht erreichbar" when the provider can't be read.
  • The SBOM row shows format, components, supplier statements and the upload date. An SBOM uploaded before #1033 has none of these and shows without them.
  • "Zulieferer-SBOM" is an upload kind, preselected for a target with a supplier.
  • Upload refusals are worded by their code.
  • The supplier is saved only when it changed, so an unrelated save doesn't refetch advisories.

4 · CVEs & VEX

  • A "Lieferant sagt" column, shown only where the supplier states something. It holds a pill with the status and the justification, or the supplier's short text, or "—".
  • The supplier's own advisory is labelled "Hinweis des Zulieferers". An alert on the product itself is labelled "Produkt des Zulieferers".
  • "Bewerten" opens the supplier's statement beside the editor.
  • "In meine Aussage übernehmen" fills the form and stores nothing until Save:
    • status: the supplier's;
    • justification: only where CycloneDX and OpenVEX mean the same (code_not_present, code_not_reachable). Otherwise it's left blank for the person to choose;
    • text: the supplier's words, marked "Laut Lieferant: …".
  • A footnote explains "—" and components without a purl.

Also

  • The wizard stepper rules used --border-color, --bg-tertiary and --status-success, none of which exist. Done steps are now green and the current step is indigo.
  • Docs: docs/guide/sbom.md.

Differences from the mockup

  • Editor replace note: it says that "Verlauf" shows which vulnerabilities came or went. The mockup said "Komponenten und Schwachstellen", but Verlauf lists CVE changes only.
  • Supplier statement panel: it names the SBOM file, but not the supplier's name.
  • States not in the mockup: "noch nicht gelesen" and "nicht erreichbar" in the editor; "wird gelesen …" while an SBOM is checked.
  • Unchanged layout: the name and type fields in the editor and wizard keep their current layout.
  • Aliases: the VEX table still doesn't show GHSA aliases under the CVE, as before.

Checks

  • clippy, server and web (--all-targets -D warnings), both clean.
  • cargo test -p compliance-dashboard: 199 pass. New tests cover:
    • the copy-over mapping (and that the copied form passes the agent's checks);
    • supplier-product detection;
    • supplier fields and https;
    • the upload facts and BSON dates;
    • refusal codes through the server function.
  • Local run: I ran the agent and dashboard locally with a fictional bought-in target, an uploaded SBOM, a CSV and seeded alerts. I compared each of the four screens with the mockup in Playwright screenshots. They're kept locally and not attached.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9

Part of #1025. This is the third of three PRs for the approved supplier mockup (https://claude.ai/artifact/KN3xqurmCJd9QXziKQB3Qc). It's stacked on #1034, which is stacked on #1033. I'll rebase onto main after they're merged. ## What **1 · Wizard, Typ** - New "Herkunft" choice: "Selbst entwickelt" or "Von einem Zulieferer gekauft". - A bought-in component gets supplier fields: name, product, version and the CSAF provider (https only, checked as you type). - "Weiter" stays disabled until the supplier has a name. **2 · Wizard, Artefakte** - The "Zugekaufte Komponente" hint, with "Zulieferer-SBOM" listed first and preselected. - Each SBOM is checked by the agent as it's added (#1033): - readable: a badge with "CycloneDX 1.5 · 212 Komponenten · 9 VEX-Aussagen"; - refused: a red row with the reason in German or English. A refused file isn't uploaded and doesn't count as an artifact. - "Weiter" waits while a check is running. There's no password field for SBOMs. - The header names what's being onboarded ("… · von <Zulieferer>"). **3 · Prüfobjekt bearbeiten** - New Zulieferer section, with the advisory status from #1034: - "14 Hinweise gelesen · zuletzt vor 5 Std. · nur für Ihren Arbeitsbereich"; - "noch nicht gelesen" before the first read; - "nicht erreichbar" when the provider can't be read. - The SBOM row shows format, components, supplier statements and the upload date. An SBOM uploaded before #1033 has none of these and shows without them. - "Zulieferer-SBOM" is an upload kind, preselected for a target with a supplier. - Upload refusals are worded by their code. - The supplier is saved only when it changed, so an unrelated save doesn't refetch advisories. **4 · CVEs & VEX** - A "Lieferant sagt" column, shown only where the supplier states something. It holds a pill with the status and the justification, or the supplier's short text, or "—". - The supplier's own advisory is labelled "Hinweis des Zulieferers". An alert on the product itself is labelled "Produkt des Zulieferers". - "Bewerten" opens the supplier's statement beside the editor. - **"In meine Aussage übernehmen"** fills the form and stores nothing until Save: - status: the supplier's; - justification: only where CycloneDX and OpenVEX mean the same (`code_not_present`, `code_not_reachable`). Otherwise it's left blank for the person to choose; - text: the supplier's words, marked "Laut Lieferant: …". - A footnote explains "—" and components without a purl. **Also** - The wizard stepper rules used `--border-color`, `--bg-tertiary` and `--status-success`, none of which exist. Done steps are now green and the current step is indigo. - Docs: `docs/guide/sbom.md`. ## Differences from the mockup - **Editor replace note:** it says that "Verlauf" shows which vulnerabilities came or went. The mockup said "Komponenten und Schwachstellen", but Verlauf lists CVE changes only. - **Supplier statement panel:** it names the SBOM file, but not the supplier's name. - **States not in the mockup:** "noch nicht gelesen" and "nicht erreichbar" in the editor; "wird gelesen …" while an SBOM is checked. - **Unchanged layout:** the name and type fields in the editor and wizard keep their current layout. - **Aliases:** the VEX table still doesn't show GHSA aliases under the CVE, as before. ## Checks - clippy, server and web (`--all-targets -D warnings`), both clean. - `cargo test -p compliance-dashboard`: 199 pass. New tests cover: - the copy-over mapping (and that the copied form passes the agent's checks); - supplier-product detection; - supplier fields and https; - the upload facts and BSON dates; - refusal codes through the server function. - **Local run:** I ran the agent and dashboard locally with a fictional bought-in target, an uploaded SBOM, a CSV and seeded alerts. I compared each of the four screens with the mockup in Playwright screenshots. They're kept locally and not attached. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
sharang changed target branch from feat/supplier-advisory-status to main 2026-11-17 09:30:05 +00:00
sharang added 2 commits 2026-11-17 09:51:53 +00:00
The approved supplier mockup, in four places:

- Wizard, step 1: "Herkunft" (self-developed or bought from a supplier);
  a bought-in component names its supplier, product, version and CSAF
  provider (https only).
- Wizard, step 2: a supplier SBOM is checked by the agent when it is
  added, shows its format, components and statements, or is refused
  with the reason in German or English and not uploaded. The header
  says what is onboarded; the stepper marks done and current steps
  (its rules used tokens that do not exist).
- Target editor: the supplier section with the advisory count and last
  read (or not yet read, or unreachable), the SBOM's facts and upload
  date, and the supplier SBOM as an upload kind (no archive password).
  The supplier is saved only when it changed.
- CVEs & VEX: a "Lieferant sagt" column where a supplier states
  something, the supplier's advisory and product marked, and the
  statement beside the editor. "In meine Aussage übernehmen" fills the
  form with the supplier's status, an equal justification where one
  exists, and its words marked as its own; nothing is stored until
  Save.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
fix(dashboard): a refused supplier SBOM keeps its reason however the error wraps it (#1025)
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Agent integration (pull_request) Successful in 4m45s
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 20m53s
4205815945
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
sharang force-pushed feat/supplier-dashboard from b6200e51cc to 4205815945 2026-11-17 09:51:53 +00:00 Compare
sharang merged commit b5a2dd93fd into main 2026-11-17 10:13:59 +00:00
sharang deleted branch feat/supplier-dashboard 2026-11-17 10:13:59 +00:00
Sign in to join this conversation.