Supplier SBOMs: tenants release SBOMs to each other after a two-way handshake (phase 4) #1028

Open
opened 2026-11-16 21:32:48 +00:00 by sharang · 4 comments
Owner

Part of the supplier SBOM epic #1029. Later: not in the current round (decided 2026-11-16). Needs the tenant registry and the portal.

Goal

A supplier that is itself a Breakpilot tenant releases the SBOMs of chosen products to chosen customer tenants. The customer gets each new version without anyone sending a file.

Scope (sketch)

  • No tenant directory (GDPR): no tenant can find or list other tenants.
  • A connection needs a two-way handshake. One side invites the other by code or e-mail, and the other accepts. Either side can end it.
  • What gets released: per product, the supplier chooses which connected customers receive its SBOMs, and optionally its VEX statements.
  • What the customer sees: only what was released, never the supplier's findings, code or other products. Ending the release stops new versions; what was received stays with the customer as a supplied SBOM.
  • Audit: releases and receipts are recorded on both sides.

Done when

To be detailed when the work is planned.

Part of the supplier SBOM epic #1029. **Later:** not in the current round (decided 2026-11-16). Needs the tenant registry and the portal. ## Goal A supplier that is itself a Breakpilot tenant releases the SBOMs of chosen products to chosen customer tenants. The customer gets each new version without anyone sending a file. ## Scope (sketch) - **No tenant directory** (GDPR): no tenant can find or list other tenants. - **A connection needs a two-way handshake.** One side invites the other by code or e-mail, and the other accepts. Either side can end it. - **What gets released:** per product, the supplier chooses which connected customers receive its SBOMs, and optionally its VEX statements. - **What the customer sees:** only what was released, never the supplier's findings, code or other products. Ending the release stops new versions; what was received stays with the customer as a supplied SBOM. - **Audit:** releases and receipts are recorded on both sides. ## Done when To be detailed when the work is planned.
sharang added the enhancement label 2026-11-16 21:32:48 +00:00
Author
Owner

Plan (2026-11-18)

Decided (the user, 2026-11-18)

  • Who builds what: Prüfwerk builds its own side and writes the specs for the registry and the portal. Their owners build those parts from issues in their repos.
  • The connection: the two-way handshake lives in the tenant registry. It is product-neutral, so other products can use it later. Releases and receipts are kept in each tenant's own Prüfwerk database.
  • The release unit: a supplier tenant releases one target. A customer gets a new version only when the supplier publishes it, not after every scan. Each delivery starts a scan that the customer pays for.
  • Scope: SBOM only. VEX follows after #1015. A supplier's VEX that is already inside the published SBOM is read as today (supplier_vex), never as the customer's own statement.

The connection (registry)

  • Inviting: tenant A creates an invite code, and tenant B enters it.
    • The code is high-entropy, single-use and stored hashed. It expires after 14 days (proposed).
    • Redeeming is rate-limited. An unknown, used or expired code gets the same answer.
    • Neither side learns anything about the other until B has accepted. After that, each side sees the other's display name.
  • Ending: either side can end the connection at any time. Terminating or erasing a tenant ends its connections.
  • No directory: no list or search of tenants, ever.
  • For products: an internal endpoint answers whether two tenants are actively connected and lists a tenant's active connections (connection id and the other side's display name).
  • Audit: connecting, accepting and ending are recorded for both tenants.

Releasing (Prüfwerk, supplier tenant S)

  • Releasing: on a target, S releases to a connected tenant. This is a release record in S's database (sbom_releases).
  • Publishing a version: S publishes a version of the target, with a label such as 1.4.0. Prüfwerk builds the SBOM from the target's latest scan as a stripped CycloneDX: per component, the name, version, purl, CPE, licences and hashes, with metadata.component set to the target, the version label and S's display name. Nothing else crosses:
    • no vulnerabilities;
    • no provenance (source paths, images);
    • no licence-review properties;
    • no internal ids, repository URLs or findings.
  • Ending a release: this stops new versions. What C has received stays with C.

