Files
pruefwerk/compliance-agent
Sharang ParnerkarandClaude Opus 5.5 a5fe0da147
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 6m19s
feat(evidence): the evidence pack of a target, served as a ZIP (#285)
The pilot's evidence is served on request and pulled by breakpilot's
document service, which writes the reports; Prüfwerk renders no PDF.

GET /api/v1/targets/{id}/evidence-pack returns a ZIP with:
- oscal-assessment-results.json (CRA Annex I, from the findings' refs)
- sbom.cdx.json and sbom.spdx.json
- findings.json and findings.csv (formula-safe cells)
- cve-alerts.json
- manifest.json: each file's sha256 and size, the target, the last scan
  run (status, times, skipped stages), the image's tool versions and the
  sha256 of the CRA control map that produced the mapping.

404 for an unknown target, 413 past 50,000 findings or the SBOM export
limit; built off the async runtime; each pack is a usage event.

The SBOM export now uses the same document builders (evidence::sbom_docs)
and produces the same documents as before.

Dashboard: "Nachweispaket herunterladen" on each target's details, streamed
through the dashboard server (FileStream) rather than held in memory.

Tests: the pack holds every file and the manifest hashes match; CSV
quoting and formula defusing; both SBOM formats; an integration test
(MongoDB) of a target with a pentest finding and an unknown target.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
2026-09-23 17:14:04 +02:00
..