From b28802efa22c08d053baaf24dc3fcccc30396a61 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 4 Oct 2026 18:47:58 +0000 Subject: [PATCH] schema-api: tonic TLS on aws-lc-rs, so rustls has one crypto provider schema-api enabled tonic's tls-ring, which turns on rustls' ring next to the aws-lc-rs that reqwest and str0m use. With two providers rustls cannot pick a process-wide one, and every TLS client built without an explicit provider panics: tokio-tungstenite's for wss:// gateways ("Could not automatically determine the process-level CryptoProvider"), leaving observation stuck at Connecting. tonic uses tls-aws-lc now (second local patch, VOELIN-PATCH.md); ring is gone from rustls in Cargo.lock. voelin-core's one_rustls_crypto_provider test builds a rustls client config with the app's TLS dependencies (voelin-myts is a dev-dependency there); it panics as above with tls-ring and passes with tls-aws-lc. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01FEpqsPES27Eacue91u3d2Q --- Cargo.lock | 2 +- crates/voelin-core/Cargo.toml | 2 ++ crates/voelin-core/src/lib.rs | 10 ++++++++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index a3d8953..0a98bd0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -7264,7 +7264,6 @@ dependencies = [ "aws-lc-rs", "log", "once_cell", - "ring", "rustls-pki-types", "rustls-webpki", "subtle", @@ -9699,6 +9698,7 @@ dependencies = [ "md5", "reqwest", "rusqlite", + "rustls", "serde", "serde_json", "thiserror 2.0.21", diff --git a/crates/voelin-core/Cargo.toml b/crates/voelin-core/Cargo.toml index 68103bf..571c60f 100644 --- a/crates/voelin-core/Cargo.toml +++ b/crates/voelin-core/Cargo.toml @@ -57,6 +57,8 @@ tsproto-packets = { path = "../proto/tsproto-packets" } tsproto-types = { path = "../proto/tsproto-types" } [dev-dependencies] +# Already in the app's graph (reqwest); for one_rustls_crypto_provider. +rustls = { version = "0.23", default-features = false } voelin-myts = { path = "../voelin-myts" } # `process`: the browser interop test drives Chromium through Node.js. tokio = { version = "1", features = ["macros", "net", "process", "rt-multi-thread", "test-util"] } diff --git a/crates/voelin-core/src/lib.rs b/crates/voelin-core/src/lib.rs index 1cfac20..598e6f9 100644 --- a/crates/voelin-core/src/lib.rs +++ b/crates/voelin-core/src/lib.rs @@ -1032,3 +1032,13 @@ fn command_session(command: &Command) -> SessionId { } } } + +/// The app has one rustls crypto provider. With two (aws-lc-rs and ring), a +/// TLS client built without an explicit provider panics: `wss://` gateways +/// did. This test's build has the app's TLS dependencies (reqwest here, +/// tonic through the voelin-myts dev-dependency). +#[cfg(test)] +#[test] +fn one_rustls_crypto_provider() { + let _ = rustls::ClientConfig::builder(); +}