docs(sbom): licence policy, legal review and third-party notices; dashboard closure fixes
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 3m41s
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 3m41s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e133d3f97d
commit
dc07d207f5
2 files changed
+81
-15
No files matched your search
@@ -109,7 +109,10 @@ pub fn LicenseCheckPanel(
|
||||
let mut policy_open = use_signal(|| false);
|
||||
let mut notices_busy = use_signal(|| false);
|
||||
|
||||
// Copies of the handles, so the closure only reads what it captures
|
||||
// and can be called from every button.
|
||||
let reload = move || {
|
||||
let (mut selected, mut check) = (selected, check);
|
||||
selected.set(Vec::new());
|
||||
check.restart();
|
||||
on_changed.call(());
|
||||
@@ -140,6 +143,9 @@ pub fn LicenseCheckPanel(
|
||||
.filter(|i| selected().contains(&i.key()))
|
||||
.map(LicenseCheckItem::target)
|
||||
.collect();
|
||||
let picked_count = picked.len();
|
||||
let all_checked =
|
||||
!all_keys.is_empty() && all_keys.iter().all(|k| selected().contains(k));
|
||||
rsx! {
|
||||
p { class: "license-check-summary",
|
||||
strong { "{summary}" }
|
||||
@@ -157,15 +163,12 @@ pub fn LicenseCheckPanel(
|
||||
if open.is_empty() {
|
||||
p { class: "license-check-clear", {tx::ALL_CLEAR.get(lang)} }
|
||||
} else {
|
||||
if may && !picked.is_empty() {
|
||||
if may && picked_count > 0 {
|
||||
div { class: "license-selection-bar",
|
||||
button {
|
||||
class: "btn btn-primary btn-sm",
|
||||
onclick: {
|
||||
let picked = picked.clone();
|
||||
move |_| deciding.set(Some((picked.clone(), ReviewDecision::Approved)))
|
||||
},
|
||||
{format!("{} ({})", tx::APPROVE_SELECTED.get(lang), picked.len())}
|
||||
onclick: move |_| deciding.set(Some((picked.clone(), ReviewDecision::Approved))),
|
||||
{format!("{} ({})", tx::APPROVE_SELECTED.get(lang), picked_count)}
|
||||
}
|
||||
button {
|
||||
class: "btn btn-ghost btn-sm",
|
||||
@@ -183,11 +186,8 @@ pub fn LicenseCheckPanel(
|
||||
input {
|
||||
r#type: "checkbox",
|
||||
title: tx::APPROVE_SELECTED.get(lang),
|
||||
checked: !all_keys.is_empty() && all_keys.iter().all(|k| selected().contains(k)),
|
||||
onchange: {
|
||||
let all_keys = all_keys.clone();
|
||||
move |e: FormEvent| selected.set(if e.checked() { all_keys.clone() } else { Vec::new() })
|
||||
},
|
||||
checked: all_checked,
|
||||
onchange: move |e: FormEvent| selected.set(if e.checked() { all_keys.clone() } else { Vec::new() }),
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -202,6 +202,7 @@ pub fn LicenseCheckPanel(
|
||||
for item in open.clone() {
|
||||
{
|
||||
let key = item.key();
|
||||
let row_key = key.clone();
|
||||
let checked = selected().contains(&key);
|
||||
let target = item.target();
|
||||
let approve_target = target.clone();
|
||||
@@ -211,7 +212,7 @@ pub fn LicenseCheckPanel(
|
||||
let action = item.verdict.action;
|
||||
let category = category_of(&item.verdict);
|
||||
rsx! {
|
||||
tr { key: "{key}",
|
||||
tr { key: "{row_key}",
|
||||
if may {
|
||||
td {
|
||||
if action == PolicyAction::Review {
|
||||
@@ -423,7 +424,7 @@ fn ReviewDialog(
|
||||
.map(|c| format!("{} {}", c.name, c.version).trim().to_string())
|
||||
.collect();
|
||||
let more = components.len().saturating_sub(names.len());
|
||||
let save = move |_| {
|
||||
let save = move |_: Event<MouseData>| {
|
||||
let note = note().trim().to_string();
|
||||
let draft = ReviewDraft {
|
||||
components: components.clone(),
|
||||
@@ -554,7 +555,7 @@ fn PolicyDialog(policy: LicensePolicy, may_edit: bool, on_close: EventHandler<bo
|
||||
.replace("{at}", &at.format("%Y-%m-%d").to_string())
|
||||
});
|
||||
let base = policy.clone();
|
||||
let save = move |_| {
|
||||
let save = move |_: Event<MouseData>| {
|
||||
let draft = LicensePolicy {
|
||||
categories: rules(),
|
||||
licenses: licences(),
|
||||
|
||||
+66
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user