A target can now name who supplies it: the supplier, its name for the
product, the version in use and its CSAF provider (`supplier` on create
and update; `provider-metadata.json` must be an https URL, else 422; an
empty name removes it).
The provider's TLP:WHITE advisories are fetched through the guarded
client with the shared feed's code, but stored in the tenant's own
database (`supplier_csaf_advisories`), never in the shared index: a
provider one tenant names is never matched against another tenant's
components. They are refreshed daily after the shared index, once after
start, and right away when a target's provider is set.
A scan matches them against the product itself (an SBOM entry of
manager `supplier-product`, by the supplier's name and version for it,
only in that supplier's advisories) and against its components by purl,
raising CSAF alerts with the supplier's remediation and fixed versions.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
The crate versions had stayed at 0.4.6 since the first releases; the
running version comes from the release tag. Bumping them to the release
also changes Cargo.toml and Cargo.lock, so the main build after merging
rebuilds the agent, dashboard and MCP images together for v0.4.15.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Decided 2026-11-12: PSIRT and DEVELOPMENT get full access (they triage
findings and run scans); QUALITY, PURCHASING and AUDITOR read only;
PRIVACY and EXTERNAL none, as before. Each parses to its own OrgRole.
Admin-only actions (manual findings, git source, licence decisions) stay
with IT_ADMIN and OWNER; confirming a licence follows full access, so
PSIRT and DEVELOPMENT may confirm.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Source code without a manifest or lockfile gave an empty SBOM with no
explanation, which reads as "no libraries". Two findings of a new
sbom-coverage check now say why:
- sbom-no-manifest (Medium): code in a language with a package manager
(Python, JS/TS, Rust, Go, Java/Kotlin, C#, PHP, Ruby, Dart) and no
manifest or lockfile for it outside vendor directories, one per
ecosystem. Never for C/C++, Yocto layers, or a tree whose components
come from its sources (library headers, firmware, CODESYS).
- sbom-dependencies-unresolved (Low): a manifest whose dependencies were
not resolved, one per manifest the SBOM stage already lists under
sbom_dependencies; legacy build systems keep their own finding.
Each finding names a concrete way to add the missing file, maps to the
SBOM requirement (cra-ai-23, also bound in the control map) and closes at
the next scan that no longer reports it, as the check completes on every
code scan. Dart is now detected as a source language.
The SBOM page shows an explanation instead of an empty table: where the
SBOM comes from, the target's open findings with their examples and a
link, or a general example. The findings API takes a scanner filter.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The finding page gets an "Als Ticket-Text kopieren" button that copies
the finding as Markdown (title, severity, status, location, description,
the AI assessment, CRA-Themen and a link back to Prüfwerk), confirmed
with "Kopiert". The Markdown is built in Rust; JavaScript only writes it
to the clipboard.
Where the target opens no tickets on its own and the finding has none, a
hint says "Mit Breakpilot Git werden Tickets automatisch angelegt" and
links to connecting a tracker and to the Managed Git guide. The target's
CRA view now says whether a tracker is connected: one with a type is
configured, or the target came from a managed git source.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OrgRole::parse knew only IT_ADMIN, CXO, FINANCE, LEGAL and USER, so an
OWNER got no access at all. OWNER now parses to its own role with full
access, and what only an administrator may do (manual findings, the git
source, licence decisions) asks OrgRole::is_admin (IT_ADMIN or OWNER).
The other new RBAC bundles still get no access.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Before a stage replaces its part of a target's SBOM (the code SBOM, the
CODESYS libraries, the firmware components), the entries it replaces are
compared with the new ones and the changes are added to the scan run
(`component_changes`, at most 5000; `None` on runs from before). A
component is its package manager and name; one version before and one
after is an update, otherwise each new version an addition and each gone
one a removal.
The Verlauf API joins them with the scan's CVEs: a new CVE goes with the
component now at its version, a gone one with the component that was at
its version, and what no change explains is an advisory row. The scan's
drill-down shows the mockup's table (neu / aktualisiert / entfernt / neue
Advisory, version before → after, CVEs +n −m) above the CVE list; scans
from before say the components were not recorded.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The two views the repo tabs still showed as placeholders, as in the mockup:
- CRA Annex I: the 40 requirements as tiles, ten to a row, coloured by state
and marked with a sign (! ? ~ OK –) so the state is never told by colour
alone, with a legend and counts. A tile opens the requirement (in the
URL, ?control=cra-ai-3) with its state, findings and reason, reusing the
CRA page's row.
- Verlauf: per scan the CVE alerts found new above the line and those found
gone below it, with the run's status, and a table view. A scan opens what
it changed (?scan=<run id>): each CVE with component, version and
severity. New: GET /api/v1/targets/{id}/scan-changes and
compliance_core::scan_changes. A completed scan's window runs from the end
of the completed scan before it; the first is the baseline; scans that did
not complete change nothing. Which components a scan added, updated or
removed is not stored, and the view says so.
Docs: the target's page and its views in the targets guide; the overview's
repo cards with their Heute buckets.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Checked against the mockup in a local run: the tab strip scrolls on its
own on a narrow screen instead of widening the page and no longer shows a
stray scrollbar; the CRA tab counts the requirements checked without a
finding (not those outside the code); the licence tab says why it is empty;
the repo cards' bucket labels wrap as in the mockup.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A new landing page "Heute" (the overview moves to /overview and stays in
the sidebar): the Erstbewertung, target chips, the four bucket tiles and
the cards of the chosen bucket with their decisions, "Später" with one
week, one month or a date, "Details", an undo strip after each decision,
and the keys j/k/f/a/s on this page only. The sidebar's "Heute" entry
shows the workspace's "Heute handeln" count.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Describe the new overview figures, the 30-day chart, the targets by
project and the target page's "Wo handeln" table in the guide. Key the
overview's project groups by the project's id, so two projects with the
same name stay apart.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Tickets page was a paged table only. GET /api/v1/issues now takes
q (title word or ticket number: 913, #913, PROJ-913), status (open
takes in_progress, closed takes resolved) and repo_id, tenant-scoped as
before. A ticket stores no target: the target filter takes the ids of
the target's findings with a ticket plus its CVE tickets
(finding_id cve:{target}:...).
Each row links to its finding, or for a CVE ticket to the target's
components and CVEs (SBOM page), next to the tracker link. Texts are
German and English, the status is a readable badge. The CVE key prefix
and the closed check move to compliance-core so the agent and the
dashboard read them the same way.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The managed Git source's org webhook now handles `issues` events. A
person closing an issue Prüfwerk opened resolves the undecided finding,
recorded as "closed in the ticket" with the Gitea login; reopening it
makes the finding open again. A decision already made in Prüfwerk is
kept. Events whose sender is the issue's author (Prüfwerk's bot user,
which opened it) are ignored, and the back-sync never calls Gitea, so
nothing loops; the issue record is updated first, so the outbound sync
has nothing left to comment or close.
CVE issues closed in Gitea only record the close and who did it, no VEX
status. The scan leaves such an issue closed while the CVE is still
found, and forgets the close once a complete scan no longer finds it, so
a CVE that comes back reopens the issue as before.
The platform API names the events the webhook needs (`webhook_events`);
Prüfwerk cannot change the webhook itself, so existing webhooks need
the Issues event added in Gitea. The finding history shows
"Im Ticket geschlossen von <login>".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Undecided findings are grouped on read, by target, tool, rule and file,
and by directory when a rule fires in three or more files of one
directory. A stored #464 group stays a group of its own. Nothing about
groups is stored.
- compliance-core: models::finding_group with the pure group_findings
and members_of, for the findings list and later the Heute inbox.
- GET /api/v1/finding-groups[?target=] lists the groups;
POST /api/v1/finding-groups/decide gives every undecided member the
same status through the bulk path (status history, issue sync), so
VEX and the evidence pack see ordinary per-finding changes.
- Findings list: Gruppiert / Einzeln toggle (default grouped) with group
cards, the AI's reason, the places, and Fehlalarm / Risiko akzeptiert
for all places of a group.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The findings page of one target (/findings?target=...) now opens with two
charts of its open findings: a bar per finding type stacked by severity
(one red scale, every segment a button), and a tree map of the folders
they are in (area = open findings, colour = the most severe). A click
opens the list narrowed to that type and severity, or to that folder; the
filter goes into the URL, a breadcrumb names it and leads back to the
charts. A "Tabelle" toggle shows the same numbers as tables.
- core: finding_breakdown (the shared DTO and the pure counting function;
open = Open, Triaged, NeedsReview as for tracker issues)
- agent: GET /api/v1/targets/{id}/finding-breakdown; the findings list
takes an anchored literal `path` folder filter and `status=undecided`
- dashboard: FindingsPage takes scan_type, severity and path from the
query (Route::findings(target) builds the plain list link)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The target's "Schwachstellen und VEX" card now opens with a grid of
severity rows against VEX-status columns (offen, in Pruefung, betroffen,
nicht betroffen, behoben), each count shaded on one blue scale and a
button into the CVE list narrowed to that cell. The choice sits in the
URL (?cve_severity=high&cve_vex=open), with a breadcrumb and a way back;
a table toggle shows the same numbers, and a tile counts the CVEs nobody
has assessed yet.
The agent counts the still-reported alerts in
GET /api/v1/targets/{id}/cve-matrix; the bucketing lives in
compliance-core so the dashboard narrows the list the same way.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The SBOM page's component tab opens, for one target, with two bar charts
(one hue, no legend; "Tabelle" shows the same numbers as tables):
- "Welches Update entfernt die meisten CVEs": per CVE group of #949 with
a fix, "openssl 3.0.11 -> 3.0.15" and "-3 CVEs", ranked by the CVEs the
update fixes, then by the worst severity; top 10, then "Alle anzeigen".
A bar opens that component's group card in place (breadcrumb
"Komponenten > openssl 3.0.11", "Zurueck zum Diagramm"). The card is
#949's own; only its visibility changes.
- "Komponenten nach Oekosystem": per package manager the components and
how many have a known vulnerability. A bar filters the component table
below to it and puts it in the URL: the new additive route
/sbom/ecosystem/:ecosystem?target=<id> renders the same page. The
package-manager select now shows the active filter.
Agent: GET /api/v1/targets/{id}/sbom-ecosystems counts the target's SBOM
components per package manager in one aggregation (tenant database, org
role gate as every route). The ranking and the filterable managers live
in compliance-core (sbom_ecosystems), shared with /sbom/filters.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The target's open CVE alerts are grouped by component (package, version,
purl) in compliance-core: the highest fixed version the advisories name
above the component's own, how many CVEs that update fixes, the CVEs per
severity (a CVE in several alerts counts once), KEV and the highest EPSS.
Agent:
- GET /api/v1/targets/{id}/cve-groups lists the groups, most severe first.
- PATCH /api/v1/targets/{id}/cve-groups/vex states one VEX status on every
open alert of a component: one statement per alert with the validation,
author and time of PATCH /api/v1/cves/{id}/vex, so the exports and the
CVE issue auto-close treat them as single decisions. Settled alerts keep
their statements; 404 when the component has no open alert.
Dashboard: the target's VEX section opens grouped ("Gruppiert") with one
card per component ("vite 5.4.21 -> 8.3.3 behebt 9 CVEs (1 hoch, ...)"),
"Nicht betroffen (alle N)" opening the same statement editor as
"Bewerten", and the rows on demand; "Einzeln" keeps the full list. The
severity badge of a row now uses the same rating as the group counts
(GitHub's MODERATE reads as medium, a CVSS-only alert gets its badge).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"Zu prüfen" now says which of the two cases put it there: the LLM triage
dismissed the finding as a likely false alarm ("KI: wohl Fehlalarm"), or it
confirmed it with too little confidence ("KI: unsicher"). The reason is read
from the verdict already stored on the finding (triage_action, confidence),
so findings from before this change get it too; the wire status stays
needs_review.
- core: ReviewReason, ReviewReason::of_verdict and Finding::review_reason;
the triage's confidence threshold and its action markers move to core.
- agent: apply_action decides through ReviewReason::of_verdict, so the
triage and the label cannot drift apart.
- dashboard: the list and the finding page show the reason instead of the
bare status, the list with the AI's rationale on hover; the finding page
confirms ("Fehlalarm bestätigen", false positive with the rationale as
reason) or rejects ("Doch prüfen", triaged) the AI's guess in one click,
for roles that may change a status.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
First part of t72, Prüfwerk metering (LB §2 Abs. 4–5, §7). This PR records what a scan is metered by. Nothing is counted or enforced yet; counters, the 6-per-day limit and the Prüftag cap come in the next PR.
## What changes
- **Included vs extra targets.** Each target stores `billing: included | extra`.
- The oldest active targets by `created_at` are included, up to the plan's `limits.included_targets` from the registry entitlement. The rest are extra.
- The split is refreshed before each scan and when a target is created. Archiving an included target moves the oldest extra one up.
- A plan without that key includes every target, which is every plan until the registry sends the limits. So this PR changes nothing for existing tenants.
- **Run attribution.** Each run records an `attribution`:
- `request`: the customer started it (dashboard or API).
- `support`: staff started it.
- `change`: something the customer changed, i.e. new commits, other uploads, or a live URL.
- `rescan`: only the Prüfwerk build changed.
For scheduled and webhook scans it's set where change detection decides, so our rescan after an update is no longer counted as a customer change. `uploads_changed` / `content_changed` don't depend on `UPLOAD_CHANGE_SKIP`.
- **`chargeable`.** Says whether the run counts once it completes:
- a request always counts;
- a change counts only on an extra target;
- rescans and support scans never count.
`scan.completed` now carries `attribution` and `counted` as properties.
- **Dashboard.** The targets list shows a "Zusätzliches Prüfobjekt" badge on an extra target.
## Tests
- **Core:** the included/extra split, attribution, and the contract table of what counts.
- **Agent:** `content_changed`/`uploads_changed`, the `included_targets` limit, reading a stored target's billing, and a Mongo integration test (`tests/target_billing.rs`): the oldest are included, and an extra target moves up on archive.
Not built locally, per the CI-only rule; CI is the compiler here.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Sharang Parnerkar <30073382+mighty840@users.noreply.github.com>
Reviewed-on: #927