Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TLS issues #484

Merged
merged 8 commits into from
Sep 9, 2024
Merged

Fix TLS issues #484

merged 8 commits into from
Sep 9, 2024

Conversation

CyberHoward
Copy link
Contributor

Fixes the TLS related issues that we've ran into for https URLs

Copy link

cloudflare-workers-and-pages bot commented Sep 5, 2024

Deploying cw-orchestrator with  Cloudflare Pages  Cloudflare Pages

Latest commit: 8a4af81
Status:⚡️  Build in progress...

View logs

Copy link

codecov bot commented Sep 5, 2024

Codecov Report

Attention: Patch coverage is 95.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 54.3%. Comparing base (cbab5f5) to head (65f96d5).

Files with missing lines Patch % Lines
cw-orch-daemon/src/channel.rs 92.3% 1 Missing ⚠️
Additional details and impacted files
Files with missing lines Coverage Δ
cw-orch-daemon/src/senders/query_only.rs 85.7% <100.0%> (+7.1%) ⬆️
cw-orch-daemon/src/channel.rs 91.0% <92.3%> (+6.9%) ⬆️

... and 1 file with indirect coverage changes

@CyberHoward CyberHoward requested review from Buckram123 and Kayanski and removed request for Buckram123 September 5, 2024 14:33
@@ -45,7 +45,7 @@ bech32 = { version = "0.11.0", default-features = false, features = ["alloc"] }
hex = { version = "0.4.3" }
ripemd = { version = "0.1.3" }
tokio = { workspace = true, features = ["full"] }
tonic = { workspace = true, features = ["tls", "tls-roots"] }
tonic = { workspace = true, features = ["tls"] }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reallt removing the tls roots here ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works without so not sure why we should enable it.

@@ -2,7 +2,8 @@ use cosmrs::proto::cosmos::base::tendermint::v1beta1::{
service_client::ServiceClient, GetNodeInfoRequest,
};
use cw_orch_core::{environment::ChainInfoOwned, log::connectivity_target};
use tonic::transport::{Channel, ClientTlsConfig};
use http::Uri;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you tried this new code with http:// prefixed URIs ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, see the tests in query_only.rs. There's a http and https test there.

@Kayanski Kayanski merged commit 4efe16a into main Sep 9, 2024
8 of 12 checks passed
@Kayanski Kayanski deleted the howard/tls_bug branch September 9, 2024 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants