From e28b229e56f7bc5dd5eeff67e1eca9cc5d5343d0 Mon Sep 17 00:00:00 2001 From: nikolamilosa Date: Tue, 4 Jun 2024 16:23:30 +0200 Subject: [PATCH] not displaying sensitive pin when running help command --- rs/cli/src/cli.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rs/cli/src/cli.rs b/rs/cli/src/cli.rs index 0d441a9f4..caf966f02 100644 --- a/rs/cli/src/cli.rs +++ b/rs/cli/src/cli.rs @@ -10,7 +10,7 @@ use url::Url; #[derive(Parser, Clone, Default)] #[clap(about, version = env!("CARGO_PKG_VERSION"), author)] pub struct Opts { - #[clap(long, env = "HSM_PIN", global = true)] + #[clap(long, env = "HSM_PIN", global = true, hide_env_values = true)] pub hsm_pin: Option, #[clap(long, value_parser=maybe_hex::, env = "HSM_SLOT", global = true)] pub hsm_slot: Option,