feat(supplier): the supplier uploads an SBOM through its invite (#1027) #1048

Merged
sharang merged 2 commits from feat/supplier-invite-uploads into main 2026-11-18 11:55:19 +00:00
2 Commits
Author SHA1 Message Date
Sharang ParnerkarandClaude Opus 5.5 4ee44af4d2 fix(supplier): check through an invite, keep the customer's CSAF provider (#1027)
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 5m25s
CI / Check (pull_request) Successful in 21m43s
- `POST …/supplier-invites/{invite}/sboms/check`: the supplier page checks a
  file before it is uploaded, as the wizard does; nothing is stored.
- A CSAF provider from the supplier is set only when the component has none.
- A component whose supplier was removed takes no upload (404).
- A registry answer without a status limits nothing, as for a person's
  request; tested against a fake registry for every status.
- `attach_upload` takes the file name with the upload (five parameters).
- Tests: the same file name twice keeps the new file, an accepted upload
  starts a scan.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
2026-11-18 12:33:13 +01:00
Sharang ParnerkarandClaude Opus 5.5 de856bd5ba feat(supplier): the supplier uploads an SBOM through its invite (#1027)
The second half of the phase 3 API: what the portal's supplier page shows
and the upload through an invite.

- `GET …/supplier-invites/{invite}/supplier-view`: the component by the
  customer's name for it, the link's end, the CSAF provider and the uploads
  through this invite, nothing else of the workspace.
- `POST …/supplier-invites/{invite}/sboms` (multipart `file`, optional
  `csaf_provider`): takes the customer's own upload path, now
  `onboarding::attach_upload`, so it is read and refused the same way, becomes
  the component's SBOM, replacing the one before, and starts a scan. A CSAF
  provider given with it (https only) becomes the component's.
- Every upload is recorded in `supplier_uploads` with its invite, time, file
  name and outcome; a refused one keeps its code. The invite list carries each
  invite's uploads and which one is current.
- An expired or withdrawn invite answers 410 and records nothing; a workspace
  the registry has read-only, halted or archived answers 403; an invite takes
  at most 20 uploads a day (429).
- Deleting a target deletes its uploads with its invites.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
2026-11-18 12:33:13 +01:00