@@ -0,0 +1,205 @@
# Staging test plan: the batch after v0.4.5
Everything merged to `main` after the prod tag `v0.4.5` (`34688fa` ), tested
together on stage in one pass before the next prod promotion.
| PR | What |
|---|---|
| #470 | Build commit in the version handshake |
| #471 | Blocked workspace members are refused |
| #472 , #475 | Triage: a verdict for every critical/high finding, stored on rescans; a model that is down is not asked again |
| #473 | Bare semgrep rule ids, umlauts in control titles (migration at start) |
| #474 | .NET assemblies from DLL metadata mapped to NuGet ids |
| #476 | OSV and NVD lookups through the guarded client |
| #477 | Findings grouped per rule; gitleaks ignores `*.launch` debugger ids |
| #478 – #482 | iOS readiness 1– 5: Carthage and lifecycle, iOS rules, Unity targets, app variants, public samples (with the mobsfscan and Firebase fixes) |
| #484 | Groups take over their places' decisions (#483 ) |
**Customer-visible on the next prod rescan ** is marked * * [visible]**: these
change what a customer sees on their existing targets, without them doing
anything. Everything else needs a new upload, a staff action, or is internal.
## Setup
- Stage dashboard: `https://pruefwerk-stage.breakpilot.com` , a test tenant
with an IT-admin and a member account, and a Gitea tracker configured on
the targets you upload (for the issue checks).
- Fixtures are zipped directories of this repository, uploaded as **Archiv **
in the wizard. `fixtures/nightly/…` are also scanned by the nightly job;
`fixtures/staging/…` exist for this plan only.
- Logs: the stage agent's container log. Each check names the line to grep.
- Agent start (once, after the deploy): grep `migrated stored findings` (#473 ;
absent when there was nothing to migrate) and confirm the agent is healthy.
## Checks
### 1. #470 Version handshake
- **Do:** open the portal's staff dashboard, or `GET /api/v1/platform/version`
on the stage agent.
- **Expect:** `"version": "0.4.5"` and a `"commit"` of the deployed `main` ; the
portal shows `Prüfwerk v0.4.5 · <8 characters>` .
- **Log:** none.
### 2. #471 Blocked members
- **Do:** in the portal, block the member account in the workspace; sign in to
Prüfwerk with it; then unblock it.
- **Expect:** blocked: only the page **Zugang gesperrt ** , API calls answer
`403 {"error":"MEMBER_BLOCKED"}` (up to 60 s after the block); unblocked:
access again within 60 s. Support access to the same workspace works
throughout.
- **Log:** none (a 403 in the access log).
- **[visible]** to a blocked member only.
### 3. #472/#475 Triage
- **Do:** rescan a target with critical/high findings (e.g.
`fixtures/nightly/mobile/android-insecure` , or any earlier stage target).
- **Expect:** every critical/high finding has a verdict on its page
(card **Einschätzung ** ); dismissed and low-confidence ones are
**Zu prüfen ** (needs review), never a false positive; lows carry
"skipped: low …". Findings an earlier scan stored now get their verdict.
- **Log:** one line per scan: `LLM triage: N findings (U distinct); triaged …` .
If the model is down: `LLM triage: every call at once failed; the model is not answering`
and the scan still completes.
- **[visible]** triage verdicts and **Zu prüfen ** appear on findings that
had none.
### 4. #473 Rule ids and umlauts
- **Do:** open a semgrep finding of a target scanned before the deploy (e.g.
`fixtures/nightly/archive-order-intake` ), then rescan it.
- **Expect:** the rule reads `cra-ai-…` without a `tmp.` prefix; the rescan
creates no new findings for the same code (same fingerprints); CRA control
titles are spelled with umlauts (**Minimale Angriffsfläche**,
**Integritätsprüfung ** , not "Angriffsflaeche", "Integritaetspruefung").
- **Log:** at start, `migrated stored findings` with `rule_ids=…` .
- **[visible]** rule ids and control titles change on existing findings.
Existing tracker issues keep their old titles.
### 5. #474 NuGet ids from DLLs
- **Do:** upload a tree holding `bin/Ionic.Zip.dll` from the DotNetZip 1.9.1.5
package (`https://www.nuget.org/api/v2/package/DotNetZip/1.9.1.5` , a zip;
the DLL is `lib/net20/Ionic.Zip.dll` ).
- **Expect:** the SBOM lists `pkg:nuget/DotNetZip@1.9.1.5` with
`GHSA-7378-6268-4278` ; an assembly that maps to nothing is listed under
**Nicht ausgeführt ** as `Nicht abgeglichen: NuGet: …` .
- **Log:** none specific.
- **[visible]** for .NET targets with DLLs: new CVE findings.
### 6. #476 Guarded CVE lookups
- **Do:** scan `fixtures/nightly/py-requirements` .
- **Expect:** its CVEs appear as before (OSV reached through the guarded
client); no **CVE-Abgleich unvollständig ** entry.
- **Log:** no `is not a public address` or `is a local or internal name` near
the CVE stage (the guard's refusals).
### 7. #477 Grouping and `.launch`
- **Do:** upload `fixtures/staging/group-and-launch` .
- **Expect:** one finding **The app logs information ** (mobsfscan
`android_logging` ) listing 7 places in `PumpLog.java` ; no gitleaks finding
in `firmware/PumpCtl Debug.launch` (gitleaks reports its probe id; Prüfwerk
drops it). With a tracker: one issue for the group, listing the places.
- **Log:** none for a first scan; on a target that had single findings before:
`resolved findings the scan no longer reports` with `grouped=…` .
- **[visible]** on rescans of existing targets: single low/info findings of a
rule that fires more than 5 times are closed as grouped, their issues closed
with a comment ("…alle Stellen sind jetzt ein Befund…"), and one new group
finding with its own issue appears. Gitleaks findings in `*.launch` files
are closed as no longer found.
### 8. #484 Group decisions (#483)
The tree must change between two scans of one target, and an archive can only
be added in the dashboard, not replaced. So this check uses a git target: a
scratch repository on the stage Gitea, onboarded as a repository.
All-same:
1. Commit the contents of `fixtures/staging/group-decisions/v1` and scan: five
single **The app logs information ** findings (5 places, no group).
2. Mark all five **Fehlalarm – Regel ** .
3. Commit the contents of `v2-same` over it (the same five lines, one of them
with a second log call, so the rule fires 6 times at the same 5 places) and
rescan.
- **Expect:** one group finding with status **Fehlalarm – Regel ** , history entry
"Von den einzeln bewerteten Stellen übernommen: Alle waren gleich markiert."
(reason "inherited from 5 grouped findings"); its places are listed as
`PumpEvents.java:9 [marked false_positive]` ; no issue is opened for it.
- **Log:** `group inherited the decision on all its places` .
Mixed: repeat 1– 2 on a second repository, then commit `v2-mixed` (two new
places) and rescan.
- **Expect:** the group stays **Offen ** ; the five marked places carry
`[marked false_positive]` , the two new ones nothing.
- **[visible]** groups that #477 created open although a person had marked all
their places take that decision on the next rescan, and their issues close
with a comment.
### 9. #478 iOS 1: Carthage and lifecycle
- **Do:** upload `fixtures/nightly/mobile/ios-carthage-legacy` .
- **Expect:** SBOM: `carthage` components; grpc-swift 1.0.0 with 4 GHSA
advisories; **Nicht ausgeführt ** : `Nicht abgeglichen: Carthage: PumpSDK 3.1.0` .
Findings: **The app installs on iOS 10.0, which receives no security
updates** (Low) and **Swift 3.0 cannot be built with a supported Xcode **
(Medium), both under cra-ai-22.
- **[visible]** iOS targets with old deployment targets get these lifecycle
findings.
### 10. #479 iOS 2: rules and app settings
- **Do:** upload `fixtures/nightly/mobile/ios-app-settings` .
- **Expect:** two **Codeanalyse ** findings for secrets in UserDefaults
(Swift line 7, Objective-C line 4, cra-ai-14); tool **iOS-App-Einstellungen ** :
URL scheme `pumplink` (Low), Bluetooth and local network (Info), contacts
requested without a usage string (Low, `Session.swift:12` ).
- **[visible]** iOS targets: new findings of these kinds.
### 11. #480 iOS 3: Unity build targets
- **Do:** upload `fixtures/nightly/mobile/unity-mobile` .
- **Expect:** suggested types iOS-App and Android-App; findings for iOS 12.0
and Android API 22 (Low, cra-ai-22); **Nicht ausgeführt ** shows
**Von Unity erzeugtes App-Projekt ** twice (iOS/Xcode, Android/Gradle).
- **[visible]** Unity projects with real bundle ids: new lifecycle findings and
the generated-project note.
### 12. #481 iOS 4: app variants
- **Do:** upload `fixtures/nightly/mobile/legacy-adt-unity` .
- **Expect:** the target page lists `app_variant=Pump Phone (adt)` and
`app_variant=Pump Tablet (adt)` under **Erkannte Merkmale ** ; each manifest
finding appears twice, once per app, with the variant under its title; the
filter **Alle Varianten ** narrows the list to one app; tracker issues are
separate, with the variant in the title (`[medium] mobsfscan (Pump Tablet): …` ).
- **[visible]** repositories with several apps: the variant on every finding;
new issues carry it in their title (existing issues keep theirs).
### 13. #482 iOS 5: public samples and fixes
- **Do:** upload the SwiftUI sample
(`https://codeload.github.com/nalexn/clean-architecture-swiftui/zip/9eca97b8cfff96a14084b564b1fefd949c93d232` )
and the Android one
(`https://codeload.github.com/android/nowinandroid/zip/a49ed253d75e61a2b6ab80a8da677b57437b08eb` ).
- **Expect:** SwiftUI: mobile code analysis completes, no
"mobsfscan wurde nicht fertig", only the Swift packages without
`Package.resolved` under **Nicht ausgeführt ** . Now in Android: no
generic-api-key findings for the Firebase Storage image URLs; 7 mobsfscan
findings labelled `app` / `app-nia-catalog` .
- **Log:** SwiftUI: `mobsfscan could not read every file in full` (a warning,
not a failure).
- **[visible]** iOS apps with newer Swift now get mobile analysis; generic-api-key
findings on Firebase Storage URLs close as no longer found.
## After the pass
- The nightly job on `main` is green with the new mobile targets.
- Note any deviation per check number; the promotion waits for them.