server: Treat the database password as a secret

This commit is contained in:
Valentin Tolmer
2024-01-22 23:02:30 +01:00
committed by nitnelave
parent addd453287
commit b82a2d5705
5 changed files with 69 additions and 8 deletions

View File

@@ -3,6 +3,8 @@ use lettre::message::Mailbox;
use serde::{Deserialize, Serialize};
use url::Url;
use crate::infra::database_string::DatabaseUrl;
/// lldap is a lightweight LDAP server
#[derive(Debug, Parser, Clone)]
#[clap(version, author)]
@@ -87,7 +89,7 @@ pub struct RunOpts {
/// Database connection URL
#[clap(short, long, env = "LLDAP_DATABASE_URL")]
pub database_url: Option<String>,
pub database_url: Option<DatabaseUrl>,
/// Force admin password reset to the config value.
#[clap(long, env = "LLDAP_FORCE_LADP_USER_PASS_RESET")]