Skip to content

Commit

Permalink
consensus: use tonic-rustls for building tonic client with custom rus…
Browse files Browse the repository at this point in the history
…tls config
  • Loading branch information
bmwill committed Oct 18, 2024
1 parent 80b00a5 commit 05b6018
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 49 deletions.
113 changes: 80 additions & 33 deletions Cargo.lock

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

4 changes: 1 addition & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -497,12 +497,10 @@ tokio-stream = { version = "0.1.14", features = ["sync", "net"] }
tokio-util = "0.7.10"
toml = { version = "0.7.4", features = ["preserve_order"] }
toml_edit = { version = "0.19.10" }
# NOTE: do not enable the `tls` feature on tonic. It will break custom TLS handling
# for self signed certificates. Unit tests under consensus/core and other integration
# tests will fail.
tonic = { version = "0.12", features = ["transport"] }
tonic-build = { version = "0.12", features = ["prost", "transport"] }
tonic-health = "0.12"
tonic-rustls = "0.1.0"
tower = { version = "0.4.12", features = [
"full",
"util",
Expand Down
1 change: 1 addition & 0 deletions consensus/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ tower.workspace = true
tower-http.workspace = true
tracing.workspace = true
typed-store.workspace = true
tonic-rustls.workspace = true

[dev-dependencies]
rstest.workspace = true
Expand Down
Loading

0 comments on commit 05b6018

Please sign in to comment.