From 8ef6f7c85891e987aef8a6da2d2d8fe63a841bad Mon Sep 17 00:00:00 2001 From: Robert Date: Fri, 20 Dec 2024 12:14:55 +0100 Subject: [PATCH] fix: crypto provider installed for redis tls support (#72) * fix: crypto provided installed for redis tls support * fix: version bumped --- Cargo.lock | 12 ++++++------ Cargo.toml | 2 +- affinidi-messaging-mediator/src/database/handlers.rs | 8 +++++--- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 219f657..d683cb5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -103,7 +103,7 @@ dependencies = [ [[package]] name = "affinidi-messaging-didcomm" -version = "0.8.2" +version = "0.8.3" dependencies = [ "affinidi-did-resolver-cache-sdk", "anyhow", @@ -130,7 +130,7 @@ dependencies = [ [[package]] name = "affinidi-messaging-helpers" -version = "0.8.2" +version = "0.8.3" dependencies = [ "affinidi-did-resolver-cache-sdk", "affinidi-messaging-didcomm", @@ -160,7 +160,7 @@ dependencies = [ [[package]] name = "affinidi-messaging-mediator" -version = "0.8.2" +version = "0.8.3" dependencies = [ "affinidi-did-resolver-cache-sdk", "affinidi-messaging-didcomm", @@ -208,14 +208,14 @@ dependencies = [ [[package]] name = "affinidi-messaging-processor" -version = "0.8.2" +version = "0.8.3" dependencies = [ "tokio", ] [[package]] name = "affinidi-messaging-sdk" -version = "0.8.2" +version = "0.8.3" dependencies = [ "affinidi-did-resolver-cache-sdk", "affinidi-messaging-didcomm", @@ -253,7 +253,7 @@ dependencies = [ [[package]] name = "affinidi-messaging-text-client" -version = "0.8.2" +version = "0.8.3" dependencies = [ "affinidi-did-resolver-cache-sdk", "affinidi-messaging-didcomm", diff --git a/Cargo.toml b/Cargo.toml index 7a79dba..fb97199 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ members = [ resolver = "2" [workspace.package] -version = '0.8.2' +version = '0.8.3' edition = "2021" authors = ["Glenn Gore "] description = "Affinidi Messaging" diff --git a/affinidi-messaging-mediator/src/database/handlers.rs b/affinidi-messaging-mediator/src/database/handlers.rs index 0825895..1238fab 100644 --- a/affinidi-messaging-mediator/src/database/handlers.rs +++ b/affinidi-messaging-mediator/src/database/handlers.rs @@ -5,10 +5,12 @@ use redis::aio::PubSub; use std::{fs::read_to_string, thread::sleep, time::Duration}; use tracing::{error, event, info, Level}; -const REDIS_VERSION: &str = "7.1"; // Minimum Redis version required +const REDIS_VERSION: &str = "7.2"; // required Redis version impl DatabaseHandler { pub async fn new(config: &Config) -> Result { + let _ = rustls::crypto::aws_lc_rs::default_provider().install_default(); + // Creates initial pool Configuration from the redis database URL let pool = deadpool_redis::Config::from_url(&config.database.database_url) .builder() @@ -159,13 +161,13 @@ async fn _check_server_version(database: &DatabaseHandler) -> Result