ADR-085 records the actual workspace scope: the mono-repo is the core networking toolkit (substrate: core, tls, call, channels; deployment shapes: hub, worker; foundational handlers: tty, http, ssh, tunnel, socks5, fs, sftp; vault). Consumer repos (docker, agent) are separate repos depending on the published core crates. The overview's crate graph had been describing the wrong scope since ADR-003 — a flat ~12-crate workspace including DNS/messaging/NAPI while omitting channels, hub, worker, and tls. This stale scope was a causal factor in the 'assembly layer' hedging pattern: when the overview implies everything lives in one repo but the architecture needs a hub/worker composition layer not in the graph, the gap gets filled with 'assembly layer' as an escape hatch. The overview is rewritten to match the real boundary. TLS spec review fixes (from architecture review): - C3: hub/worker/hub-worker terminology pointers (tls README + endpoint.md) - W1: server-only statement + OQ-64 (client-side TLS helper, deferred) - W2: ACME task lifecycle semantics (returns immediately, no first-cert await) - W3: remove stale EndpointError::TlsConfig variant - W4: update stale ALPN section for two-config hub - W5: add alknet-tls to hub dep graph (assembly-layer dep) - W6: trim inline rationale -> point to ADR-084 - W7: ADR-084 status dependency note New open questions: - OQ-62: ALPN list sharing for two-config hub (open, high) - OQ-63: TlsError shape (open, high) - OQ-64: client-side TLS helper (deferred, blocked on OQ-55)
3.2 KiB
OQ-64: Should alknet-tls Provide a Client-Side TLS Config Helper?
-
Origin:
docs/architecture/crates/tls/README.md(the "Server-only for now" section flags this as deferred); ADR-084 (requires the client-siderustls::ClientConfigto use the sameaws_lc_rsprovider — currently enforced by convention, not shared code). -
Status: deferred(scope)
-
Door type: two-way (adding a client helper to
alknet-tlsis additive; the risk is not the addition but extracting it prematurely and baking in a QUIC-shaped client — see Blocking on) -
Priority: medium
-
Blocked on: the
AlknetClientdial-seam extraction (OQ-55). The client-side TLS helper and the shared dial are the same seam: both answer "how does an outbound connection build itsrustls::ClientConfig+ select a verifier (ADR-034) + dial the transport." Extracting the TLS helper without a second transport's real client dial existing would bake the QUIC client's shape into a shared helper — the same welding ADR-065 unwound on the server side. The blocking condition is the same as OQ-55: a second transport's real dial (TCP+TLS, SSH raw-TCP, HTTP-wrapped call) existing, so the transport-polymorphic client+TLS seam is extractable from two different transport implementations. -
Resolution: Not yet decidable.
alknet-tlsis server-side only as specified. The client side —rustls::ClientConfigconstruction + ADR-034 verifier selection (fingerprint pin for known peers, CA-verify for unknown X.509, fail-closed for unknown raw-key) — lives inalknet-call'sFingerprintPinVerifiertoday. The provider-consistency requirement (ADR-084:aws_lc_rson all paths) is enforced by convention (two crates independently constructingaws_lc_rs::default_provider()) until this OQ is resolved.What does NOT block on this: each client (
CallClient,ChannelClient) building its ownClientConfigstandalone with the matching provider. The friction is duplicated boilerplate (each client rebuilds verifier selection + provider wiring), not a missing capability and not a QUIC-welded client API. The transport-agnostic take-over (CallClient::spawn_dispatch,ChannelClient::from_connection— ADR-080) is decided and is not the thing being deferred; only the shared client TLS config helper is.Note on the hub-as-client case: a hub (A) that dials another hub (B) uses a client to do so — from B's perspective A is a worker. The bidirectionality of the call and channels protocols means both sides can be both hub and worker within a connection. This does not change the blocking condition: the shared client TLS helper is still about the dial, regardless of whether the dialer is a hub, a worker, or a hub-worker. The hub-as-client case is a use case that the resolved helper must cover, not a reason to resolve it now.
-
Cross-references: OQ-55 (the
AlknetClientdial-seam extraction — this OQ's blocking condition), ADR-034 (verifier selection — the rule the helper would centralize), ADR-084 (provider consistency — the convention that holds until this is resolved), ADR-065 (the server-side transport generalization this OQ's deferral avoids preempting on the client side)