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

"consul agent" should support -token-file #9723

Open
whiskeysierra opened this issue Feb 5, 2021 · 1 comment
Open

"consul agent" should support -token-file #9723

whiskeysierra opened this issue Feb 5, 2021 · 1 comment

Comments

@whiskeysierra
Copy link

@whiskeysierra whiskeysierra commented Feb 5, 2021

Please search the existing issues for relevant feature requests, and use the reaction feature (https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to add upvotes to pre-existing requests.

Feature Description

The consul login command has the ability to write tokens to files, namely the -token-sink-file option. It would be nice if the consul agent command would get a -token-file option (incl. the CONSUL_HTTP_TOKEN_FILE env var) to make those two commands integrate nicely.

Use Case(s)

Generating a token and then using it requires to manually or using 3rd party tools (e.g. jq) to produce valid client config files or hcl fragments.

@bisakhmondal
Copy link
Contributor

@bisakhmondal bisakhmondal commented May 1, 2021

Hi @jsosulska, can I give it a try?
Also, it would be great if you mention some useful docs.
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants