Skip to content

Commit

Permalink
Change reqwest to use rustls with native certificates to work in more…
Browse files Browse the repository at this point in the history
… cases (#2373)
  • Loading branch information
aviramha authored Apr 16, 2024
1 parent 38adfc9 commit 556dc24
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 3 deletions.
13 changes: 13 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
futures = "0.3"
thiserror = "1"
k8s-openapi = { version = "0.20", features = ["v1_24"] }
reqwest = { version = "0.11", default-features = false, features = ["blocking", "rustls-tls", "json"] }
reqwest = { version = "0.11", default-features = false, features = ["blocking", "rustls-tls-native-roots", "json", "socks"] }
kube = { git = "https://github.com/metalbear-co/kube", default-features = false, features = ["runtime", "derive", "client", "ws", "rustls-tls", "oidc", "socks5", "http_proxy"] }
trust-dns-resolver = { version = "0.22", features = ["serde-config", "tokio-runtime"] }
tokio-util = { version = "0.7", features = ["net", "codec"] }
Expand Down
1 change: 1 addition & 0 deletions changelog.d/+reqwest-trust-ca.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Change reqwest to use rustls with native certificates to work in more cases
2 changes: 1 addition & 1 deletion mirrord/auth/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ tokio = { workspace = true, features = ["fs"], optional = true }
thiserror = "1"
x509-certificate = "0.19"
# not direct dependency, but if we don't put it here it'll use openssl :(
reqwest = { workspace = true, features=["json", "rustls-tls"], default-features = false, optional = true }
reqwest = { workspace = true, features=["json", "rustls-tls-native-roots"], default-features = false, optional = true }
tracing.workspace = true
2 changes: 1 addition & 1 deletion mirrord/operator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ k8s-openapi = { workspace = true, optional = true }
kube = { workspace = true, features = ["derive", "ws"], optional = true }
futures = { workspace = true, optional = true }
rand = { workspace = true, optional = true }
reqwest = { workspace = true, default-features = false, features = ["blocking", "json", "rustls-tls"], optional = true }
reqwest = { workspace = true, default-features = false, features = ["blocking", "json", "rustls-tls-native-roots"], optional = true }
schemars = { version = "0.8", features = ["chrono"] }
serde.workspace = true
serde_json = { workspace = true, optional = true }
Expand Down

0 comments on commit 556dc24

Please sign in to comment.