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.
This commit is contained in:
Mariano Cano 2021-08-02 11:33:02 -07:00
parent 2620c38aee
commit 5344f42f21

View file

@ -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",
},
},
}