ParseToken should also allow for environment variables #1380
Labels
Priority: Normal
Minor issue impacting one or more users
Type: Feature Request
A big idea that would be split into smaller pieces
Describe the feature you'd like
I would like the Docker environment variable to work interchangeably in credentials-file
Describe alternatives you've considered
Right now it requires an annoying number of steps to base64 decode, and manually adjust json to allow docker to use a credentials-file vice an environment variable
Additional context
Right now the tutorial for Dockerfile uses the dictionary a,t,s to represent AccountTag, TunnelID, TunnelSecret; and a different structure (TunnelToken) is used to generate the Credentials through TunnelToken.
A few options: readTunnelCredentials in cloudflared/cmd/cloudflared/tunnel/subcommand_context.go should accept either dictionary as the appropriate variables (or support another base 64 decode). Or, the environment variable should be a valid variable within config.yml.
The text was updated successfully, but these errors were encountered: