- `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
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