feat(offers): an open offer names the version accepting delivers (#1028) (#1068)
CI / Check (push) Skipped
CI / Agent integration (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy Dashboard (push) Skipped
CI / Deploy MCP (push) Skipped
CI / Deploy Docs (push) Successful in 1m7s
CI / Deploy Agent (push) Successful in 5m40s

This commit was merged in pull request #1068.
This commit is contained in:
sharang committed 2026-11-19 21:56:04 +00:00
1 parent a252096810
commit 7478ff57df
5 files changed
+139 -15

No files matched your search

+7 -3
View File
@@ -234,7 +234,10 @@ workspaces. The customer answers it, and the supplier sees the answer
- `GET /api/v1/sbom-offers` lists the offers, open ones first. Each names
the supplier's workspace and its product, and nothing else of the
supplier's.
supplier's. An open offer also names the version accepting delivers at
once and how many components it lists (`offered_label`,
`offered_components`); each version the supplier publishes while it is
open updates them.
- `POST /api/v1/sbom-offers/{id}/accept` accepts an offer. With
`{"target_id"}` it goes into an existing supplier component; otherwise
into a new one with `{"name", "project_ids"}`, named after the product
@@ -259,8 +262,9 @@ SBOM, as an upload does, sets the component's supplier version to its label,
and starts a scan. The connection is checked again before each delivery, so
nothing arrives after it or the release has ended. The customer sees the
version last delivered on the offer (`delivered_label`, `delivered_at`), and
the supplier sees it on the release. The same content is never delivered
twice.
the supplier sees it on the release. A version is never delivered twice.
Each version is its own document, so a new version is delivered, and
scanned, even when its components have not changed.
Deleting either side ends the offer. If the supplier deletes the released
target, the customer's offer ends. If the customer deletes the component it