feat(sbom): check a supplier SBOM before a target holds it (#1025)
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 / Agent integration (pull_request) Successful in 5m13s
CI / Check (pull_request) Successful in 21m58s

The wizard stages files before the target exists, so it could only show
a refused supplier SBOM after creating the target. POST
/api/v1/supplier-sboms/check reads the file as an upload would, stores
nothing, and returns its format, components and supplier statements, or
the refusal with a code for the dashboard to word in German or English.

An upload keeps the same three numbers with the artifact (as detected
facts) and records when the file arrived (ingested_at), for the target
editor. The check has its own 20 MiB body limit, not the 2 MiB of a JSON
route.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
This commit is contained in:
Sharang ParnerkarandClaude Opus 5.5 committed 2026-11-17 09:02:38 +01:00
1 parent af76e516a1
commit 187b1c35c6
6 files changed
+316 -90

No files matched your search

+7
View File
@@ -111,6 +111,13 @@ go through the same CVE groups, VEX statements and ENISA drafts.
An SBOM that lists nothing is refused rather than read as empty: read as
empty, it would make every known CVE of the component look fixed.
The same check runs when the wizard adds the file, before the target
exists (`POST /api/v1/supplier-sboms/check`). It stores nothing and returns
the format, the number of components and the number of supplier
statements, or the refusal with a `code` (`unknown_format`, `malformed`,
`empty`, `too_many_components`, `too_large`). An upload keeps the same
three numbers with the artifact, for the target editor to show.
- **A new version from the supplier:** upload it to the same target. It
replaces the previous one.
- **The supplier and its advisories:** a target can name its supplier: the