feat(licenses): licence policy, legal review, third-party notices (licence review v2) (#570)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Docs (push) Successful in 1m11s
CI / Deploy MCP (push) Successful in 4m37s
CI / Deploy Dashboard (push) Successful in 6m22s
CI / Deploy Agent (push) Successful in 8m13s

This commit was merged in pull request #570.
This commit is contained in:
sharang committed 2026-10-15 14:35:43 +00:00
1 parent e65aa76ef5
commit 41c337138d
31 files changed
+3691 -13

No files matched your search

+4 -2
View File
@@ -87,9 +87,11 @@ manifest of sha256 checksums) is also served as one ZIP at
| Tool | Description |
|------|-------------|
| `get_sbom` | A target's whole SBOM as one CycloneDX 1.6 (default) or SPDX 2.3 document, the same the API exports. |
| `list_sbom_packages` | List SBOM packages with filters for repository, vulnerabilities, package manager, and license. |
| `get_sbom` | A target's whole SBOM as one CycloneDX 1.6 (default) or SPDX 2.3 document, the same the API exports, with the licences the workspace confirmed. |
| `list_sbom_packages` | List SBOM packages with filters for repository, vulnerabilities, package manager, and license (the detected licence); each package carries its confirmed licence. |
| `sbom_vuln_report` | Generate a vulnerability report for a repository showing all packages with known CVEs. |
| `license_check` | What the workspace's licence policy says about a target's components: how many are allowed, wait for a legal review or are forbidden, and the open ones with their reasons. |
| `get_third_party_notices` | A target's third-party notices (`THIRD-PARTY-NOTICES`) as text or markdown: shipped components by licence, with copyright and licence texts or links. |
### DAST Tools
+66 -1
View File
@@ -212,7 +212,8 @@ Copyleft-licensed dependencies can require you to release your source code under
Where the scan finds no license (**Unknown**) or a wrong one, people with the
IT_ADMIN or USER role can confirm the license themselves; CXO and LEGAL can
read the confirmations.
read the confirmations (LEGAL decides about them in the
[legal review](#license-policy-and-legal-review)).
1. On the **Lizenzen** tab, **Anzeigen und bearbeiten** next to the count of
components without a known license lists exactly those (the filter
@@ -242,6 +243,70 @@ package in other targets gets it too.
The categories are guidance for reviewing your components, not legal advice.
:::
### License policy and legal review
The **Lizenzprüfung** card at the top of the **Lizenzen** tab shows what
your workspace's license policy says about each component: how many are
allowed, **Zur Prüfung** (waiting for a legal review) or **Nicht erlaubt**,
and lists the open ones with the reason. The same badges appear next to the
license on the **Pakete** tab.
**The policy.** **Richtlinie** opens it. For each kind of license (permissive,
weak or strong copyleft, network copyleft, proprietary, public domain, own
code, unclear) it says what a component needs when it is **shipped** with the
product and when it is only used **to build** it: *Erlaubt*, *Zur Prüfung*
or *Nicht erlaubt*. Under **Einzelne Lizenzen** you can rule single SPDX
licenses that apply before their kind (for example `AGPL-3.0-only` *Nicht
erlaubt*). A component counts as shipped unless its confirmed license says
*nur zum Bauen*. For a license expression, `AND` takes the strictest of its
licenses and `OR` the least strict, since you may choose. A bought license
whose **Gültig bis** has passed is not allowed; one that ends within the
announced period (60 days unless changed) is listed in advance.
The default policy forbids nothing: copyleft, bought and unknown licenses
of shipped components need a review, everything else is allowed. Only the
LEGAL and IT_ADMIN roles can change the policy; everyone else can read it.
**The review.** People with the **LEGAL** role (and IT_ADMIN) decide the
components *Zur Prüfung*:
1. Click **Freigeben** in a row, or tick several rows and click
**Auswahl freigeben**; **Ablehnen** rejects a component.
2. Optionally give a reason (for example "only linked dynamically, source
code enclosed") and tick **Für alle Versionen dieser Pakete** to decide
for every version.
An approved component counts as allowed and shows **freigegeben** (who, when
and the reason on hover); a rejected one counts as not allowed. An approval
resolves a review, never a license the policy forbids: that needs a policy
change. **Entscheidung zurücknehmen** withdraws a decision. Changing a
component's confirmed license drops its review, since the review was of the
license as it was. Where nobody confirmed a license yet, approving confirms
the license the scan found (an SPDX license), in your name; an unknown
license has to be confirmed first.
**Findings.** Every scan with a complete SBOM reports each component that is
not allowed as a finding (*High*), and the components waiting for a review
as one finding per target (*Low*). They close themselves at the next scan
once the cause is gone. Policy changes and decisions show in the license
check at once, and in the findings with the next scan.
### Third-party notices
Products that ship third-party components usually have to name them with
their copyright and license. **Drittanbieter-Hinweise** on the license check
card (pick a target first) downloads `THIRD-PARTY-NOTICES.txt`: the shipped
components grouped by license, with the copyright lines you confirmed, a link
to the license text on spdx.org, and the full text of your own licenses.
Components without a known license are listed at the end, so you can see what
is missing. The evidence pack contains the same file, together with
`license-check.json`, the license check on the day the pack was made.
Through the API (`GET /api/v1/sbom/notices?repo_id=<target>`) the notices are
also available as markdown (`format=markdown`) and with the build-only
components (`build_only=true`); an API key needs the `pruefwerk:sbom.read`
scope.
## Export
1. On the **Pakete** tab, select a target under **Alle Prüfobjekte**. Export