Skip to content

Commit d89d362

Browse files
committed
Install rustls ring provider
1 parent 7a0f3bd commit d89d362

5 files changed

Lines changed: 15 additions & 1 deletion

File tree

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.nix

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ phf_codegen = "0.13"
4141
rand = "0.10"
4242
regex = "1.10"
4343
reqwest = { version = "0.13", default-features = false, features = ["json", "rustls"] }
44+
rustls = "0.23"
4445
rstest = "0.26"
4546
semver = { version = "1.0", features = ["serde"] }
4647
serde = { version = "1.0", features = ["derive"] }

rust/stackablectl/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ indexmap.workspace = true
2323
lazy_static.workspace = true
2424
rand.workspace = true
2525
reqwest.workspace = true
26+
rustls.workspace = true
2627
semver.workspace = true
2728
serde_json.workspace = true
2829
serde_yaml.workspace = true

rust/stackablectl/src/main.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ async fn main() -> Result<(), Error> {
2121
// Parse the CLI args and commands
2222
let cli = Cli::parse();
2323

24+
// As stackable-operator pulls in ring and reqwest >= 0.13 pulls in aws_lc_rs, we need
25+
// to explicitly tell rustls what provider to use. As other operators use ring, we use
26+
// that for consistency reasons here as well.
27+
rustls::crypto::ring::default_provider()
28+
.install_default()
29+
.expect("failed to install ring rustls provider");
30+
2431
// Construct the tracing subscriber
2532
let format = fmt::format()
2633
.with_ansi(true)

0 commit comments

Comments
 (0)