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 63f18ea8d9
commit fdcada22a0
6 files changed
+90 -7

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();
}
+64 -1
View File
@@ -46,6 +46,29 @@ version = "1.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
[[package]]
name = "aws-lc-rs"
version = "1.18.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b281d307588d634de920874890732659e2e7672f72b5e10e81badc1a8a83621e"
dependencies = [
"aws-lc-sys",
"zeroize",
]
[[package]]
name = "aws-lc-sys"
version = "0.45.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9bff6c3b54fad79a2e60b8102caf565819711497c1f5f092f49508e2f5c31b27"
dependencies = [
"cc",
"cmake",
"dunce",
"fs_extra",
"pkg-config",
]
[[package]]
name = "axum"
version = "0.8.9"
@@ -114,6 +137,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f74872d07caf508b30a21f6836e7d7016a2eaf7d9ff4f48deaa58cd8a0407630"
dependencies = [
"find-msvc-tools",
"jobserver",
"libc",
"shlex",
]
@@ -123,6 +148,15 @@ version = "1.0.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
[[package]]
name = "cmake"
version = "0.1.58"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c0f78a02292a74a88ac736019ab962ece0bc380e3f977bf72e376c5d78ff0678"
dependencies = [
"cc",
]
[[package]]
name = "core-foundation"
version = "0.10.1"
@@ -148,6 +182,12 @@ dependencies = [
"cfg-if",
]
[[package]]
name = "dunce"
version = "1.0.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813"
[[package]]
name = "either"
version = "1.18.0"
@@ -211,6 +251,12 @@ version = "0.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2"
[[package]]
name = "fs_extra"
version = "1.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c"
[[package]]
name = "futures-channel"
version = "0.3.34"
@@ -438,6 +484,16 @@ version = "1.0.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
[[package]]
name = "jobserver"
version = "0.1.35"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1c00acbd29eabad4a2392fa0e921c874934dbbf4194312ad20f04a0ed67a3cb3"
dependencies = [
"getrandom 0.4.3",
"libc",
]
[[package]]
name = "libc"
version = "0.2.190"
@@ -574,6 +630,12 @@ version = "0.2.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
[[package]]
name = "pkg-config"
version = "0.3.34"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f6b464fbc74e149a392436b17d523f769e057cb6877f6a5c4618bc6f11800548"
[[package]]
name = "prettyplease"
version = "0.2.37"
@@ -820,9 +882,9 @@ version = "0.23.45"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0d41d731c7d2f962d1ccc364cec258de3c0e93b38c2fb3ba97ac74513048d634"
dependencies = [
"aws-lc-rs",
"log",
"once_cell",
"ring",
"rustls-pki-types",
"rustls-webpki",
"subtle",
@@ -856,6 +918,7 @@ version = "0.103.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f3c3cf1d8b1e7d4927e2d154c3fcb02979afb9939629c62cd9048d4f07b60ac2"
dependencies = [
"aws-lc-rs",
"ring",
"rustls-pki-types",
"untrusted",
+2 -1
View File
@@ -17,7 +17,8 @@ gzip = ["tonic/gzip"]
[dependencies]
prost = "0.14"
prost-types = "0.14"
tonic = { version = "0.14", features = ["transport", "tls-ring", "tls-native-roots"] }
# Voelin: aws-lc-rs (was tls-ring), the one rustls provider of the app (VOELIN-PATCH.md).
tonic = { version = "0.14", features = ["transport", "tls-aws-lc", "tls-native-roots"] }
tonic-prost = "0.14"
thiserror = "2"
prost-reflect = { version = "0.16", features = ["serde"], optional = true }
+11 -4
View File
@@ -9,7 +9,14 @@ Voelin consumes the message types, session helpers and wire codec via a path
dependency with default features disabled. Generated gRPC clients are not used
for myTeamSpeak's custom HTTP transport.
The only upstream patch is an empty `[workspace]` table in `Cargo.toml`, matching
Voelin's other vendored packages. This packaging change prevents Cargo from
assigning the vendor to an enclosing checkout's workspace when Voelin itself is
in a nested worktree. All Rust and protobuf sources remain unmodified.
Two packaging patches in `Cargo.toml`; all Rust and protobuf sources remain
unmodified:
1. An empty `[workspace]` table, matching Voelin's other vendored packages. It
prevents Cargo from assigning the vendor to an enclosing checkout's
workspace when Voelin itself is in a nested worktree.
2. tonic's TLS uses `tls-aws-lc` instead of `tls-ring`. Voelin's rustls already
uses aws-lc-rs (reqwest, str0m); with `ring` too, rustls cannot choose a
process-wide crypto provider and every TLS client built without an explicit
one panics (`wss://` gateway connections did). `voelin-core`'s
`one_rustls_crypto_provider` test fails if a second provider comes back.