Pilot: extract .tar / .tar.gz uploads; an unextractable archive is a failure, not a clean scan #335

Closed
opened 2026-09-23 10:32:57 +00:00 by sharang · 0 comments
Owner

Part of the pilot epic. P0.

Only zip archives are extracted (ingest/blob.rs). A .tar.gz upload is copied as a single file, so semgrep and gitleaks scan the archive itself and the firmware SBOM is skipped. Only an unsurfaced archive_unextracted fact is recorded, and the scan still reads "completed".

Scope

  • Extract .tar, .tar.gz and .tgz under the same ExtractLimits as zip (entries, total bytes, path traversal).
  • Unwrap a single top-level folder, as for zip.
  • An archive that cannot be unpacked is a recorded failure, not an empty "completed" scan.
  • Add a nightly fixture uploaded as a .tar.gz.
Part of the pilot epic. P0. Only zip archives are extracted (`ingest/blob.rs`). A `.tar.gz` upload is copied as a single file, so semgrep and gitleaks scan the archive itself and the firmware SBOM is skipped. Only an unsurfaced `archive_unextracted` fact is recorded, and **the scan still reads "completed"**. **Scope** - Extract `.tar`, `.tar.gz` and `.tgz` under the same `ExtractLimits` as zip (entries, total bytes, path traversal). - Unwrap a single top-level folder, as for zip. - An archive that cannot be unpacked is a recorded failure, not an empty "completed" scan. - Add a nightly fixture uploaded as a `.tar.gz`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: platform/pruefwerk#335