feat(sbom): the stripped SBOM a supplier workspace releases (#1028) #1049

Merged
sharang merged 1 commits from feat/sbom-release-export into main 2026-11-19 07:55:09 +00:00
Owner

Part of #1028 (supplier SBOM epic #1029, phase 4). This is the first Prüfwerk piece, and it doesn't depend on the registry's connections (platform/tenant-registry#138). The plan and the user's decisions are on #1028.

What it adds

compliance_core::sbom_docs::released_cyclonedx(entries, &ReleasedProduct { name, version, supplier }) builds the CycloneDX 1.6 document that a supplier workspace releases to a connected customer workspace.

  • metadata.component: the released target, with the published version label and the supplier workspace's display name as its supplier.
  • Components: each keeps only type, bom-ref, name, group, version, purl, cpe, licenses and hashes.
    • This is an allowlist, so a field added to the export later doesn't cross unnoticed.
    • Dropped: properties (where a component was found, the images it is in, the licence review), copyright, externalReferences (such as an internal feed's download URL) and manufacturer.
    • A confirmed custom licence keeps its name but not its text, which may come from the supplier's own contract.
  • No vulnerabilities: the customer's own scan finds them. The dependency graph stays as in our export: the product depends on every component.

Nothing calls this function yet. Releases, publishing and delivery come in later PRs, once the registry API exists to build against.

Tests

  • Unit test: the vulnerability, the internal download URL, the image name and the contract reference don't appear anywhere in the document; components carry exactly the kept keys; the custom licence has no text.
  • Schema test: tests/released_sbom.rs validates the document against CycloneDX 1.6.
  • Round trip: the supplier SBOM reader (supplied.rs) reads the document back with every component and purl and nothing more, as the customer will receive it.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9

Part of #1028 (supplier SBOM epic #1029, phase 4). This is the first Prüfwerk piece, and it doesn't depend on the registry's connections (platform/tenant-registry#138). The plan and the user's decisions are on #1028. ## What it adds `compliance_core::sbom_docs::released_cyclonedx(entries, &ReleasedProduct { name, version, supplier })` builds the CycloneDX 1.6 document that a supplier workspace releases to a connected customer workspace. - **`metadata.component`:** the released target, with the published version label and the supplier workspace's display name as its `supplier`. - **Components:** each keeps only `type`, `bom-ref`, `name`, `group`, `version`, `purl`, `cpe`, `licenses` and `hashes`. - This is an allowlist, so a field added to the export later doesn't cross unnoticed. - Dropped: properties (where a component was found, the images it is in, the licence review), copyright, `externalReferences` (such as an internal feed's download URL) and manufacturer. - A confirmed custom licence keeps its name but not its text, which may come from the supplier's own contract. - **No `vulnerabilities`:** the customer's own scan finds them. The dependency graph stays as in our export: the product depends on every component. Nothing calls this function yet. Releases, publishing and delivery come in later PRs, once the registry API exists to build against. ## Tests - **Unit test:** the vulnerability, the internal download URL, the image name and the contract reference don't appear anywhere in the document; components carry exactly the kept keys; the custom licence has no text. - **Schema test:** `tests/released_sbom.rs` validates the document against CycloneDX 1.6. - **Round trip:** the supplier SBOM reader (`supplied.rs`) reads the document back with every component and purl and nothing more, as the customer will receive it. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
sharang added 1 commit 2026-11-18 13:05:44 +00:00
feat(sbom): the stripped SBOM a supplier workspace releases (#1028)
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Agent integration (pull_request) Successful in 5m32s
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 / Check (pull_request) Successful in 22m21s
b1d317e3e1
The first Prüfwerk piece of phase 4: `sbom_docs::released_cyclonedx`, the
CycloneDX 1.6 document a supplier workspace releases to a connected
customer workspace.

- `metadata.component` is the released target with the published version
  and the supplier workspace's name as its `supplier`.
- Each component keeps only what identifies it, its licences and its
  hashes, by a list of kept keys: no properties (where it was found, the
  images it is in, the licence review), copyright, references or
  manufacturer, and a custom licence keeps its name but not its text.
- No `vulnerabilities`: the customer's own scan finds them.

Tests: nothing else crosses (vulnerability, download URL, image, contract);
valid against the CycloneDX 1.6 schema; read back by the supplier SBOM
reader with every component and purl, as the customer will receive it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
sharang merged commit 019ea73e86 into main 2026-11-19 07:55:09 +00:00
sharang deleted branch feat/sbom-release-export 2026-11-19 07:55:09 +00:00
Sign in to join this conversation.