Skip to content

Plan 320: require --public for any non-loopback bind - #6

Open
dbowm91 wants to merge 3 commits into
mainfrom
plan-320-public-bind-acknowledgment-hardening
Open

dbowm91 wants to merge 3 commits into
mainfrom
plan-320-public-bind-acknowledgment-hardening

Conversation

@dbowm91

@dbowm91 dbowm91 commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Require --public / public=True for any non-loopback bind (unicast LAN/public addresses as well as 0.0.0.0/::), closing the operator footgun where only unspecified addresses were gated.
  • Align the Rust CLI, Python ServeConfig / native runtime, stdlib-compat address intent, docs, and Plan 320 registry/closure records.
  • Preserve constructor-as-intent for Python stdlib-shaped servers that pass an explicit non-loopback address.

Test plan

  • cargo test -p eggserve-bin --lib (bind-gate unit tests)
  • Focused Python config validation tests (TestConfigValidation)
  • CI rust / supply-chain / python jobs green on this PR

Made with Cursor

CI Test and others added 3 commits November 17, 2026 20:49
Close the operator footgun where unicast LAN/public addresses could bind without acknowledgment; align CLI, Python ServeConfig/runtime, and docs.

Co-authored-by: Cursor <cursoragent@cursor.com>
Correct the five TLS seam defects found by the capability review at 26649bd
plus the reload-coherence gap found by its follow-up security review:

- Build every rustls server configuration with the ring provider explicitly
  instead of the process default, and drop the Python wheel's global
  install_default workaround.
- Validate TLS ALPN against HTTP/2 availability at build/start, and reject a
  contradictory snapshot at ServerHandle's reload swap before it becomes live.
- Map --header-timeout onto tls_handshake_timeout, matching the published
  security policy.
- Make the named-SNI identity ceiling order-independent; the optional default
  identity no longer counts toward it.
- Bound H3 QUIC receive windows and idle timeout to the VarInt range and report
  transport failures as InvalidTransportConfig instead of InvalidKey.

Milestone 321/322 implementation and closure records, the TLS identity roadmap,
the registry (next number 323), the CHANGELOG, and the affected docs are
included. The milestone records carry the exact verification commands and
outcomes, including the two pre-existing macOS-only test failures that keep
the broad verify wrapper red on this host.
Main allocated plans 320-325 to its post-audit batch, colliding with this
branch's 320-322. Resolve the numbering: 326 public-bind acknowledgment
tightening, 327 TLS substrate corrective, 328 reload ALPN coherence; next
milestone number 329. The two branch commits keep their historical numbers
in their messages.

Both sides' code is kept: main's systemd double-adoption guard, framing
rejection close, identity PEM bound, and dependency refresh, plus this
branch's provider-explicit rustls construction, ALPN/runtime validation at
build/start and at the reload swap, --header-timeout handshake bound,
order-independent identity ceiling, and typed H3 transport bounds.

Conflict resolution keeps `--public` acknowledgment-only while widening it to
any non-loopback bind; main's docs described the older wildcard-only gate.
Registry, roadmaps, CHANGELOG, and closure records are reconciled.

Verified before commit: fmt, workspace check, workspace tests, workspace and
Python clippy, MSRV base/http2/http3, tower/interop lanes (the known macOS-only
eggserve-server test still fails), focused TLS suites, and the topology gate.

This branch has not been deployed

No deployments
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