feat: add hyper webroots
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
@@ -12,7 +12,7 @@ clap.workspace = true
|
||||
dotenv.workspace = true
|
||||
axum.workspace = true
|
||||
prost = "0.12.3"
|
||||
tonic = { version = "0.11.0", features = ["tls"] }
|
||||
tonic = { version = "0.11.0", features = ["tls", "tls-roots"] }
|
||||
uuid = { version = "1.7.0", features = ["v7", "v4"] }
|
||||
async-trait = "0.1.77"
|
||||
aws-config = { version = "1.1.5", features = ["behavior-version-latest"] }
|
||||
@@ -32,6 +32,7 @@ sqlx = { version = "0.7.3", features = [
|
||||
] }
|
||||
chrono = "0.4.34"
|
||||
git2 = "0.18.3"
|
||||
rustls = "0.23.8"
|
||||
|
||||
[build-dependencies]
|
||||
tonic-build = "0.11.0"
|
||||
|
@@ -11,8 +11,7 @@ pub async fn new_client(registry: impl Into<String>) -> anyhow::Result<FluxRelea
|
||||
let registry: String = registry.into();
|
||||
|
||||
let channel = if registry.starts_with("https") {
|
||||
let mut tls = ClientTlsConfig::new();
|
||||
tls = tls.domain_name(®istry);
|
||||
let tls = ClientTlsConfig::new();
|
||||
|
||||
Channel::from_shared(registry)?
|
||||
.tls_config(tls)?
|
||||
|
Reference in New Issue
Block a user