fix(i18n): CRA status names mapped findings, not verdicts (#585)
This commit was merged in pull request #585.
This commit is contained in:
1 parent
9d4e46c34f
commit
34243b208d
11 files changed
+36
-36
No files matched your search
@@ -972,9 +972,9 @@ pub mod targets {
|
||||
en: "Download evidence pack",
|
||||
};
|
||||
pub const EVIDENCE_HINT: Text = Text {
|
||||
de: "ZIP mit OSCAL-Bewertung (CRA Anhang I), SBOM (CycloneDX, SPDX), Befunden \
|
||||
de: "ZIP mit OSCAL-Prüfergebnissen (CRA Anhang I), SBOM (CycloneDX, SPDX), Befunden \
|
||||
(JSON, CSV), CVE-Warnungen und einem Manifest mit SHA-256-Prüfsummen.",
|
||||
en: "ZIP with the OSCAL assessment (CRA Annex I), SBOM (CycloneDX, SPDX), \
|
||||
en: "ZIP with the OSCAL assessment results (CRA Annex I), SBOM (CycloneDX, SPDX), \
|
||||
findings (JSON, CSV), CVE alerts and a manifest with SHA-256 checksums.",
|
||||
};
|
||||
pub const BACK: Text = Text {
|
||||
@@ -1934,10 +1934,10 @@ pub mod findings {
|
||||
|
||||
/// Every status, in the order the forms offer them.
|
||||
pub const WRONG_MAPPING_HINT: Text = Text {
|
||||
de: "Warum verletzt der Befund die zugeordnete CRA-Anforderung nicht (z. B. der Code \
|
||||
de: "Warum gehört der Befund nicht zur zugeordneten CRA-Anforderung (z. B. der Code \
|
||||
ist in Ordnung, oder die Anforderung betrifft etwas anderes)? Die Begründung hilft, \
|
||||
künftige Zuordnungen zu verbessern.",
|
||||
en: "Why does the finding not violate the CRA requirement it was mapped to (e.g. the \
|
||||
en: "Why does the finding not belong to the CRA requirement it was mapped to (e.g. the \
|
||||
code is fine, or the requirement is about something else)? The reason helps \
|
||||
improve future mappings.",
|
||||
};
|
||||
@@ -2737,34 +2737,34 @@ pub mod compliance {
|
||||
en: "CRA status",
|
||||
};
|
||||
pub const SUBTITLE: Text = Text {
|
||||
de: "Stand gegen die grundlegenden Anforderungen des Cyber Resilience Act (Anhang I)",
|
||||
en: "Standing against the Cyber Resilience Act's essential requirements (Annex I)",
|
||||
de: "Befunde aus der Prüfung, zugeordnet zu den grundlegenden Anforderungen des Cyber Resilience Act (Anhang I)",
|
||||
en: "Scan findings mapped to the Cyber Resilience Act's essential requirements (Annex I)",
|
||||
};
|
||||
pub const OPEN: Text = Text {
|
||||
de: "CRA-Status anzeigen",
|
||||
en: "Show CRA status",
|
||||
};
|
||||
pub const NOT_SATISFIED: Text = Text {
|
||||
de: "Nicht erfüllt",
|
||||
en: "Not satisfied",
|
||||
de: "Befunde zugeordnet",
|
||||
en: "Findings mapped",
|
||||
};
|
||||
pub const NO_VIOLATION: Text = Text {
|
||||
de: "Kein Verstoß gefunden",
|
||||
en: "No violation found",
|
||||
de: "Geprüft, keine Befunde",
|
||||
en: "Checked, no findings",
|
||||
};
|
||||
pub const VIOLATED_COUNT: Text = Text {
|
||||
de: "nicht erfüllt",
|
||||
en: "violated",
|
||||
de: "mit Befunden",
|
||||
en: "with findings",
|
||||
};
|
||||
pub const NOT_ASSESSED: Text = Text {
|
||||
de: "Nicht bewertet",
|
||||
en: "Not assessed",
|
||||
de: "Nicht geprüft",
|
||||
en: "Not checked",
|
||||
};
|
||||
/// A control assessed on part of what it covers (a Yocto recipe
|
||||
/// A control checked on part of what it covers (a Yocto recipe
|
||||
/// inventory instead of the image's SBOM).
|
||||
pub const PARTIAL: Text = Text {
|
||||
de: "Teilweise bewertet",
|
||||
en: "Partly assessed",
|
||||
de: "Teilweise geprüft",
|
||||
en: "Partly checked",
|
||||
};
|
||||
pub const RECIPE_INVENTORY_ONLY: Text = Text {
|
||||
de: "Nur das Yocto-Rezeptinventar, nicht die SBOM des Images: geprüft sind die Rezepte im Layer-Baum, nicht was das Image enthält. Vollständig erst mit der SBOM aus dem Build.",
|
||||
|
||||
@@ -7,9 +7,9 @@ import { withBase } from 'vitepress'
|
||||
|
||||
/** The CRA status strip of the example view: 40 Annex I requirements. */
|
||||
const craStates = [
|
||||
{ key: 'violated', label: 'Nicht erfüllt', count: 3 },
|
||||
{ key: 'unassessed', label: 'Nicht bewertet', count: 5 },
|
||||
{ key: 'clean', label: 'Kein Verstoß gefunden', count: 13 },
|
||||
{ key: 'violated', label: 'Befunde zugeordnet', count: 3 },
|
||||
{ key: 'unassessed', label: 'Nicht geprüft', count: 5 },
|
||||
{ key: 'clean', label: 'Geprüft, keine Befunde', count: 13 },
|
||||
{ key: 'process', label: 'Nicht im Code prüfbar', count: 19 },
|
||||
]
|
||||
const craTotal = craStates.reduce((sum, s) => sum + s.count, 0)
|
||||
@@ -106,7 +106,7 @@ const packFiles = [
|
||||
<div class="bp-link-row">
|
||||
<span class="bp-link-label">Befund ↔ Anforderung</span>
|
||||
<span class="bp-req">CRA Anhang I, Teil I, Nr. 2</span>
|
||||
<span class="bp-state bp-state-violated">Nicht erfüllt</span>
|
||||
<span class="bp-state bp-state-violated">Befunde zugeordnet</span>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
@@ -186,7 +186,7 @@ const packFiles = [
|
||||
<section class="bp-section bp-wrap bp-note">
|
||||
<p>
|
||||
Prüfwerk liefert Nachweise für die CRA-Bewertung. Es zeigt, welche Anforderungen
|
||||
im Code geprüft sind, und sagt offen, was nicht bewertet wurde und warum.
|
||||
im Code geprüft sind, und sagt offen, was nicht geprüft wurde und warum.
|
||||
Prozess- und Designanforderungen belegen Sie im BreakPilot-Compliance-Prozess.
|
||||
</p>
|
||||
<dl class="bp-dates">
|
||||
|
||||
@@ -38,7 +38,7 @@ For the **CRA** framework (40 controls) the split is **21 covered · 0 needs_too
|
||||
|
||||
Each binding in the control map names the **languages** its rules run on (`languages`, empty for language-independent tools such as gitleaks, syft and osv). A test keeps these in step with the rule pack. Each scan run records the source languages it saw outside vendor code (`ScanRun.languages`).
|
||||
|
||||
The CRA status calls a covered control **"no violation found"** only when one of its bindings applies to those languages *and* no tool it relies on failed in that scan (a skipped `sast`, `sast_c_cpp`, `sast_mobile`, `sast_dotnet`, `recipe_lint` or `cve_lookup` stage). Otherwise the control is **not assessed**, with the reason: not scanned yet, no rule for the languages found, a tool that did not complete, or languages unknown (a run from before they were recorded). A C-only firmware repo therefore never reads "no violation found" for controls only Python rules check (#368, #387).
|
||||
The CRA status calls a covered control **"checked, no findings"** only when one of its bindings applies to those languages *and* no tool it relies on failed in that scan (a skipped `sast`, `sast_c_cpp`, `sast_mobile`, `sast_dotnet`, `recipe_lint` or `cve_lookup` stage). Otherwise the control is **not checked**, with the reason: not scanned yet, no rule for the languages found, a tool that did not complete, or languages unknown (a run from before they were recorded). A C-only firmware repo therefore never reads "checked, no findings" for controls only Python rules check (#368, #387).
|
||||
|
||||
At scale, the **master-controls** corpus (breakpilot's deduped clusters, exported as OSCAL) currently provides **~2,882 code-checkable controls** (2,143 `network` + 739 `source_code`), matched semantically.
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ AI-generated; check important details in the documentation.
|
||||
- **Scans**: "Werden Git-Submodule mitgeprüft?" / "Warum steht ein Schritt unter Nicht ausgeführt?"
|
||||
- **Uploads**: "Wie lade ich ein passwortgeschütztes Archiv hoch?"
|
||||
- **Findings**: "Was ist der Unterschied zwischen den beiden Fehlalarm-Arten?"
|
||||
- **SBOM and CRA**: "Wie exportiere ich die Stückliste?" / "Was bedeutet Nicht bewertet?"
|
||||
- **SBOM and CRA**: "Wie exportiere ich die Stückliste?" / "Was bedeutet Nicht geprüft?"
|
||||
|
||||
## Technical Details
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ the evidence "transitive, nuget.org". A project whose graph could not be
|
||||
resolved completely (a package on another feed, a lookup that failed, a
|
||||
version range without a lower bound) stays listed under **Nicht ausgeführt**
|
||||
(`sbom_dependencies`), all such projects in one entry, and the SBOM
|
||||
requirements of the CRA view stay **Nicht bewertet** until a lockfile is
|
||||
requirements of the CRA view stay **Nicht geprüft** until a lockfile is
|
||||
committed. `NUGET_TRANSITIVE_RESOLVE` switches the resolution (on by default,
|
||||
off in production until released there).
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ dessen Abhängigkeiten nicht vollständig aufgelöst werden konnten (ein Paket
|
||||
aus einem anderen Feed, eine fehlgeschlagene Abfrage, ein Versionsbereich ohne
|
||||
Untergrenze), bleibt unter **Nicht ausgeführt** (`sbom_dependencies`) aufgeführt,
|
||||
alle solchen Projekte in einem Eintrag, und die SBOM-Anforderungen der
|
||||
CRA-Ansicht sind **Nicht bewertet**, bis eine Lockdatei vorliegt.
|
||||
CRA-Ansicht sind **Nicht geprüft**, bis eine Lockdatei vorliegt.
|
||||
`NUGET_TRANSITIVE_RESOLVE` schaltet die Auflösung (standardmäßig an, in
|
||||
Produktion bis zur Freigabe dort aus).
|
||||
|
||||
|
||||
@@ -164,12 +164,12 @@ dieses Prüfobjekts:
|
||||
|
||||
| Stand | Bedeutung |
|
||||
|---|---|
|
||||
| **Nicht erfüllt** | Mindestens ein Befund verstößt gegen die Anforderung; die Befunde sind verlinkt. |
|
||||
| **Kein Verstoß gefunden** | Eine Prüfregel hat den Code in dieser Sprache geprüft, alle Werkzeuge sind vollständig gelaufen, und es gibt keinen Befund. |
|
||||
| **Nicht bewertet** | Es fehlt etwas für ein Urteil, zum Beispiel eine Prüfregel für die gefundene Sprache oder ein vollständiger Prüflauf. Der Grund steht dabei. |
|
||||
| **Befunde zugeordnet** | Mindestens ein Befund ist der Anforderung zugeordnet; die Befunde sind verlinkt. |
|
||||
| **Geprüft, keine Befunde** | Eine Prüfregel hat den Code in dieser Sprache geprüft, alle Werkzeuge sind vollständig gelaufen, und es gibt keinen Befund. |
|
||||
| **Nicht geprüft** | Es fehlt etwas für eine vollständige Prüfung, zum Beispiel eine Prüfregel für die gefundene Sprache oder ein vollständiger Prüflauf. Der Grund steht dabei. |
|
||||
| **Nicht im Code prüfbar** | Eine Eigenschaft des Designs oder Prozesses; sie wird im Compliance-Prozess von BreakPilot nachgewiesen. |
|
||||
|
||||
„Kein Verstoß gefunden“ erscheint also nur dort, wo tatsächlich geprüft wurde.
|
||||
„Geprüft, keine Befunde“ erscheint also nur dort, wo tatsächlich geprüft wurde.
|
||||
Befunde werden am Code nachgeprüft, bevor sie einer Anforderung zugeordnet
|
||||
werden. Der CRA-Status zeigt, welche Anforderungen im Code geprüft sind; er ist
|
||||
keine Konformitätsbewertung.
|
||||
|
||||
+2
-2
@@ -33,7 +33,7 @@ Prüfwerk builds the SBOM during each scan:
|
||||
in stays unknown. In that case, and for a `Cartfile` without its
|
||||
`Cartfile.resolved`, the scan reports the manifest under
|
||||
**Nicht ausgeführt** and the SBOM requirements of the CRA view are
|
||||
**Nicht bewertet**: an app whose dependencies are unknown is not shown as
|
||||
**Nicht geprüft**: an app whose dependencies are unknown is not shown as
|
||||
clean.
|
||||
- **.NET / NuGet** -- `packages.config`, `<PackageReference>` (also with
|
||||
central versions in `Directory.Packages.props`), `packages.lock.json`,
|
||||
@@ -72,7 +72,7 @@ Prüfwerk builds the SBOM during each scan:
|
||||
or a Unity project without `Packages/manifest.json` declares its dependencies
|
||||
nowhere readable. Prüfwerk reports it as a finding (**Legacy build system: the
|
||||
SBOM cannot be determined**, with the migration as the remedy) and lists it
|
||||
under **Nicht ausgeführt**, so the SBOM requirements are **Nicht bewertet**
|
||||
under **Nicht ausgeführt**, so the SBOM requirements are **Nicht geprüft**
|
||||
rather than clean. An Android API level below 29 or a Unity release out of
|
||||
support is a finding of its own, and so is, in an Xcode project or the
|
||||
Player Settings of a Unity project building for iOS, an iOS deployment target
|
||||
|
||||
@@ -147,7 +147,7 @@ A failed run shows one of these reasons under **Fehler**:
|
||||
|
||||
A run can complete and still list steps under **Nicht ausgeführt** (Not run),
|
||||
each with its name and the reason. A tool that did not complete is not counted
|
||||
as a clean result: the CRA requirements it checks show as **Nicht bewertet**.
|
||||
as a clean result: the CRA requirements it checks show as **Nicht geprüft**.
|
||||
|
||||
| Step | Reason shown | What to do |
|
||||
|---|---|---|
|
||||
|
||||
+2
-2
@@ -201,7 +201,7 @@ Image recipes, package groups and tools built only for the build host
|
||||
|
||||
**This is not the image's SBOM**, and the CRA view says so: the requirements
|
||||
checked on a target's components (SBOM, known vulnerabilities) are
|
||||
**Teilweise bewertet** (*partly assessed*, "recipe inventory only, not the
|
||||
**Teilweise geprüft** (*partly checked*, "recipe inventory only, not the
|
||||
image SBOM") until an image SBOM can be imported (tier 2). Layer overrides between layers,
|
||||
`PACKAGECONFIG` and the distro and machine configuration are not resolved, so
|
||||
the inventory lists every recipe in the tree: more than an image contains, and
|
||||
@@ -296,7 +296,7 @@ groups more than one level deep, `RPROVIDES` and virtual packages, a
|
||||
`FEATURE_PACKAGES_*` of your own, `BAD_RECOMMENDATIONS`, and which distro a
|
||||
build selects (every distro configuration counts). Nothing is built, and no
|
||||
recipe from a layer that is not in the tree is marked. The CRA state of the
|
||||
SBOM requirement stays **Teilweise bewertet** until an image SBOM from a build
|
||||
SBOM requirement stays **Teilweise geprüft** until an image SBOM from a build
|
||||
can be imported (tier 2).
|
||||
|
||||
## What is planned
|
||||
|
||||
@@ -145,7 +145,7 @@ so Prüfwerk gives each rule one, which ties it to its CRA control. The CLI runs
|
||||
in the agent image on the .NET runtime, offline: nothing about the code leaves
|
||||
the scan. Its findings are **Codeanalyse (SAST)** findings with the tool name
|
||||
`devskim`; a run that fails is listed under *Nicht ausgeführt* as
|
||||
`sast_dotnet`, and the controls it checks are then not assessed.
|
||||
`sast_dotnet`, and the controls it checks are then not checked.
|
||||
|
||||
## Vendor Code Exclusion
|
||||
|
||||
|
||||
Reference in new issue
Block a user