🖌️ Allow providing TokenID and TokenSecret as env vars when calling cloudflared access

Implements #232
This commit is contained in:
Martin Cuesta 2021-05-31 13:03:58 -03:00
parent 98a0844f56
commit e404c29edb
1 changed files with 2 additions and 0 deletions

View File

@ -143,11 +143,13 @@ func Commands() []*cli.Command {
Name: sshTokenIDFlag, Name: sshTokenIDFlag,
Aliases: []string{"id"}, Aliases: []string{"id"},
Usage: "specify an Access service token ID you wish to use.", Usage: "specify an Access service token ID you wish to use.",
EnvVars: []string{"CLOUDFLARE_SERVICE_TOKEN_ID"},
}, },
&cli.StringFlag{ &cli.StringFlag{
Name: sshTokenSecretFlag, Name: sshTokenSecretFlag,
Aliases: []string{"secret"}, Aliases: []string{"secret"},
Usage: "specify an Access service token secret you wish to use.", Usage: "specify an Access service token secret you wish to use.",
EnvVars: []string{"CLOUDFLARE_SERVICE_TOKEN_SECRET"},
}, },
&cli.StringFlag{ &cli.StringFlag{
Name: logger.LogSSHDirectoryFlag, Name: logger.LogSSHDirectoryFlag,