fix: remove cumulative ClamAV scan-size cap #129
No reviewers
Labels
No labels
app-migration
bug
ci-cd
cluster
Documentation
duplicate
enhancement
gpu
invalid
networking
question
security
Storage
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Homelab/workflows!129
Loading…
Reference in a new issue
No description provided.
Delete branch "kiyi/clamav-remove-scan-size-cap"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The 195 MB Zarf binary in base-images run 302 exceeded ClamAV’s cumulative 16 GiB processing allowance, preventing a complete image scan. Following the owner’s explicit request, set
--max-scansize=0for clamscan andMaxScanSize 0for clamd. This removes only the aggregate expansion/repeated-scan cap.Explicitly retain the existing two-minute per-input engine timeout with
--max-scantime=120000/MaxScanTime 120000. Preserve the per-file cap, image file/total/export bounds, recursion/file-count defaults, bounded batches, two workers, four-item queue, symlink protections, private socket and cleanup. The 180-minute overall job timeout stays unchanged. Malware detections, timeouts, remaining limit failures, scanner errors and incomplete image scans still block; no approved GO selectors or workflow/job/status names change. Diagnostics useconfigured_limit_bytes: 0for the disabled cap.Validation: 41 focused scanner/report regressions pass in WSL; one real Trivy-converter integration test is skipped locally and remains required in hosted Library checks. The existing scaffold check passes all 16 mocked cases. Fatal/undefined-name lint, diff checks and the active Gitleaks hook pass.
Hosted CI and a real candidate image scan remain required. After review, release and promote this library change, then rerun base-images PR #56. This PR prepares the change; no release, scan dispatch or image publication has been performed.
Reviewed exact head
ff8e30bb14. The standalone clamscan and per-image clamd paths both set the cumulative MaxScanSize to 0 while explicitly keeping MaxScanTime at 120000 ms and MaxFileSize at 2000M; batching, image export/total limits, two-worker/four-queue bounds, symlink restrictions and fail-closed limit/error handling remain in the inspected source. Focused tests assert both scanner configurations and retained rejection behavior. This is a malware-scanner library change, not a UDS deployment, admission, policy, or route change. Source review approved; Library checks, workflow acceptance and repository-security checks remain pending, and a real image candidate scan/release are separate acceptance gates. No merge authorized.CI at submission: pending. This is a source-review approval, not a scan verdict; required checks still block merge.