feat(sbom): lockfile hashes and download URLs in the SBOM (#508, part B1) (#511)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 5s
CI / Deploy Docs (push) Successful in 1m16s
CI / Deploy MCP (push) Successful in 2m31s
CI / Deploy Agent (push) Successful in 5m5s
CI / Deploy Dashboard (push) Successful in 4m0s

This commit was merged in pull request #511.
This commit is contained in:
sharang committed 2026-10-06 14:48:40 +00:00
1 parent 8538b31682
commit cd943b8d67
11 files changed
+462 -13

No files matched your search

+13 -3
View File
@@ -217,6 +217,12 @@ Prüfwerk has the data, BSI TR-03183-2 v2.1:
- The dependency graph has the product depending on every component, and
each component as its own entry. The SBOM is flat (which component depends
on which is not known), so `compositions` states it `incomplete`.
- Packages whose lockfile records the file they are distributed as carry
its hash (`hashes`) and an `externalReferences` entry of type
`distribution` with the download URL and the hash: the lockfile's URL
(npm, yarn, pnpm), or the public registry's (npmjs, nuget.org, crates.io)
when the project takes the package from there and the lockfile names
none.
- Licenses are an SPDX id, an SPDX expression or a named license, marked
`acknowledgement: declared`: they are what the package declares, not a
licence Prüfwerk concluded.
@@ -300,9 +306,13 @@ open, and why:
- **Component creator**: the email or URL of each package's maintainer.
Prüfwerk does not record it yet.
- **Hash of the deployable component** (SHA-512) and its download URL: not
recorded yet; lockfiles hold them for npm and NuGet. Cargo, Python and
Maven lockfiles only have SHA-256 hashes, which the TR does not accept.
- **Hash of the deployable component** (SHA-512) and its download URL: met
for npm, yarn and pnpm packages (the lockfile's `integrity`) and NuGet
packages with a `packages.lock.json` (its `contentHash`). Cargo's lockfile
has a SHA-256, which the export lists but the TR does not accept; Python
and Maven lockfiles give Prüfwerk no hash yet. Packages from a private
registry keep their hash but get no download URL, since the export only
names the public registry's.
- **Distribution licence**: the licence the product is distributed under
(`acknowledgement: concluded`) is the manufacturer's decision; the export
states the declared licences only.