Epic · Nightly scan coverage: every target type, package manager and finding kind #309

Open
opened 2026-09-21 17:08:42 +00:00 by sharang · 0 comments
Owner

Part of #253 (Production MVP). Agreed 2026-09-21.

Goal. Every night, prove that customer-facing scans still work: scan a corpus that covers every target type, every package manager and lockfile variant, and every finding kind, and compare the results with golden baselines. A regression, like an image change that breaks a tool, turns the nightly red before a customer sees it.

Decisions

  • Where it runs: in CI against the built agent image (deterministic; catches image and tool regressions), plus a small staging smoke through a nightly tenant (catches auth, entitlement and deploy-config breakage).
  • Fixtures: synthetic fixtures where every finding is planted on purpose, plus a few real projects pinned to fixed commits (itoa, the Zephyr example application, the Apache-2.0 CODESYS samples).
  • Assertions:
    • exact for deterministic output: SBOM components, rule ids, planted secrets, stage statuses;
    • at least these for CVEs and semgrep's auto rules, whose sources change daily;
    • never gating for the LLM stages.

Coverage

  • Target types: web_app, backend_service, desktop_app, android_app, ios_app, firmware_bare_metal, firmware_rtos, embedded_linux_yocto (recorded as unsupported) and plc_sps (CODESYS now, TIA with MVP-2A).
  • Inputs: git repo, source-archive upload, PLC project, and the Firmwerk bundle import (MVP-2B). Firmware image, APK/IPA and container reference depend on #319.
  • Finding kinds:
    • SAST: semgrep auto rules and the CRA rules;
    • secrets (gitleaks); GDPR and OAuth patterns; lint (ruff);
    • CVEs via OSV per ecosystem, and via NVD by CPE for CODESYS;
    • SBOM licences, the code graph, PLC rules, CRA control refs;
    • source_only stages recorded as skipped.

Where it sits in the chain

Right after the last MVP-0 item (#294), in parallel with MVP-1. That is earlier than the plan's MVP-4 slot for #188, for three reasons:

  • Safety net. It protects every later change: MVP-1 middleware, MVP-2 parsers, image and tool bumps.
  • Scope input. The gaps it surfaces (#317, #319) feed MVP-2 scope decisions.
  • It grows with the MVP. The TIA fixtures land with MVP-2A and the Firmwerk import fixtures with MVP-2B. The staging smoke follows MVP-1's entitlement and usage work.

It is the regression evidence for the MVP-5 staging soak and the §13 sign-off.

Sub-issues

  • #188 Harness: built image, fixture corpus, golden baselines, alerting
  • #310 Fixtures: JavaScript/TypeScript and Python
  • #311 Fixtures: Rust, Go, JVM, .NET
  • #312 Fixtures: PHP, Ruby, Swift, CocoaPods, Dart, Elixir, C/C++, mobile
  • #313 Fixtures: firmware and RTOS (+ Firmwerk import with MVP-2B)
  • #314 Fixtures: PLC (+ TIA with MVP-2A)
  • #315 Fixtures: robustness and failure paths
  • #316 Staging smoke via a nightly tenant
  • #317 Bug: Zephyr firmware SBOM gaps
  • #319 Advertised but unimplemented scan types
  • #318 Bug: DAST dig dependency (R1)
Part of #253 (Production MVP). Agreed 2026-09-21. **Goal.** Every night, prove that customer-facing scans still work: scan a corpus that covers **every target type, every package manager and lockfile variant, and every finding kind**, and compare the results with golden baselines. A regression, like an image change that breaks a tool, turns the nightly red before a customer sees it. ## Decisions - **Where it runs:** in CI against the **built agent image** (deterministic; catches image and tool regressions), **plus** a small staging smoke through a nightly tenant (catches auth, entitlement and deploy-config breakage). - **Fixtures:** **synthetic fixtures** where every finding is planted on purpose, **plus** a few real projects pinned to fixed commits (itoa, the Zephyr example application, the Apache-2.0 CODESYS samples). - **Assertions:** - **exact** for deterministic output: SBOM components, rule ids, planted secrets, stage statuses; - **at least these** for CVEs and semgrep's auto rules, whose sources change daily; - **never gating** for the LLM stages. ## Coverage - **Target types:** `web_app`, `backend_service`, `desktop_app`, `android_app`, `ios_app`, `firmware_bare_metal`, `firmware_rtos`, `embedded_linux_yocto` (recorded as unsupported) and `plc_sps` (CODESYS now, TIA with MVP-2A). - **Inputs:** git repo, source-archive upload, PLC project, and the Firmwerk bundle import (MVP-2B). Firmware image, APK/IPA and container reference depend on #319. - **Finding kinds:** - SAST: semgrep auto rules and the CRA rules; - secrets (gitleaks); GDPR and OAuth patterns; lint (ruff); - CVEs via OSV per ecosystem, and via NVD by CPE for CODESYS; - SBOM licences, the code graph, PLC rules, CRA control refs; - `source_only` stages recorded as skipped. ## Where it sits in the chain Right **after the last MVP-0 item (#294)**, **in parallel with MVP-1**. That is earlier than the plan's MVP-4 slot for #188, for three reasons: - **Safety net.** It protects every later change: MVP-1 middleware, MVP-2 parsers, image and tool bumps. - **Scope input.** The gaps it surfaces (#317, #319) feed MVP-2 scope decisions. - **It grows with the MVP.** The TIA fixtures land with MVP-2A and the Firmwerk import fixtures with MVP-2B. The staging smoke follows MVP-1's entitlement and usage work. It is the regression evidence for the MVP-5 staging soak and the §13 sign-off. ## Sub-issues - [ ] #188 Harness: built image, fixture corpus, golden baselines, alerting - [ ] #310 Fixtures: JavaScript/TypeScript and Python - [ ] #311 Fixtures: Rust, Go, JVM, .NET - [ ] #312 Fixtures: PHP, Ruby, Swift, CocoaPods, Dart, Elixir, C/C++, mobile - [ ] #313 Fixtures: firmware and RTOS (+ Firmwerk import with MVP-2B) - [ ] #314 Fixtures: PLC (+ TIA with MVP-2A) - [ ] #315 Fixtures: robustness and failure paths - [ ] #316 Staging smoke via a nightly tenant - [ ] #317 Bug: Zephyr firmware SBOM gaps - [ ] #319 Advertised but unimplemented scan types - [ ] #318 Bug: DAST `dig` dependency (R1)
sharang added this to the Production MVP milestone 2026-09-21 17:08:42 +00:00
sharang added the epicenhancement labels 2026-09-21 17:08:42 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: platform/pruefwerk#309