From 82c976c2632e89898bdb7c8d5a5965a365dd6838 Mon Sep 17 00:00:00 2001 From: gered Date: Mon, 13 Nov 2017 14:12:05 -0500 Subject: [PATCH] add argument/environment option for specifying auth method --- config.go | 1 + 1 file changed, 1 insertion(+) diff --git a/config.go b/config.go index c4d4ff0..9c9ee55 100644 --- a/config.go +++ b/config.go @@ -82,6 +82,7 @@ func init() { flag.StringVar(&options.vaultURL, "vault", getEnv("VAULT_ADDR", "https://127.0.0.1:8200"), "url the vault service or VAULT_ADDR") flag.StringVar(&options.vaultAuthFile, "auth", getEnv("AUTH_FILE", ""), "a configuration file in json or yaml containing authentication arguments") flag.StringVar(&options.vaultAuthFileFormat, "format", getEnv("AUTH_FORMAT", "default"), "the auth file format") + flag.StringVar(&options.vaultAuthOptions.Method, "method", getEnv("AUTH_METHOD", "token"), "the authentication method to use (use of an auth file will override this setting)") flag.StringVar(&options.outputDir, "output", getEnv("VAULT_OUTPUT", "/etc/secrets"), "the full path to write resources or VAULT_OUTPUT") flag.BoolVar(&options.dryRun, "dryrun", false, "perform a dry run, printing the content to screen") flag.BoolVar(&options.skipTLSVerify, "tls-skip-verify", false, "whether to check and verify the vault service certificate")