From 6a41eba9d8f0fe0b2cb686fd64a957c81cd132cc Mon Sep 17 00:00:00 2001 From: Echo Date: Mon, 18 May 2026 13:43:34 +0000 Subject: [PATCH] fix(server): add explicit rustls CryptoProvider initialization for v1.1.6 - Add rustls::crypto::aws_lc_rs::default_provider().install_default() in main() before any TLS operations to prevent startup panic - Bump version from 1.1.5 to 1.1.6 - Update debian/changelog with 1.1.6-1 entry --- Cargo.toml | 2 +- debian/changelog | 7 +++++++ src/main.rs | 5 +++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index c9e73d5..aa4e499 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "linux-patch-api" -version = "1.1.5" +version = "1.1.6" edition = "2021" authors = ["Echo "] description = "Secure remote package management API for Linux systems" diff --git a/debian/changelog b/debian/changelog index 2bd5114..c31051e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +linux-patch-api (1.1.6-1) unstable; urgency=low + + * Fix rustls CryptoProvider initialization panic on server startup + * Add explicit CryptoProvider::install_default() for aws-lc-rs + + -- Echo Mon, 18 May 2026 08:45:00 -0500 + linux-patch-api (1.1.5-1) unstable; urgency=low * Fix enrollment IP detection: filter Docker bridge subnets (172.16.0.0/12) diff --git a/src/main.rs b/src/main.rs index b18d481..b9a13fd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -57,6 +57,11 @@ async fn main() -> Result<()> { // Initialize logging let _guard = init_logging(args.verbose)?; + // Install rustls crypto provider (required for mTLS and HTTPS clients) + rustls::crypto::aws_lc_rs::default_provider() + .install_default() + .expect("Failed to install rustls crypto provider (aws-lc-rs)"); + info!( version = env!("CARGO_PKG_VERSION"), config_path = args.config,