Compare commits

..

1 Commits

Author SHA1 Message Date
ebdd1fd71e chore(deps): update all dependencies
Some checks failed
renovate/artifacts Artifact file update failure
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
2024-09-07 04:27:04 +00:00
3 changed files with 542 additions and 532 deletions

1053
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -11,12 +11,12 @@ tracing-subscriber.workspace = true
clap.workspace = true clap.workspace = true
dotenv.workspace = true dotenv.workspace = true
axum.workspace = true axum.workspace = true
prost = "0.13.2" prost = "0.13.0"
tonic = { version = "0.12.2", features = ["tls", "tls-native-roots"] } tonic = { version = "0.12.0", features = ["tls", "tls-roots"] }
uuid = { version = "1.7.0", features = ["v7", "v4"] } uuid = { version = "1.7.0", features = ["v7", "v4"] }
async-trait = "0.1.77" async-trait = "0.1.77"
aws-config = { version = "1.5.5", features = ["behavior-version-latest"] } aws-config = { version = "1.1.5", features = ["behavior-version-latest"] }
aws-sdk-s3 = { version = "1.48.0", features = ["behavior-version-latest"] } aws-sdk-s3 = { version = "1.15.0", features = ["behavior-version-latest"] }
serde = { version = "1.0.196", features = ["derive"] } serde = { version = "1.0.196", features = ["derive"] }
serde_json = "1.0.113" serde_json = "1.0.113"
nats = "0.25.0" nats = "0.25.0"
@ -32,7 +32,7 @@ sqlx = { version = "0.8.0", features = [
] } ] }
chrono = "0.4.34" chrono = "0.4.34"
git2 = "0.19.0" git2 = "0.19.0"
rustls = { version = "0.23.12" } rustls = "0.23.8"
[build-dependencies] [build-dependencies]
tonic-build = "0.12.0" tonic-build = "0.12.0"

View File

@ -10,17 +10,8 @@ pub type FluxReleaserGrpcClient = Arc<Mutex<FluxReleaserClient<Channel>>>;
pub async fn new_client(registry: impl Into<String>) -> anyhow::Result<FluxReleaserGrpcClient> { pub async fn new_client(registry: impl Into<String>) -> anyhow::Result<FluxReleaserGrpcClient> {
let registry: String = registry.into(); let registry: String = registry.into();
// Workaround: https://github.com/algesten/ureq/issues/765#issuecomment-2282921492
static INIT: std::sync::Once = std::sync::Once::new();
INIT.call_once(|| {
rustls::crypto::aws_lc_rs::default_provider()
.install_default()
.unwrap();
});
let channel = if registry.starts_with("https") { let channel = if registry.starts_with("https") {
let tls = ClientTlsConfig::new().with_native_roots(); let tls = ClientTlsConfig::new();
Channel::from_shared(registry)? Channel::from_shared(registry)?
.tls_config(tls)? .tls_config(tls)?