feat(sbom): confirm the licence of components (licence review) #569

Merged
sharang merged 3 commits from feat/licence-overrides into main 2026-10-15 12:03:30 +00:00
3 Commits
Author SHA1 Message Date
Sharang ParnerkarandClaude Opus 5.5 e93219dc86 fix(sbom): keep the dash of LicenseRef- for a name without usable characters; purl keys are decoded
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
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 9m7s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 13:53:44 +02:00
Sharang ParnerkarandClaude Opus 5.5 887bd62986 test(sbom): the licence summary serialises its category and confirmed count
CI / Check (push) Skipped
CI / Check (pull_request) Failing after 7m13s
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 13:45:43 +02:00
Sharang ParnerkarandClaude Opus 5.5 74eb8b7647 feat(sbom): confirm the licence of components (licence review)
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
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) Failing after 2m53s
Where the scan finds no licence (or a wrong one), IT_ADMIN and USER can
confirm it: an SPDX licence or one of their own, its category, copyright,
licence text and URL, where it was found, a bought licence's contract and
end, whether the component is shipped or only used to build, and a note.
For one version or every version of the package; one or many components
at once.

- core: LicenseConclusion (models/license.rs) with matching by package key
  (purl without version), validation and LicenseRef ids for licences SPDX
  does not list; spdx_license::category (permissive, weak/strong/network
  copyleft, public domain; OR takes the least, AND the most restrictive;
  free-text names stay unclear).
- Conclusions live in their own collection (license_conclusions): a scan
  rewrites sbom_entries, so they are merged in when components are read.
- Exports: a confirmed licence is CycloneDX acknowledgement "concluded"
  (with copyright and pruefwerk:license:* properties, the detected one kept
  as pruefwerk:license:declared) and SPDX licenseConcluded with
  copyrightText; LicenseRef licences are defined in
  hasExtractedLicensingInfos. Also in the evidence pack and the SBOM
  quality score.
- API: GET/PUT/DELETE /api/v1/licenses/conclusions (writes role-gated);
  /sbom?unresolved=true lists the components still without a licence;
  the licence summary counts the confirmed licence and gives categories.
- Dashboard: edit dialog, row checkboxes for bulk editing, "bestätigt"
  badge with who and when, "Lizenz offen" filter and counter, colours by
  category (LGPL/MPL now show as weak copyleft, not GPL).
- Docs: guide/sbom.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 13:41:51 +02:00