fix(linux-client): don't show the token in --help (#4654)

Closes #4653

---------

Signed-off-by: Reactor Scram <ReactorScram@users.noreply.github.com>
This commit is contained in:
Reactor Scram
2024-04-17 16:12:36 -05:00
committed by GitHub
parent 2f6f2ef260
commit 6d88ea01c9

View File

@@ -49,8 +49,8 @@ struct Cli {
// TODO: It isn't good for security to pass the token as a CLI arg.
// If we pass it as an env var, we should remove it immediately so that
// other processes don't see it. Reading it from a file is probably safest.
#[arg(env = "FIREZONE_TOKEN")]
// child processes don't inherit it. Reading it from a file is probably safest.
#[arg(env = "FIREZONE_TOKEN", hide = true)]
pub token: Option<String>,
/// Identifier used by the portal to identify and display the device.