Bound compressed artifact temp writes #8

Merged
stephen merged 1 commit from harden-bounded-decompression into main 2026-06-20 19:55:08 +00:00
Owner

Compressed artifacts now stop materializing the verification tar as soon as the configured size cap is crossed, so high ratio payloads cannot fill runner temp before validation runs.

What changed

  • Route gzip and zstd decompression through a bounded temp write when RASTER_ARTIFACTS_MAX_TOTAL_BYTES is enabled.
  • Keep disabled cap behavior unchanged and clean the temp tar after refusal.
  • Add a gzip regression that proves the temp tar stops at cap plus one byte.

Testing

  • npm run check
  • npm test

Fixes rasterstate/download-artifact-action#6

Compressed artifacts now stop materializing the verification tar as soon as the configured size cap is crossed, so high ratio payloads cannot fill runner temp before validation runs. **What changed** - Route gzip and zstd decompression through a bounded temp write when RASTER_ARTIFACTS_MAX_TOTAL_BYTES is enabled. - Keep disabled cap behavior unchanged and clean the temp tar after refusal. - Add a gzip regression that proves the temp tar stops at cap plus one byte. **Testing** - npm run check - npm test Fixes rasterstate/download-artifact-action#6
Bound compressed artifact temp writes
All checks were successful
test / unit (pull_request) Successful in 22s
test / e2e (pull_request) Successful in 22s
e96201720a
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
rasterstate/download-artifact-action!8
No description provided.