Receiving (Prüfwerk, customer tenant C)

  • Consent per release: a new release first appears to C as an offer. Accepting it creates a billable target, so it needs C's consent. C either:
    • accepts it into a new supplier component (a target with supplier set to S's display name), or into an existing supplier component;
    • or declines it.
  • Delivery: each published version goes to every accepted release whose connection is still active and whose two tenants both take changes.
    • It goes through the same path as an upload (attach_upload): read and refused as an upload is, it replaces the previous SBOM and starts a scan.
    • It is recorded like a supplier upload, with the release it came through.
    • An unchanged version (same content hash) is skipped, so it costs no scan.
  • What C sees: only what was released. It never sees S's findings, code, other targets or scans.
  • Deployment: S and C are tenants of the same Prüfwerk deployment, so a delivery is a write from one tenant database to another inside one process. Delivery between deployments is not supported.

Audit

Every release, publish, offer, acceptance, decline, delivery and end is recorded for both tenants.

Order of work

  1. This plan. Then the registry issue (connections API spec) and the portal issue (the connections page).
  2. Mockups, approved before any UI is built:
    • the portal's connections page;
    • in the Prüfwerk dashboard: releasing a target, publishing a version, and offered releases at the customer.
  3. Prüfwerk: the registry client for connections, with a fake registry in the tests.
  4. Prüfwerk: releases, publishing and the stripped export, on the supplier side.
  5. Prüfwerk: offers, accepting or declining, and delivery, on the customer side.
  6. Prüfwerk: the dashboard screens, after the mockup.

Done when

  • Two tenants connect by code. Neither can find or list the other, or any other tenant.
  • A supplier releases a target to a connected customer and publishes a version. The customer accepts the offer, and the version becomes the SBOM of its supplier component, with a scan.
  • A later published version replaces it. An unchanged one starts no scan.
  • A third tenant receives nothing. An ended release or connection delivers nothing more, and what was received stays.
  • Nothing but the stripped SBOM crosses: no findings, vulnerabilities, paths or internal ids.
  • Both sides see the record of every release, delivery and end.
## Plan (2026-11-18) ### Decided (the user, 2026-11-18) - **Who builds what:** Prüfwerk builds its own side and writes the specs for the registry and the portal. Their owners build those parts from issues in their repos. - **The connection:** the two-way handshake lives in the **tenant registry**. It is product-neutral, so other products can use it later. Releases and receipts are kept in each tenant's own Prüfwerk database. - **The release unit:** a supplier tenant releases **one target**. A customer gets a new version only when the supplier **publishes** it, not after every scan. Each delivery starts a scan that the customer pays for. - **Scope:** **SBOM only.** VEX follows after #1015. A supplier's VEX that is already inside the published SBOM is read as today (`supplier_vex`), never as the customer's own statement. ### The connection (registry) - **Inviting:** tenant A creates an invite code, and tenant B enters it. - The code is high-entropy, single-use and stored hashed. It expires after 14 days (proposed). - Redeeming is rate-limited. An unknown, used or expired code gets the same answer. - Neither side learns anything about the other until B has accepted. After that, each side sees the other's display name. - **Ending:** either side can end the connection at any time. Terminating or erasing a tenant ends its connections. - **No directory:** no list or search of tenants, ever. - **For products:** an internal endpoint answers whether two tenants are actively connected and lists a tenant's active connections (connection id and the other side's display name). - **Audit:** connecting, accepting and ending are recorded for both tenants. ### Releasing (Prüfwerk, supplier tenant S) - **Releasing:** on a target, S releases to a connected tenant. This is a release record in S's database (`sbom_releases`). - **Publishing a version:** S publishes a version of the target, with a label such as `1.4.0`. Prüfwerk builds the SBOM from the target's latest scan as a **stripped CycloneDX**: per component, the name, version, purl, CPE, licences and hashes, with `metadata.component` set to the target, the version label and S's display name. Nothing else crosses: - no `vulnerabilities`; - no provenance (source paths, images); - no licence-review properties; - no internal ids, repository URLs or findings. - **Ending a release:** this stops new versions. What C has received stays with C. ### Receiving (Prüfwerk, customer tenant C) - **Consent per release:** a new release first appears to C as an **offer**. Accepting it creates a billable target, so it needs C's consent. C either: - accepts it into a new supplier component (a target with `supplier` set to S's display name), or into an existing supplier component; - or declines it. - **Delivery:** each published version goes to every accepted release whose connection is still active and whose two tenants both take changes. - It goes through the same path as an upload (`attach_upload`): read and refused as an upload is, it replaces the previous SBOM and starts a scan. - It is recorded like a supplier upload, with the release it came through. - An unchanged version (same content hash) is skipped, so it costs no scan. - **What C sees:** only what was released. It never sees S's findings, code, other targets or scans. - **Deployment:** S and C are tenants of the same Prüfwerk deployment, so a delivery is a write from one tenant database to another inside one process. Delivery between deployments is not supported. ### Audit Every release, publish, offer, acceptance, decline, delivery and end is recorded for both tenants. ### Order of work 1. **This plan.** Then the registry issue (connections API spec) and the portal issue (the connections page). 2. **Mockups**, approved before any UI is built: - the portal's connections page; - in the Prüfwerk dashboard: releasing a target, publishing a version, and offered releases at the customer. 3. **Prüfwerk:** the registry client for connections, with a fake registry in the tests. 4. **Prüfwerk:** releases, publishing and the stripped export, on the supplier side. 5. **Prüfwerk:** offers, accepting or declining, and delivery, on the customer side. 6. **Prüfwerk:** the dashboard screens, after the mockup. ### Done when - [ ] Two tenants connect by code. Neither can find or list the other, or any other tenant. - [ ] A supplier releases a target to a connected customer and publishes a version. The customer accepts the offer, and the version becomes the SBOM of its supplier component, with a scan. - [ ] A later published version replaces it. An unchanged one starts no scan. - [ ] A third tenant receives nothing. An ended release or connection delivers nothing more, and what was received stays. - [ ] Nothing but the stripped SBOM crosses: no findings, vulnerabilities, paths or internal ids. - [ ] Both sides see the record of every release, delivery and end.
Author
Owner

Specs opened:

Mockup (awaiting approval): https://claude.ai/artifact/RL3hc9N828qSZPvgQ6sz3B

Specs opened: - Registry, connections API: platform/tenant-registry#138 - Portal, the Verbindungen page: platform/portal#201 Mockup (awaiting approval): https://claude.ai/artifact/RL3hc9N828qSZPvgQ6sz3B
sharang changed title from Supplier SBOMs: tenants release SBOMs to each other after a two-way handshake (phase 4, later) to Supplier SBOMs: tenants release SBOMs to each other after a two-way handshake (phase 4) 2026-11-18 13:00:49 +00:00
Author
Owner

The phase 4 mockup was approved on 2026-11-19 (the user: "the other mockups look fine"): https://claude.ai/artifact/RL3hc9N828qSZPvgQ6sz3B, boards "Portal: Verbindungen", "Zulieferer: Freigaben" and "Kunde: angebotene Freigaben". The supply chain boards on the same canvas are tracked in #1050.

The phase 4 mockup was approved on 2026-11-19 (the user: "the other mockups look fine"): https://claude.ai/artifact/RL3hc9N828qSZPvgQ6sz3B, boards "Portal: Verbindungen", "Zulieferer: Freigaben" and "Kunde: angebotene Freigaben". The supply chain boards on the same canvas are tracked in #1050.
Author
Owner

Status 2026-11-20: built and tested end to end on stage; prod not started

Built

Connections (tenant-registry):

  • tenant-registry#145 (registry#138): connections between tenants by code, with no directory.
    • Codes: 160 bits, stored as a hash only, 14 days, single use. Every invalid code gets the same 404, and redeeming is rate-limited per workspace and per person.
    • Ending: either side can end a connection, and archiving a workspace ends all of its connections.
    • Audit: both sides' logs record each step; the other side's entry names no person and no IP.
    • Products read the active connections under the route group connections.read.
  • orca-platform#204: grants connections.read to pruefwerk-svc-stage (stage only).

Prüfwerk:

PR What
#1049 Released SBOM: an allowlist of component keys, no vulnerabilities
#1062 Registry client for connections; GET /api/v1/connections (id and display name only)
#1063 Releases (create, list, end) and published versions (stored document and hash), audited
#1064 Offers in the customer's database; accept into a new or an existing supplier component, or decline
#1065 Delivery: on publish to every accepted release, on accept the latest version; the connection is re-checked before each delivery, and each delivery is scanned
#1066 The next version's draft (changes since the last one) and customers per version; purl qualifiers with addresses stripped
#1067 Supplier screen "SBOM freigeben" (where the SBOM goes, the version train, publishing)
#1068 An open offer names the version that accepting delivers
#1069 Customer screen "Freigaben von Zulieferern", the open-offer count in the sidebar, and the note on the targets page
#1070 Lieferkette: a live release (indigo) and an ended release (dotted, "beendet, 2.0.4 bleibt")
#1071 The release page for an unknown target says the target doesn't exist
#1072 Lieferkette: a supplier's box and panel say how it delivers (in CI)

Stage test (2026-11-20, passed)

Our own stage workspace was the supplier and the Demo workspace the customer. The connection was made with a script against the registry, because portal#201 isn't built yet.

  1. Codes: a wrong code, the supplier's own code and a second use were all refused with the same answer.
  2. Release: creating it put the offer in the customer workspace, with the version and the component count. The sidebar showed the open-offer count and the targets page the note.
  3. Accept: accepting as a new component gave it the released SBOM, and a scan finished seconds later.
  4. Publishing: after acceptance, a new version was delivered and scanned at once. The supplier saw "accepted" and each version's customer count.
  5. Ending: the customer ended the connection. The supplier saw "Verbindung beendet", and a later version reached no customer: no delivery, no scan.
  6. Audit: both workspaces' registry logs had the expected entries. The other side's entries named no person and no IP.

The test found the two gaps fixed in #1070 and #1071.

Departures from the approved boards

These are listed in each PR. The main ones:

  • Wording: "keine Prüfung für eine unveränderte Version" (no scan for an unchanged version) became "wird gleich geprüft" (is scanned at once), because each publish is a new document.
  • Two-step answers: both answers on the offer screen ask once more before acting.
  • Ended line: dotted, because dashed already means "no SBOM yet".
  • Supplier panel: shows no dates, because the Lieferkette data doesn't carry the connection's dates.

Open

  • portal#201: the portal page "Verbindungen". Until it exists, a connection needs the registry API.
  • Prod, on the owner's word only:
    • promote the registry (prod is still at 768c195);
    • add connections.read to prod AUTHZ_RULES;
    • release Prüfwerk with #1062–#1072.
  • tenant-registry#142 must renumber its 0032 migration (comment posted).
  • Releasing VEX statements with the SBOM isn't built; it waits for #1015, like the rest of supplier VEX.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9

## Status 2026-11-20: built and tested end to end on stage; prod not started ### Built **Connections (tenant-registry):** - **tenant-registry#145** (registry#138): connections between tenants by code, with no directory. - **Codes:** 160 bits, stored as a hash only, 14 days, single use. Every invalid code gets the same 404, and redeeming is rate-limited per workspace and per person. - **Ending:** either side can end a connection, and archiving a workspace ends all of its connections. - **Audit:** both sides' logs record each step; the other side's entry names no person and no IP. - **Products** read the active connections under the route group `connections.read`. - **orca-platform#204:** grants `connections.read` to `pruefwerk-svc-stage` (stage only). **Prüfwerk:** | PR | What | |---|---| | #1049 | Released SBOM: an allowlist of component keys, no vulnerabilities | | #1062 | Registry client for connections; `GET /api/v1/connections` (id and display name only) | | #1063 | Releases (create, list, end) and published versions (stored document and hash), audited | | #1064 | Offers in the customer's database; accept into a new or an existing supplier component, or decline | | #1065 | Delivery: on publish to every accepted release, on accept the latest version; the connection is re-checked before each delivery, and each delivery is scanned | | #1066 | The next version's draft (changes since the last one) and customers per version; purl qualifiers with addresses stripped | | #1067 | Supplier screen "SBOM freigeben" (where the SBOM goes, the version train, publishing) | | #1068 | An open offer names the version that accepting delivers | | #1069 | Customer screen "Freigaben von Zulieferern", the open-offer count in the sidebar, and the note on the targets page | | #1070 | Lieferkette: a live release (indigo) and an ended release (dotted, "beendet, 2.0.4 bleibt") | | #1071 | The release page for an unknown target says the target doesn't exist | | #1072 | Lieferkette: a supplier's box and panel say how it delivers (in CI) | ### Stage test (2026-11-20, passed) Our own stage workspace was the supplier and the Demo workspace the customer. The connection was made with a script against the registry, because portal#201 isn't built yet. 1. **Codes:** a wrong code, the supplier's own code and a second use were all refused with the same answer. 2. **Release:** creating it put the offer in the customer workspace, with the version and the component count. The sidebar showed the open-offer count and the targets page the note. 3. **Accept:** accepting as a new component gave it the released SBOM, and a scan finished seconds later. 4. **Publishing:** after acceptance, a new version was delivered and scanned at once. The supplier saw "accepted" and each version's customer count. 5. **Ending:** the customer ended the connection. The supplier saw "Verbindung beendet", and a later version reached no customer: no delivery, no scan. 6. **Audit:** both workspaces' registry logs had the expected entries. The other side's entries named no person and no IP. The test found the two gaps fixed in #1070 and #1071. ### Departures from the approved boards These are listed in each PR. The main ones: - **Wording:** "keine Prüfung für eine unveränderte Version" (no scan for an unchanged version) became "wird gleich geprüft" (is scanned at once), because each publish is a new document. - **Two-step answers:** both answers on the offer screen ask once more before acting. - **Ended line:** dotted, because dashed already means "no SBOM yet". - **Supplier panel:** shows no dates, because the Lieferkette data doesn't carry the connection's dates. ### Open - **portal#201:** the portal page "Verbindungen". Until it exists, a connection needs the registry API. - **Prod**, on the owner's word only: - promote the registry (prod is still at 768c195); - add `connections.read` to prod `AUTHZ_RULES`; - release Prüfwerk with #1062–#1072. - **tenant-registry#142** must renumber its `0032` migration (comment posted). - **Releasing VEX statements with the SBOM** isn't built; it waits for #1015, like the rest of supplier VEX. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: platform/pruefwerk#1028