Skip to content

Commit

Permalink
Merge pull request #678 from chainbound/lore/chore/tls
Browse files Browse the repository at this point in the history
chore(sidecar): add TLS provider
  • Loading branch information
thedevbirb authored Jan 14, 2025
2 parents 75ed391 + 7e74360 commit c3a0591
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 13 deletions.
26 changes: 13 additions & 13 deletions bolt-sidecar/Cargo.lock

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

1 change: 1 addition & 0 deletions bolt-sidecar/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ tower-http = { version = "0.5.2", features = ["timeout"] }
tower = "0.5.1"
http-body-util = "0.1.2"
futures = "0.3"
rustls = "0.23.21"

# tokio
tokio = { version = "1", features = ["full"] }
Expand Down
5 changes: 5 additions & 0 deletions bolt-sidecar/bin/sidecar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ async fn main() -> eyre::Result<()> {
println!("{}", BOLT);
println!("Running version: {}", BOLT_SIDECAR_VERSION.clone());

// Init the default rustls provider
if let Err(e) = rustls::crypto::ring::default_provider().install_default() {
bail!("Failed to install default TLS provider: {:?}", e);
}

let opts = Opts::try_parse()?;

init_telemetry_stack(opts.telemetry.metrics_port())?;
Expand Down

0 comments on commit c3a0591

Please sign in to comment.