From 17ce34568144b664cd5dadc3f63b788004c306eb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 28 Mar 2024 08:26:35 +0000 Subject: [PATCH] chore(deps): Bump rustls-native-certs from 0.6.3 to 0.7.0 (#15620) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Xiangjin --- Cargo.lock | 23 ++++++++++++++++++----- src/connector/Cargo.toml | 2 +- src/connector/src/mqtt_common.rs | 2 +- 3 files changed, 20 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e6230a74278f..2a0d79fb1078 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -806,7 +806,7 @@ dependencies = [ "regex", "ring 0.17.5", "rustls", - "rustls-native-certs", + "rustls-native-certs 0.6.3", "rustls-pemfile 1.0.4", "rustls-webpki 0.101.7", "serde", @@ -5070,7 +5070,7 @@ dependencies = [ "hyper", "log", "rustls", - "rustls-native-certs", + "rustls-native-certs 0.6.3", "tokio", "tokio-rustls", "webpki-roots", @@ -8637,7 +8637,7 @@ dependencies = [ "percent-encoding", "pin-project-lite", "rustls", - "rustls-native-certs", + "rustls-native-certs 0.6.3", "rustls-pemfile 1.0.4", "serde", "serde_json", @@ -9342,7 +9342,7 @@ dependencies = [ "risingwave_rpc_client", "rumqttc", "rust_decimal", - "rustls-native-certs", + "rustls-native-certs 0.7.0", "rustls-pemfile 2.1.1", "rw_futures_util", "serde", @@ -10534,7 +10534,7 @@ dependencies = [ "flume", "futures", "log", - "rustls-native-certs", + "rustls-native-certs 0.6.3", "rustls-pemfile 1.0.4", "rustls-webpki 0.100.3", "thiserror", @@ -10694,6 +10694,19 @@ dependencies = [ "security-framework", ] +[[package]] +name = "rustls-native-certs" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f1fb85efa936c42c6d5fc28d2629bb51e4b2f4b8a5211e297d599cc5a093792" +dependencies = [ + "openssl-probe", + "rustls-pemfile 2.1.1", + "rustls-pki-types", + "schannel", + "security-framework", +] + [[package]] name = "rustls-pemfile" version = "1.0.4" diff --git a/src/connector/Cargo.toml b/src/connector/Cargo.toml index a34cdf04bc60..12f19479a746 100644 --- a/src/connector/Cargo.toml +++ b/src/connector/Cargo.toml @@ -118,7 +118,7 @@ risingwave_pb = { workspace = true } risingwave_rpc_client = { workspace = true } rumqttc = { version = "0.22.0", features = ["url"] } rust_decimal = "1" -rustls-native-certs = "0.6" +rustls-native-certs = "0.7" rustls-pemfile = "2" rw_futures_util = { workspace = true } serde = { version = "1", features = ["derive", "rc"] } diff --git a/src/connector/src/mqtt_common.rs b/src/connector/src/mqtt_common.rs index 1c9a83f6787f..65c5e5094dd2 100644 --- a/src/connector/src/mqtt_common.rs +++ b/src/connector/src/mqtt_common.rs @@ -153,7 +153,7 @@ impl MqttCommon { rustls_native_certs::load_native_certs().expect("could not load platform certs") { root_cert_store - .add(&tokio_rustls::rustls::Certificate(cert.0)) + .add(&tokio_rustls::rustls::Certificate(cert.to_vec())) .unwrap(); } }