Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ParseToken should also allow for environment variables #1380

Open
wxe opened this issue Dec 28, 2024 · 0 comments
Open

ParseToken should also allow for environment variables #1380

wxe opened this issue Dec 28, 2024 · 0 comments
Labels
Priority: Normal Minor issue impacting one or more users Type: Feature Request A big idea that would be split into smaller pieces

Comments

@wxe
Copy link

wxe commented Dec 28, 2024

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.

@wxe wxe added Priority: Normal Minor issue impacting one or more users Type: Feature Request A big idea that would be split into smaller pieces labels Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Normal Minor issue impacting one or more users Type: Feature Request A big idea that would be split into smaller pieces
Projects
None yet
Development

No branches or pull requests

1 participant