You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iggy.apache.org by pi...@apache.org on 2025/11/19 08:59:14 UTC
(iggy) branch master updated: fix(connectors): switch elasticserach connector to use rustls (#2374)
This is an automated email from the ASF dual-hosted git repository.
piotr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iggy.git
The following commit(s) were added to refs/heads/master by this push:
new 15920af16 fix(connectors): switch elasticserach connector to use rustls (#2374)
15920af16 is described below
commit 15920af16748564c81234632bc531f992d71a507
Author: Maciej Modzelewski <ma...@modzelewski.dev>
AuthorDate: Wed Nov 19 09:59:11 2025 +0100
fix(connectors): switch elasticserach connector to use rustls (#2374)
---
Cargo.lock | 77 ++--------------------
DEPENDENCIES.md | 5 --
core/bench/dashboard/README.md | 10 +--
.../connectors/sinks/elasticsearch_sink/Cargo.toml | 2 +-
.../sources/elasticsearch_source/Cargo.toml | 2 +-
5 files changed, 11 insertions(+), 85 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 9b067f32e..c5c085918 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1769,16 +1769,6 @@ dependencies = [
"version_check",
]
-[[package]]
-name = "core-foundation"
-version = "0.9.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f"
-dependencies = [
- "core-foundation-sys",
- "libc",
-]
-
[[package]]
name = "core-foundation"
version = "0.10.1"
@@ -4025,22 +4015,6 @@ dependencies = [
"tower-service",
]
-[[package]]
-name = "hyper-tls"
-version = "0.6.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "70206fc6890eaca9fde8a0bf71caa2ddfc9fe045ac9e5c70df101a7dbde866e0"
-dependencies = [
- "bytes",
- "http-body-util",
- "hyper",
- "hyper-util",
- "native-tls",
- "tokio",
- "tokio-native-tls",
- "tower-service",
-]
-
[[package]]
name = "hyper-util"
version = "0.1.18"
@@ -5452,23 +5426,6 @@ dependencies = [
"getrandom 0.2.16",
]
-[[package]]
-name = "native-tls"
-version = "0.2.14"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "87de3442987e9dbec73158d5c715e7ad9072fda936bb03d19d7fa10e00520f0e"
-dependencies = [
- "libc",
- "log",
- "openssl",
- "openssl-probe",
- "openssl-sys",
- "schannel",
- "security-framework 2.11.1",
- "security-framework-sys",
- "tempfile",
-]
-
[[package]]
name = "never-say-never"
version = "6.6.666"
@@ -6958,11 +6915,9 @@ dependencies = [
"http-body-util",
"hyper",
"hyper-rustls",
- "hyper-tls",
"hyper-util",
"js-sys",
"log",
- "native-tls",
"percent-encoding",
"pin-project-lite",
"quinn",
@@ -6973,7 +6928,6 @@ dependencies = [
"serde_urlencoded",
"sync_wrapper",
"tokio",
- "tokio-native-tls",
"tokio-rustls",
"tokio-util",
"tower",
@@ -7232,7 +7186,7 @@ dependencies = [
"openssl-probe",
"rustls-pki-types",
"schannel",
- "security-framework 3.5.1",
+ "security-framework",
]
[[package]]
@@ -7260,7 +7214,7 @@ version = "0.6.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1d99feebc72bae7ab76ba994bb5e121b8d83d910ca40b36e0921f53becc41784"
dependencies = [
- "core-foundation 0.10.1",
+ "core-foundation",
"core-foundation-sys",
"jni",
"log",
@@ -7269,7 +7223,7 @@ dependencies = [
"rustls-native-certs",
"rustls-platform-verifier-android",
"rustls-webpki",
- "security-framework 3.5.1",
+ "security-framework",
"security-framework-sys",
"webpki-root-certs",
"windows-sys 0.61.2",
@@ -7429,19 +7383,6 @@ dependencies = [
"zeroize",
]
-[[package]]
-name = "security-framework"
-version = "2.11.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02"
-dependencies = [
- "bitflags 2.10.0",
- "core-foundation 0.9.4",
- "core-foundation-sys",
- "libc",
- "security-framework-sys",
-]
-
[[package]]
name = "security-framework"
version = "3.5.1"
@@ -7449,7 +7390,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b3297343eaf830f66ede390ea39da1d462b6b0c1b000f420d0a83f898bbbe6ef"
dependencies = [
"bitflags 2.10.0",
- "core-foundation 0.10.1",
+ "core-foundation",
"core-foundation-sys",
"libc",
"security-framework-sys",
@@ -8633,16 +8574,6 @@ dependencies = [
"syn 2.0.110",
]
-[[package]]
-name = "tokio-native-tls"
-version = "0.3.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2"
-dependencies = [
- "native-tls",
- "tokio",
-]
-
[[package]]
name = "tokio-rustls"
version = "0.26.4"
diff --git a/DEPENDENCIES.md b/DEPENDENCIES.md
index c9c9d8d92..bb9c7ea9f 100644
--- a/DEPENDENCIES.md
+++ b/DEPENDENCIES.md
@@ -152,7 +152,6 @@ constant_time_eq: 0.3.1, "Apache-2.0 OR CC0-1.0 OR MIT-0",
convert_case: 0.6.0, "MIT",
convert_case: 0.7.1, "MIT",
cookie: 0.16.2, "Apache-2.0 OR MIT",
-core-foundation: 0.9.4, "Apache-2.0 OR MIT",
core-foundation: 0.10.1, "Apache-2.0 OR MIT",
core-foundation-sys: 0.8.7, "Apache-2.0 OR MIT",
core_affinity: 0.8.3, "Apache-2.0 OR MIT",
@@ -358,7 +357,6 @@ hyper: 1.8.1, "MIT",
hyper-named-pipe: 0.1.0, "Apache-2.0",
hyper-rustls: 0.27.7, "Apache-2.0 OR ISC OR MIT",
hyper-timeout: 0.5.2, "Apache-2.0 OR MIT",
-hyper-tls: 0.6.0, "Apache-2.0 OR MIT",
hyper-util: 0.1.18, "MIT",
hyperlocal: 0.9.1, "MIT",
iana-time-zone: 0.1.64, "Apache-2.0 OR MIT",
@@ -475,7 +473,6 @@ mockall: 0.13.1, "Apache-2.0 OR MIT",
mockall_derive: 0.13.1, "Apache-2.0 OR MIT",
moka: 0.12.11, "(Apache-2.0 OR MIT) AND Apache-2.0",
nanorand: 0.7.0, "Zlib",
-native-tls: 0.2.14, "Apache-2.0 OR MIT",
never-say-never: 6.6.666, "Apache-2.0 OR MIT OR Zlib",
nix: 0.30.1, "MIT",
nom: 7.1.3, "MIT",
@@ -657,7 +654,6 @@ seahash: 4.1.0, "MIT",
sealed: 0.5.0, "Apache-2.0 OR MIT",
sec1: 0.7.3, "Apache-2.0 OR MIT",
secrecy: 0.10.3, "Apache-2.0 OR MIT",
-security-framework: 2.11.1, "Apache-2.0 OR MIT",
security-framework: 3.5.1, "Apache-2.0 OR MIT",
security-framework-sys: 2.15.0, "Apache-2.0 OR MIT",
seize: 0.5.1, "MIT",
@@ -753,7 +749,6 @@ tinyvec: 1.10.0, "Apache-2.0 OR MIT OR Zlib",
tinyvec_macros: 0.1.1, "Apache-2.0 OR MIT OR Zlib",
tokio: 1.48.0, "MIT",
tokio-macros: 2.6.0, "MIT",
-tokio-native-tls: 0.3.1, "MIT",
tokio-rustls: 0.26.4, "Apache-2.0 OR MIT",
tokio-stream: 0.1.17, "MIT",
tokio-tungstenite: 0.28.0, "MIT",
diff --git a/core/bench/dashboard/README.md b/core/bench/dashboard/README.md
index 3ca076022..4c810fdce 100644
--- a/core/bench/dashboard/README.md
+++ b/core/bench/dashboard/README.md
@@ -242,11 +242,11 @@ Using a named volume:
#### Environment Variables
-| Variable | Default | Description |
-|----------|---------|-------------|
-| HOST | 0.0.0.0 | Server host address |
-| PORT | 8061 | Server port |
-| RESULTS_DIR | /data/performance_results | Directory for performance results |
+| Variable | Default | Description |
+| ------------ | ------------------------- | --------------------------------- |
+| HOST | 0.0.0.0 | Server host address |
+| PORT | 8061 | Server port |
+| RESULTS_DIR | /data/performance_results | Directory for performance results |
#### Volume Permissions
diff --git a/core/connectors/sinks/elasticsearch_sink/Cargo.toml b/core/connectors/sinks/elasticsearch_sink/Cargo.toml
index db8615671..f3224459b 100644
--- a/core/connectors/sinks/elasticsearch_sink/Cargo.toml
+++ b/core/connectors/sinks/elasticsearch_sink/Cargo.toml
@@ -39,7 +39,7 @@ async-trait = { workspace = true }
base64 = { workspace = true }
chrono = { workspace = true }
dashmap = { workspace = true }
-elasticsearch = "9.1.0-alpha.1"
+elasticsearch = { version = "9.1.0-alpha.1", features = ["rustls-tls"], default-features = false }
iggy_connector_sdk = { path = "../../sdk" }
once_cell = { workspace = true }
serde = { workspace = true }
diff --git a/core/connectors/sources/elasticsearch_source/Cargo.toml b/core/connectors/sources/elasticsearch_source/Cargo.toml
index e31bc9977..4acc5f928 100644
--- a/core/connectors/sources/elasticsearch_source/Cargo.toml
+++ b/core/connectors/sources/elasticsearch_source/Cargo.toml
@@ -38,7 +38,7 @@ crate-type = ["cdylib", "lib"]
async-trait = { workspace = true }
chrono = { workspace = true }
dashmap = { workspace = true }
-elasticsearch = "9.1.0-alpha.1"
+elasticsearch = { version = "9.1.0-alpha.1", features = ["rustls-tls"], default-features = false }
humantime = { workspace = true }
iggy_connector_sdk = { path = "../../sdk" }
once_cell = { workspace = true }