Selaa lähdekoodia

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.
Mariano Cano 5 vuotta sitten
vanhempi
sitoutus
5344f42f21
1 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. 3 2
      commands/app.go

+ 3 - 2
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",
 		},
 	},
 }