Repository navigation
Plans 320-324: post-audit security corrective - #5
Merged
Merged
Conversation
added 2 commits
November 17, 2026 13:02
Five corrective milestones derived from the 2026-11-16 read-only security audit, each with an implementation plan, a closure record, and registry and roadmap status. Plan 320 - QUIC advisory remediation. The root advisory gate was red on quinn-proto 0.11.18 (RUSTSEC-2026-0523, -0524), quinn-udp 0.5.15 (RUSTSEC-2026-0538), and carried unsound rustix 1.1.4 (RUSTSEC-2026-0486) and tokio 1.52.3/1.53.1 (RUSTSEC-2026-0386). Precise updates in every lockfile resolve 0.11.19 / 0.5.16 / 1.1.6 / 1.53.3; cargo metadata and the normalized feature trees differ only by those versions, the H3 protocol crates did not move, and the default graphs remain QUIC-free. cargo audit and cargo deny are green on the root, Python, and fuzz closures with no advisory ignore added. scripts/check-advisory-floors.py is a new offline guard with a 20-check mutation self-test, wired into check-supply-chain.sh before the network audits and into verify.sh fast. H3 stays experimental. Plan 321 - peerless-transport trust boundary. trust_unix trusted every connection with remote_addr: None, including caller-owned byte streams. A new internal PeerTransport (Socket/Unix/Opaque) carries the accepting owner's knowledge to one trusts_forwarded mapping used by both the direct and compatibility pipelines. Runtime-owned Unix listeners keep trust_unix; caller-owned streams are always opaque, even when handed a for_unix context. No ConnectionContext field was added; the only new public surface is doc hidden compatibility plumbing. TCP/PROXY/H3 behavior is unchanged, and the migration guide records the security correction. Plan 322 - bounded Python stream producers. Response.stream producers now check receiver closure before every pull and in the empty-chunk branch, so a b""-forever iterator stops. Each producer holds one admission permit for its lifetime, released exactly once on every exit path; capacity reuses max_python_callbacks through an independent semaphore, and exhaustion is a sanitized 503 before response start. A blocking __next__ remains uninterruptible and is documented as residual risk. The installed-wheel suite passes 853 tests. Plan 323 - operator and repository hygiene. --public documentation now matches the fail-safe parser (the flag acknowledges a wildcard bind; it does not change the address) with a pinning test. cargo-audit policy moved to .cargo/audit.toml, the dead root audit.toml is gone, and deny.toml remains the cargo-deny policy. Core no longer enables tokio/signal in production (examples use a dev-only feature, which drops signal-hook-registry from the fuzz lockfile). Credential ignore patterns exclude the tracked TLS fixture; release images are digest-pinned; the action inventory matches the workflows; the corrupted threat-model opening is restored from Git history; the macOS static test compares canonical paths; the release MANIFEST is documented as integrity data, not signed provenance. Plan 324 - runtime and TLS hardening. ServerBuilder adopts each systemd descriptor at most once and rejects a duplicate index or name before the fd is borrowed. Ambiguous request framing closes the connection in both pipelines. Identity certificate/key PEM input is bounded to 1 MiB before parsing for in-memory and file loads. No TLS identity, trust, client-auth, or reload semantics changed, and no TlsError variant was added. No publication, tag, or version bump is included.
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.
Implements the five corrective plans derived from the 2026-11-16 security audit. Each has an implementation plan, a closure record, and registry/roadmap status; no publication, tag, or version bump is included.
Plans
quinn-proto 0.11.19,quinn-udp 0.5.16,rustix 1.1.6,tokio 1.53.3in every lockfile; adds the offlinescripts/check-advisory-floors.pyguard (wired intocheck-supply-chain.shandverify.sh fast). Audits and denies are green with no advisory ignores; H3 stays experimental.trust_unixnow applies only to runtime-owned Unix listeners via onePeerTransportmapping shared by both pipelines; caller-owned streams are always opaque. NoConnectionContextfield added; migration guide records the correction.__next__residual risk documented. Installed-wheel suite: 853 tests.--publicdocs match the fail-safe parser;.cargo/audit.tomlreplaces the dead root file; core drops productiontokio/signal; credential ignores with fixture negation; digest-pinned release images; corrected action inventory, threat-model paragraph, macOS static test, and MANIFEST provenance wording.TlsErrorchange.Verification
bash scripts/check-supply-chain.shpasses end-to-end (guard + both audits + both denies).cargo +1.89 check --workspace --all-targets --locked, workspace clippy, and the full workspace test suite pass (the one local failure,application_server_qualification_297::app_bounded_body_accepts_and_over_limit_rejects, reproduces identically at the pristine baseline on macOS and is recorded in the closures).Closure records:
plans/closure/cli-ops-observability/320-*,plans/closure/direct-h1-runtime/321-*and324-*,plans/closure/python-facade/322-*,plans/closure/cli-ops-observability/323-*.