docs(release): staging test plan for the batch after v0.4.5
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) Successful in 10m36s

One pass on stage before the next prod promotion, for everything merged
after v0.4.5 (34688fa): #470, #471, #472/#475, #473, #474, #476, #477,
#478-#482 and #484 (#483). Per check: the fixture or stage action, the
expected result, the log line to grep, and whether it changes what a
customer sees on the next prod rescan ([visible]).

- docs/release/staging-test-plan-after-v0.4.5.md; docs/release/ is not
  published (VitePress srcExclude, like docs/design/).
- fixtures/staging/: group-and-launch (a rule firing at 7 places, a
  .launch file whose probe id gitleaks reports and Prüfwerk drops) and
  group-decisions v1/v2-same/v2-mixed for #483. Checked with the agent
  image's mobsfscan and gitleaks 8.21.2.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
This commit is contained in:
Sharang ParnerkarandClaude Opus 5.5 committed 2026-10-06 03:13:38 +02:00
1 parent 70e7bc9533
commit 47dc9206fa
12 files changed
+300 -2

No files matched your search

+3 -2
View File
@@ -18,8 +18,9 @@ export default withMermaid(defineConfig({
ignoreDeadLinks: [
/localhost/,
],
// Internal design notes live next to the docs but are not published.
srcExclude: ['design/**'],
// Internal design notes and release test plans live next to the docs but
// are not published.
srcExclude: ['design/**', 'release/**'],
themeConfig: {
logo: '/logo.svg',
// The navbar shows the BreakPilot wordmark instead (theme/components/Wordmark.vue).
@@ -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.
+10
View File
@@ -0,0 +1,10 @@
# Staging fixtures
Small trees for the staging test plans in `docs/release/`, uploaded by hand as
source archives (zip the directory). Unlike `fixtures/nightly/`, nothing runs
them automatically.
| Directory | What it shows |
|---|---|
| `group-and-launch` | `android_logging` fires at 7 places in `PumpLog.java`, so mobsfscan's findings become one group (#464/#477). `firmware/PumpCtl Debug.launch` holds a probe id gitleaks' generic rule reports, which Prüfwerk drops in Eclipse launch files (#477). |
| `group-decisions/v1`, `v2-same`, `v2-mixed` | #483: `v1` has `android_logging` at 5 places (single findings; mark them). `v2-same` keeps the same 5 places with a second log call on one line, so the rule fires 6 times and is grouped with every place already decided: the group takes the decision. `v2-mixed` adds two new places: the group stays open and lists each place's decision. |
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.pump">
<application android:label="Pump" android:allowBackup="false" />
</manifest>
@@ -0,0 +1,16 @@
package com.example.pump;
import android.util.Log;
/** Logs every pump event, which a release build should not. */
public class PumpLog {
private static final String TAG = "Pump";
public void started(String id) { Log.d(TAG, "started " + id); }
public void stopped(String id) { Log.d(TAG, "stopped " + id); }
public void flow(double litres) { Log.d(TAG, "flow " + litres); }
public void pressure(double bar) { Log.d(TAG, "pressure " + bar); }
public void alarm(String code) { Log.w(TAG, "alarm " + code); }
public void paired(String device) { Log.i(TAG, "paired " + device); }
public void user(String name) { Log.d(TAG, "user " + name); }
}
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="com.st.stm32cube.ide.mcu.debug.launch.launchConfigurationType">
<stringAttribute key="com.st.stm32cube.ide.mcu.debug.launch.access_port_id" value="0"/>
<listEntry value="probe_token=7c1e5b2d4f6a8c0e9f3a17b4d2e6"/>
<stringAttribute key="org.eclipse.cdt.launch.PROGRAM_NAME" value="Debug/PumpCtl.elf"/>
</launchConfiguration>
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.pump">
<application android:label="Pump" android:allowBackup="false" />
</manifest>
@@ -0,0 +1,14 @@
package com.example.pump;
import android.util.Log;
/** Logs pump events, which a release build should not. */
public class PumpEvents {
private static final String TAG = "Pump";
void started(String id) { Log.d(TAG, "started " + id); }
void stopped(String id) { Log.d(TAG, "stopped " + id); }
void flow(String litres) { Log.d(TAG, "flow " + litres); }
void pressure(String bar) { Log.d(TAG, "pressure " + bar); }
void alarm(String code) { Log.w(TAG, "alarm " + code); }
}
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.pump">
<application android:label="Pump" android:allowBackup="false" />
</manifest>
@@ -0,0 +1,16 @@
package com.example.pump;
import android.util.Log;
/** Logs pump events, which a release build should not. */
public class PumpEvents {
private static final String TAG = "Pump";
void started(String id) { Log.d(TAG, "started " + id); }
void stopped(String id) { Log.d(TAG, "stopped " + id); }
void flow(String litres) { Log.d(TAG, "flow " + litres); }
void pressure(String bar) { Log.d(TAG, "pressure " + bar); }
void alarm(String code) { Log.w(TAG, "alarm " + code); }
void paired(String device) { Log.i(TAG, "paired " + device); }
void user(String name) { Log.d(TAG, "user " + name); }
}
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.pump">
<application android:label="Pump" android:allowBackup="false" />
</manifest>
@@ -0,0 +1,14 @@
package com.example.pump;
import android.util.Log;
/** Logs pump events, which a release build should not. */
public class PumpEvents {
private static final String TAG = "Pump";
void started(String id) { Log.d(TAG, "started " + id); }
void stopped(String id) { Log.d(TAG, "stopped " + id); }
void flow(String litres) { Log.d(TAG, "flow " + litres); }
void pressure(String bar) { Log.d(TAG, "pressure " + bar); }
void alarm(String code) { Log.w(TAG, "alarm " + code); Log.d(TAG, "raised " + code); }
}