fix: use shared secrets manager instead of creating new Vault client
All checks were successful
BotServer CI/CD / build (push) Successful in 4m12s

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2026-04-04 23:58:17 -03:00
parent 597a962fbf
commit 645a7936c5

View file

@ -321,8 +321,8 @@ impl EmailService {
use lettre::transport::smtp::authentication::Credentials; use lettre::transport::smtp::authentication::Credentials;
use lettre::{SmtpTransport, Transport}; use lettre::{SmtpTransport, Transport};
let secrets = crate::core::secrets::SecretsManager::from_env() let secrets = crate::core::shared::utils::get_secrets_manager_sync()
.map_err(|e| format!("Vault not available: {}", e))?; .ok_or_else(|| "Vault not available".to_string())?;
let (smtp_host, smtp_port, smtp_user, smtp_pass, smtp_from): ( let (smtp_host, smtp_port, smtp_user, smtp_pass, smtp_from): (
String, String,
u16, u16,
@ -399,8 +399,8 @@ impl EmailService {
use lettre::transport::smtp::authentication::Credentials; use lettre::transport::smtp::authentication::Credentials;
use lettre::{SmtpTransport, Transport}; use lettre::{SmtpTransport, Transport};
let secrets = crate::core::secrets::SecretsManager::from_env() let secrets = crate::core::shared::utils::get_secrets_manager_sync()
.map_err(|e| format!("Vault not available: {}", e))?; .ok_or_else(|| "Vault not available".to_string())?;
let (smtp_host, smtp_port, smtp_user, smtp_pass, smtp_from): ( let (smtp_host, smtp_port, smtp_user, smtp_pass, smtp_from): (
String, String,
u16, u16,