Repository navigation
Harden crucible-kueue against log, quantity, and results DoS - #548
Merged
Merged
Conversation
wseaton
enabled auto-merge
December 1, 2026 23:42
github-merge-queue
Bot
removed this pull request from the merge queue due to a conflict with the base branch
Dec 2, 2026
- Cap paged workload_logs offset at 64 MiB, add a timeout to log_page and follow_log stream open, and switch follow_log's rolling buffer to VecDeque. - Enforce non-negative and 100Ti upper bounds on parsed resource quantities so kube_quantity arithmetic cannot overflow and panic. - Unconditionally reserve the crucible-results container/volume name in manifest validation, cap directory recursion depth and visited dirs in results::Walk, enforce MAX_FILES and cumulative byte limits in Reader::unpack, run unpack in spawn_blocking, use saturating_add for total_bytes, and time-bound collector log reads. Assisted-by: Claude
wseaton
force-pushed
the
kueue-dos-results-hardening
branch
from
December 2, 2026 00:09
f99ce62 to
e611fe5
Compare
wseaton
enabled auto-merge
December 2, 2026 00:09
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Batch 2 of the crucible-kueue audit:
workload_logsDoS & timeouts): capoffsetat 64 MiB (MAX_PAGED_LOG_OFFSET), wraplog_pageandfollow_logstream open in timeouts, and useVecDequeforfollow_log's rolling buffer.ParsedQuantityoverflow panics): bound container resource requests in[0, 100Ti]sokube_quantityarithmetic cannot overflow and panic insidenormalize().crucible-resultsspoofing & archive DoS): unconditionally reserve thecrucible-resultscontainer/volume name inmanifest.rs, cap directory recursion depth (64) and visited dirs inresults::Walk, enforceMAX_FILESand cumulative byte cap inReader::unpack, rununpackonspawn_blocking, usesaturating_addfortotal_bytes, and time-bound collector log streaming.