hashicorp/consul

"consul agent" should support -token-file

Open

#9.723 geöffnet am 5. Feb. 2021

Auf GitHub ansehen
 (4 Kommentare) (6 Reaktionen) (1 zugewiesene Person)Go (4.588 Forks)batch import
good first issuetheme/aclstheme/clitype/enhancement

Repository-Metriken

Stars
 (29.891 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 5T 8h) (73 gemergte PRs in 30 T)

Beschreibung

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