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
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
This commit is contained in:
1 parent
de856bd5ba
commit
4ee44af4d2
5 files changed
+245
-33
No files matched your search
+7
-2
@@ -149,18 +149,23 @@ form, and it is stored only when you save it as your own statement.
|
||||
page shows: the component by your name for it, until when the link is
|
||||
valid, the CSAF provider, and the uploads through this invite. Nothing
|
||||
else of your workspace is in it.
|
||||
- `POST …/supplier-invites/{invite}/sboms/check` checks a file the way
|
||||
the wizard does, before it is uploaded. It stores and records nothing.
|
||||
- `POST …/supplier-invites/{invite}/sboms` (multipart: `file`, optionally
|
||||
`csaf_provider`) is the supplier's upload. It is read and refused exactly
|
||||
as your own upload is. An accepted SBOM becomes the component's SBOM,
|
||||
replacing the previous one, and starts a scan, which counts like your
|
||||
own scans. A CSAF provider given with it becomes the component's.
|
||||
own scans. A CSAF provider given with it becomes the component's only
|
||||
if the component has none. One you set stays, and the upload shows what
|
||||
the supplier gave.
|
||||
|
||||
Every upload is recorded with its invite, its time, the file name, and
|
||||
whether it was accepted. A refused one keeps its `code`: `too_large`,
|
||||
`too_many_components`, `empty`, `unknown_format`, `malformed`, or
|
||||
`csaf_provider` for one that is not https. The supplier sees its uploads,
|
||||
and each invite in the list carries them. An expired or withdrawn invite
|
||||
answers `410` with `expired` or `withdrawn`, and records nothing. A
|
||||
answers `410` with `expired` or `withdrawn`, and records nothing. So does
|
||||
an invite for a component whose supplier you removed, with `404`. A
|
||||
workspace that takes no changes answers `403` (`read_only`). An invite
|
||||
takes at most 20 uploads a day; more answer `429` (`too_many_uploads`).
|
||||
|
||||
|
||||
Reference in new issue
Block a user