mirror of
https://github.com/moghtech/komodo.git
synced 2026-04-24 13:48:43 -05:00
periphery doesn't log any secret values on startup
This commit is contained in:
@@ -93,7 +93,7 @@ fn default_core_mongo_db_name() -> String {
|
||||
"monitor".to_string()
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
#[derive(Serialize, Deserialize, Debug, Clone)]
|
||||
pub struct PeripheryConfig {
|
||||
#[serde(default = "default_periphery_port")]
|
||||
pub port: u16,
|
||||
|
||||
@@ -54,6 +54,10 @@ pub fn load() -> (Args, u16, PeripheryConfigExtension) {
|
||||
|
||||
fn print_startup_log(config_path: &str, args: &Args, config: &PeripheryConfig) {
|
||||
println!("\nconfig path: {config_path}");
|
||||
let mut config = config.clone();
|
||||
config.github_accounts = config.github_accounts.into_iter().map(|(a, _)| (a, "<SECRET>".to_string())).collect();
|
||||
config.docker_accounts = config.docker_accounts.into_iter().map(|(a, _)| (a, "<SECRET>".to_string())).collect();
|
||||
config.secrets = config.secrets.into_iter().map(|(s, _)| (s, "<SECRET>".to_string())).collect();
|
||||
println!("{config:#?}");
|
||||
if args.daemon {
|
||||
println!("daemon mode enabled");
|
||||
|
||||
Reference in New Issue
Block a user