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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEpqsPES27Eacue91u3d2Q
This commit is contained in:
Claude committed 2026-10-04 18:48:11 +00:00
1 parent a2924b32b2
commit b28802efa2
3 files changed
+13 -1

No files matched your search

Generated
+1 -1
View File
@@ -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",
+2
View File
@@ -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"] }
+10
View File
@@ -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();
}