Skip to content

Commit e404c29

Browse files
author
Martin Cuesta
committed
🖌️ Allow providing TokenID and TokenSecret as env vars when calling cloudflared access
Implements #232
1 parent 98a0844 commit e404c29

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎cmd/cloudflared/access/cmd.go‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,13 @@ func Commands() []*cli.Command {
143143
Name: sshTokenIDFlag,
144144
Aliases: []string{"id"},
145145
Usage: "specify an Access service token ID you wish to use.",
146+
EnvVars: []string{"CLOUDFLARE_SERVICE_TOKEN_ID"},
146147
},
147148
&cli.StringFlag{
148149
Name: sshTokenSecretFlag,
149150
Aliases: []string{"secret"},
150151
Usage: "specify an Access service token secret you wish to use.",
152+
EnvVars: []string{"CLOUDFLARE_SERVICE_TOKEN_SECRET"},
151153
},
152154
&cli.StringFlag{
153155
Name: logger.LogSSHDirectoryFlag,

0 commit comments

Comments
 (0)