-
Notifications
You must be signed in to change notification settings - Fork 0
fix(hardening): production-hardening audit batches A–D (28-finding sweep) #250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
66147de
fix(security): bound client-controlled allocation counts (DoS class)
TinDang97 85c2ed7
fix(cluster): bound gossip PING task leak + non-blocking accept send
TinDang97 1d2baad
refactor(vector): fence experimental DiskANN cold tier + drop dead ve…
TinDang97 5611272
fix(hardening): APPEND 512MB cap + reject FT.* in MULTI on prod handlers
TinDang97 0065f02
fix(vector): abort GraphUnion merge on recall==0.0 total collapse
TinDang97 f01bef8
fix(vector): tombstone secondary fields on DEL + FT.INFO num_docs acc…
TinDang97 8ba54fa
fix(txn): route MULTI SORT/GEORADIUS STORE destination by its own shard
TinDang97 981d55a
fix(net): bound TLS handshake + cluster-bus body reads against slow-l…
TinDang97 34666a5
fix(xshard): bound cross-shard reply await against a wedged target shard
TinDang97 a8803f0
fix(aof): stop legacy replay at mid-stream corruption instead of resy…
TinDang97 2fd78ef
fix(checkpoint): exponential backoff on failed Finalize to stop WAL f…
TinDang97 7c2883c
fix(net): bind monoio central listener via SO_REUSEPORT
TinDang97 f1d6b15
docs(changelog): stamp production-hardening entries with PR #250
TinDang97 05c90fd
fix(hardening): address CodeRabbit review follow-ups on the 28-findin…
TinDang97 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🩺 Stability & Availability | 🟠 Major | ⚡ Quick win
Same missing-timeout gap on the monoio header read.
Mirrors the tokio-path finding above:
monoio_read_exact(&mut stream, 4)at Lines 289-294 only racesshutdown.cancelled(), so a peer that never sends the length header stalls this task/socket indefinitely on this runtime too.🛡️ Proposed fix
let len_data = monoio::select! { result = monoio_read_exact(&mut stream, 4) => { result.map_err(|e| anyhow::anyhow!(e))? } _ = shutdown.cancelled() => return Ok(()), + _ = monoio::time::sleep(GOSSIP_BODY_READ_TIMEOUT) => { + anyhow::bail!( + "gossip header read from {} timed out after {}s", + peer_addr, + GOSSIP_BODY_READ_TIMEOUT.as_secs() + ); + } };Also applies to: 287-294
🤖 Prompt for AI Agents