hashicorp / hashicorp/consul

"consul agent" should support -token-file

Open
#9,723 4 comments 6 reactions 1 assignee Claimed by @jkirschner-hashicorp View on GitHub
good first issue theme/acls theme/cli type/enhancement
Dominant language
Go
Stars
30.1k
Forks
4.6k
Avg merge
2d 6h
Merged PRs (30d)
43

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.