feat(supplier): the portal invites a supplier for one component (#1027) (#1047)
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 1m8s
CI / Deploy Agent (push) Successful in 5m51s

This commit was merged in pull request #1047.
This commit is contained in:
sharang committed 2026-11-18 11:32:59 +00:00
1 parent 31b8cb9d37
commit dc14c77e84
8 files changed
+705

No files matched your search

+20
View File
@@ -129,6 +129,26 @@ form, and it is stored only when you save it as your own statement.
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.
- **Inviting the supplier to upload it:** in the portal, you can invite a
supplier by e-mail to upload the SBOM of one supplier component. The link
is valid for 90 days and also takes the component's later versions. You
can withdraw it at any time. The portal holds the link and sends the mail.
Prüfwerk keeps each invite with your workspace's data, including the
supplier's address, so the workspace export and erasure cover it. Deleting
the target deletes its invites. The portal calls the platform API with its
service token:
- `POST /api/v1/platform/tenants/{id}/supplier-invites` with
`{"target_id", "email", "invited_by"}` creates an invite. It answers
`201` with its `id`, and `422` for a target without a supplier.
- `GET /api/v1/platform/tenants/{id}/supplier-invites[?target=<id>]` lists
the invites, newest first. Each one's `state` is `active`, `expired` or
`withdrawn`.
- `POST …/supplier-invites/{invite}/withdraw` with `{"withdrawn_by"}`
withdraws an invite. A second withdrawal keeps the first.
`GET /api/v1/platform/tenants/{id}/targets` names each supplier
component's `supplier`: these are the targets a supplier can be invited
for.
- **The supplier and its advisories:** a target can name its supplier: the
supplier's name, its name for the product, the version in use, and its CSAF
provider (`supplier` in the target API, with `provider-metadata.json` as an