1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//! Shared proxy/TLS utilities.
//!
//! This module used to host the reverse-proxy server and its request pipeline.
//! That mode was unwired from the binary in ada6f30 (2025-11-30) and removed in #975; what is left
//! is the TLS and listener machinery the imposter path and the intercept listener share.
//!
//! # Module Structure
//!
//! - `tls` - TLS acceptor construction and session resumption
//! - `outbound_tls` - the shared trust policy for connections Rift initiates (#974)
//! - `client_identity` - a `proxy` stub's client certificate for an mTLS upstream (#1609)
//! - `intercept_ca` - the TLS-MITM certificate authority and per-SNI resolver
//! - `truststore` - PKCS#12 / JKS export of that CA
//! - `network` - listener utilities (SO_REUSEPORT) and accept-error classification
//! - `preface` - bounded HTTP/1-vs-HTTP/2 detection for the `auto::Builder` listeners (#1030)
pub
pub
// Re-export public API types
// These are used by main.rs and may be used by external consumers
// TLS session-resumption config, shared with the intercept listener in rift-http-proxy (issue #705).
pub use ;
// One outbound-TLS trust policy for every client Rift initiates a connection with (issue #974).
pub use OutboundTls;
// The client certificate a `proxy` stub presents to an mTLS upstream (issue #1609).
pub use ClientIdentity;
// HTTP connection-builder tuning, shared with the metrics/admin accept loops in rift-http-proxy
// (issue #716) — `network` itself stays `pub(crate)`, only this type is exposed.
pub use ;
// The one rule for turning an operator's bind host into an address (issue #1137), shared by every
// bind door in the workspace: the admin plane, the intercept listener, the FFI, and imposters.
pub use ;
// Node's no-host listen and the server-listener socket builder, shared with rift-http-proxy's admin,
// metrics, front-door and intercept listeners (issue #1528).
pub use ;
// Which clients imposter ports and the front door admit (`--local-only`, issue #1523).
pub use PeerPolicy;
// Accept-error handling shared by every listener in the workspace: the imposter serve loop
// (issue #750) and the admin API accept loop (issue #826), which must classify-and-retry rather
// than let one transient accept failure end the server.
pub use ;