Firmware in the pilot arrives as a Firmwerk bundle, not as an image we build ourselves (the Nix build is disabled in MVP-0.4). There is no import path today, and the firmware SBOM is never CVE-matched. This issue adds the import endpoint, normalisation, CVE matching and VEX consumption. It covers #135 as import (the cloud pull API stays in R1).
There is no customer data yet (decided 2026-09-20), so the test bundle is synthetic: generate a real Firmwerk bundle with the Firmwerk CLI over crates/firmwerk-repro/tests/fixtures/blinky-make. The importer must be tolerant — unknown document types or fields are recorded as unsupported on the scan run instead of failing the import.
Auth: a user JWT or a registry API key with scope pruefwerk:ingest, so firmwerk or CI can push.
Normalise into SbomEntry (purl, CPE, hashes, source=firmwerk); the artifact sha256 is the reconciliation key.
Run CVE matching on imported and firmware SBOMs — today the firmware SBOM is never matched.
Apply imported OpenVEX not_affected statements to suppress CVEs, showing the justification. This consumes VEX; generation stays in R1 (#104/#105).
Store the attestation; show "attested" when the DSSE signature verifies against Firmwerk's key, otherwise store it unverified.
scan_matrix.rs:154-212: stop advertising FirmwareStatic/MobileStatic as default-on; show "imported from Firmwerk" instead.
Firmwerk side (small, platform/firmwerk): firmwerk push --pruefwerk <url> --target <id>, or a documented curl for the MVP.
Acceptance
The generated blinky-make bundle imports over both auth modes and lands as SbomEntry records with source=firmwerk.
Imported and firmware SBOMs are CVE-matched, with a golden baseline for the expected hits.
An OpenVEX not_affected statement suppresses the matching CVE and the justification is visible in the UI.
A valid DSSE signature shows "attested"; an invalid or missing one stores the attestation unverified without failing the import.
The scan matrix no longer offers FirmwareStatic/MobileStatic as default-on.
firmwerk push (or the documented curl) works against stage end to end.
Unknown document types are recorded as unsupported on the scan run.
## Goal
Firmware in the pilot arrives as a **Firmwerk bundle**, not as an image we build ourselves (the Nix build is disabled in MVP-0.4). There is no import path today, and the firmware SBOM is never CVE-matched. This issue adds the import endpoint, normalisation, CVE matching and VEX consumption. It covers **#135** as *import* (the cloud pull API stays in R1).
**There is no customer data yet (decided 2026-09-20), so the test bundle is synthetic:** generate a real Firmwerk bundle with the Firmwerk CLI over `crates/firmwerk-repro/tests/fixtures/blinky-make`. The importer must be tolerant — unknown document types or fields are **recorded as `unsupported` on the scan run instead of failing the import**.
## What to change
- `POST /api/v1/targets/{id}/evidence` (multipart) accepting CycloneDX 1.4–1.6 / SPDX 2.3 + OpenVEX + DSSE/in-toto.
- Auth: a user JWT **or** a registry API key with scope `pruefwerk:ingest`, so `firmwerk` or CI can push.
- Normalise into `SbomEntry` (purl, CPE, hashes, `source=firmwerk`); the artifact sha256 is the reconciliation key.
- **Run CVE matching on imported and firmware SBOMs** — today the firmware SBOM is never matched.
- Apply imported OpenVEX `not_affected` statements to suppress CVEs, showing the justification. This *consumes* VEX; generation stays in R1 (#104/#105).
- Store the attestation; show "attested" when the DSSE signature verifies against Firmwerk's key, otherwise store it unverified.
- `scan_matrix.rs:154-212`: stop advertising FirmwareStatic/MobileStatic as default-on; show "imported from Firmwerk" instead.
- Firmwerk side (small, `platform/firmwerk`): `firmwerk push --pruefwerk <url> --target <id>`, or a documented curl for the MVP.
## Acceptance
- [ ] The generated blinky-make bundle imports over both auth modes and lands as `SbomEntry` records with `source=firmwerk`.
- [ ] Imported and firmware SBOMs are CVE-matched, with a golden baseline for the expected hits.
- [ ] An OpenVEX `not_affected` statement suppresses the matching CVE and the justification is visible in the UI.
- [ ] A valid DSSE signature shows "attested"; an invalid or missing one stores the attestation unverified without failing the import.
- [ ] The scan matrix no longer offers FirmwareStatic/MobileStatic as default-on.
- [ ] `firmwerk push` (or the documented curl) works against stage end to end.
- [ ] Unknown document types are recorded as `unsupported` on the scan run.
sharang
added this to the Production MVP milestone 2026-09-20 20:18:26 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Goal
Firmware in the pilot arrives as a Firmwerk bundle, not as an image we build ourselves (the Nix build is disabled in MVP-0.4). There is no import path today, and the firmware SBOM is never CVE-matched. This issue adds the import endpoint, normalisation, CVE matching and VEX consumption. It covers #135 as import (the cloud pull API stays in R1).
There is no customer data yet (decided 2026-09-20), so the test bundle is synthetic: generate a real Firmwerk bundle with the Firmwerk CLI over
crates/firmwerk-repro/tests/fixtures/blinky-make. The importer must be tolerant — unknown document types or fields are recorded asunsupportedon the scan run instead of failing the import.What to change
POST /api/v1/targets/{id}/evidence(multipart) accepting CycloneDX 1.4–1.6 / SPDX 2.3 + OpenVEX + DSSE/in-toto.pruefwerk:ingest, sofirmwerkor CI can push.SbomEntry(purl, CPE, hashes,source=firmwerk); the artifact sha256 is the reconciliation key.not_affectedstatements to suppress CVEs, showing the justification. This consumes VEX; generation stays in R1 (#104/#105).scan_matrix.rs:154-212: stop advertising FirmwareStatic/MobileStatic as default-on; show "imported from Firmwerk" instead.platform/firmwerk):firmwerk push --pruefwerk <url> --target <id>, or a documented curl for the MVP.Acceptance
SbomEntryrecords withsource=firmwerk.not_affectedstatement suppresses the matching CVE and the justification is visible in the UI.firmwerk push(or the documented curl) works against stage end to end.unsupportedon the scan run.