Skip to content

Commit fb6da42

Browse files
authored
fix(api): prevent /tmp saturation from compliance report generation (#10874)
1 parent 65fd333 commit fb6da42

5 files changed

Lines changed: 1102 additions & 133 deletions

File tree

api/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ All notable changes to the **Prowler API** are documented in this file.
2828

2929
- Attack Paths: Neo4j driver `connection_acquisition_timeout` is now configurable via `NEO4J_CONN_ACQUISITION_TIMEOUT` (default lowered from 120 s to 15 s) [(#10873)](https://github.com/prowler-cloud/prowler/pull/10873)
3030

31+
### 🐞 Fixed
32+
33+
- `/tmp/prowler_api_output` saturation in compliance report workers: the final `rmtree` in `generate_compliance_reports` now only waits on frameworks actually generated for the provider (so unsupported frameworks no longer leave a placeholder `results` entry that blocks cleanup), output directories are created lazily per enabled framework, and both `generate_compliance_reports` and `generate_outputs_task` run an opportunistic stale cleanup at task start with a 48h age threshold, a per-host `fcntl` throttle, a 50-deletions-per-run cap, and guards that protect EXECUTING scans and scans whose `output_location` still points to a local path (metadata lookups routed through the admin DB so RLS does not hide those rows) [(#10874)](https://github.com/prowler-cloud/prowler/pull/10874)
34+
3135
---
3236

3337
## [1.25.3] (Prowler v5.24.3)

0 commit comments

Comments
 (0)