fix: use shared secrets manager instead of creating new Vault client
All checks were successful
BotServer CI/CD / build (push) Successful in 4m12s
All checks were successful
BotServer CI/CD / build (push) Successful in 4m12s
This commit is contained in:
parent
597a962fbf
commit
645a7936c5
1 changed files with 4 additions and 4 deletions
|
|
@ -321,8 +321,8 @@ impl EmailService {
|
|||
use lettre::transport::smtp::authentication::Credentials;
|
||||
use lettre::{SmtpTransport, Transport};
|
||||
|
||||
let secrets = crate::core::secrets::SecretsManager::from_env()
|
||||
.map_err(|e| format!("Vault not available: {}", e))?;
|
||||
let secrets = crate::core::shared::utils::get_secrets_manager_sync()
|
||||
.ok_or_else(|| "Vault not available".to_string())?;
|
||||
let (smtp_host, smtp_port, smtp_user, smtp_pass, smtp_from): (
|
||||
String,
|
||||
u16,
|
||||
|
|
@ -399,8 +399,8 @@ impl EmailService {
|
|||
use lettre::transport::smtp::authentication::Credentials;
|
||||
use lettre::{SmtpTransport, Transport};
|
||||
|
||||
let secrets = crate::core::secrets::SecretsManager::from_env()
|
||||
.map_err(|e| format!("Vault not available: {}", e))?;
|
||||
let secrets = crate::core::shared::utils::get_secrets_manager_sync()
|
||||
.ok_or_else(|| "Vault not available".to_string())?;
|
||||
let (smtp_host, smtp_port, smtp_user, smtp_pass, smtp_from): (
|
||||
String,
|
||||
u16,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue