Fix tonic TLS issues #1

Merged
ghe0 merged 4 commits from wip_fixing_tonic_tls into main 2025-03-29 18:14:46 +00:00
2 changed files with 2 additions and 7 deletions
Showing only changes of commit c56843b3fd - Show all commits

@ -63,11 +63,7 @@ pub async fn connect_dtpm_grpc_client(
.enable_http2() .enable_http2()
.build(); .build();
let channel = Endpoint::from_shared(hratls_uri)? let channel = Endpoint::from_shared(hratls_uri)?.connect_with_connector(connector).await?;
// .tls_config(client_tls_config.into())?
.connect_with_connector(connector)
.await
.unwrap();
Ok(DtpmConfigManagerClient::new(channel)) Ok(DtpmConfigManagerClient::new(channel))
} }
@ -79,7 +75,6 @@ pub async fn attest_and_send_config(loaded_config: DtpmConfig, uuid: &str) -> Re
log::trace!("Decoded the configuration... {:?}", req_data); log::trace!("Decoded the configuration... {:?}", req_data);
let (hratls_uri, mr_enclave) = hratls_url_and_mr_enclave_from_app_id(uuid).await; let (hratls_uri, mr_enclave) = hratls_url_and_mr_enclave_from_app_id(uuid).await;
log::info!("hratls uri: {}\nmr_enclave: {:?}", &hratls_uri, &mr_enclave); log::info!("hratls uri: {}\nmr_enclave: {:?}", &hratls_uri, &mr_enclave);
let client = connect_dtpm_grpc_client(hratls_uri, mr_enclave).await?; let client = connect_dtpm_grpc_client(hratls_uri, mr_enclave).await?;

@ -186,7 +186,7 @@ pub struct AppDeployResponse {
impl crate::HumanOutput for AppDeployResponse { impl crate::HumanOutput for AppDeployResponse {
fn human_cli_print(&self) { fn human_cli_print(&self) {
println!("App deployd with UUID: {}, App Name: {}", self.uuid, self.name); println!("The application got deployed under the UUID: {}", self.uuid);
} }
} }