From 5344f42f21f271f260fc159827cff5fcc2363aa7 Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Mon, 2 Aug 2021 11:33:02 -0700 Subject: [PATCH] Allow to use the environment variable STEP_CA_TOKEN For helm charts we want to store the tokens in a secret and load it from an environment variable. --- commands/app.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/commands/app.go b/commands/app.go index 3b874ae8..481c4867 100644 --- a/commands/app.go +++ b/commands/app.go @@ -39,8 +39,9 @@ certificate issuer private key used in the RA mode.`, Usage: "address of a DNS resolver to be used instead of the default.", }, cli.StringFlag{ - Name: "token", - Usage: "token used to enable the linked ca.", + Name: "token", + Usage: "token used to enable the linked ca.", + EnvVar: "STEP_CA_TOKEN", }, }, }