Skip to content

Plans 320-324: post-audit security corrective - #5

Merged
dbowm91 merged 2 commits into
mainfrom
feat/auto-20261116-7cc8b1dc
Nov 17, 2026
Merged

dbowm91 merged 2 commits into
mainfrom
feat/auto-20261116-7cc8b1dc

Conversation

@dbowm91

@dbowm91 dbowm91 commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

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

  • 320 — QUIC advisory remediation. Resolves quinn-proto 0.11.19, quinn-udp 0.5.16, rustix 1.1.6, tokio 1.53.3 in every lockfile; adds the offline scripts/check-advisory-floors.py guard (wired into check-supply-chain.sh and verify.sh fast). Audits and denies are green with no advisory ignores; H3 stays experimental.
  • 321 — peerless-transport trust boundary. trust_unix now applies only to runtime-owned Unix listeners via one PeerTransport mapping shared by both pipelines; caller-owned streams are always opaque. No ConnectionContext field added; migration guide records the correction.
  • 322 — bounded Python stream producers. Closed-receiver checks before every pull and on empty yields; one producer permit per stream with a sanitized 503 on exhaustion; blocking-__next__ residual risk documented. Installed-wheel suite: 853 tests.
  • 323 — operator/repository hygiene. --public docs match the fail-safe parser; .cargo/audit.toml replaces the dead root file; core drops production tokio/signal; credential ignores with fixture negation; digest-pinned release images; corrected action inventory, threat-model paragraph, macOS static test, and MANIFEST provenance wording.
  • 324 — runtime/TLS hardening. Once-only systemd adoption before any fd borrow; ambiguous framing closes both pipelines; identity PEM bounded to 1 MiB before parsing. No TLS semantics or TlsError change.

Verification

  • bash scripts/check-supply-chain.sh passes 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).
  • Python wheel lane: 853 tests, OK.
  • H2/H3/TLS/interop/tower feature lanes, Python-bindings clippy, and fuzz check/clippy/fmt pass.

Closure records: plans/closure/cli-ops-observability/320-*, plans/closure/direct-h1-runtime/321-* and 324-*, plans/closure/python-facade/322-*, plans/closure/cli-ops-observability/323-*.

CI Test 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.
@dbowm91
dbowm91 merged commit 13608d2 into main Nov 17, 2026
5 checks passed
@dbowm91
dbowm91 deleted the feat/auto-20261116-7cc8b1dc branch November 17, 2026 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant