From 177a608b977960cc4cd0b8c6a72a27110f90bdcd Mon Sep 17 00:00:00 2001 From: Echo Date: Sun, 3 May 2026 16:54:19 +0000 Subject: [PATCH] fix: install rustls crypto provider in pm-worker main Worker was crashing on startup with: Could not automatically determine the process-level CryptoProvider Added rustls::crypto::ring::default_provider().install_default() to pm-worker main.rs, matching the pm-web initialization. --- crates/pm-worker/src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/pm-worker/src/main.rs b/crates/pm-worker/src/main.rs index ba08f44..6be41fb 100644 --- a/crates/pm-worker/src/main.rs +++ b/crates/pm-worker/src/main.rs @@ -36,6 +36,11 @@ const SCHEMA_CHECK_TIMEOUT: Duration = Duration::from_secs(120); #[tokio::main] async fn main() -> anyhow::Result<()> { + // Install the default crypto provider for rustls (required since 0.23) + rustls::crypto::ring::default_provider() + .install_default() + .expect("Failed to install rustls crypto provider"); + // Load configuration let config_path = std::env::var("PATCH_MANAGER_CONFIG") .unwrap_or_else(|_| "/etc/patch-manager/config.toml".to_string());