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.
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
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 main2026-11-19 07:55:09 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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 itssupplier.type,bom-ref,name,group,version,purl,cpe,licensesandhashes.externalReferences(such as an internal feed's download URL) and manufacturer.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
tests/released_sbom.rsvalidates the document against CycloneDX 1.6.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