{"action":"opened","issue":{"url":"https://api.github.com/repos/hashicorp/consul-template/issues/1154","repository_url":"https://api.github.com/repos/hashicorp/consul-template","labels_url":"https://api.github.com/repos/hashicorp/consul-template/issues/1154/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/consul-template/issues/1154/comments","events_url":"https://api.github.com/repos/hashicorp/consul-template/issues/1154/events","html_url":"https://github.com/hashicorp/consul-template/issues/1154","id":376984753,"node_id":"MDU6SXNzdWUzNzY5ODQ3NTM=","number":1154,"title":"Allow reading tokens from file","user":{"login":"Phylu","id":587332,"node_id":"MDQ6VXNlcjU4NzMzMg==","avatar_url":"https://avatars1.githubusercontent.com/u/587332?v=4","gravatar_id":"","url":"https://api.github.com/users/Phylu","html_url":"https://github.com/Phylu","followers_url":"https://api.github.com/users/Phylu/followers","following_url":"https://api.github.com/users/Phylu/following{/other_user}","gists_url":"https://api.github.com/users/Phylu/gists{/gist_id}","starred_url":"https://api.github.com/users/Phylu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Phylu/subscriptions","organizations_url":"https://api.github.com/users/Phylu/orgs","repos_url":"https://api.github.com/users/Phylu/repos","events_url":"https://api.github.com/users/Phylu/events{/privacy}","received_events_url":"https://api.github.com/users/Phylu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-02T22:16:54Z","updated_at":"2018-11-02T22:16:54Z","closed_at":null,"author_association":"NONE","body":"### Consul Template version\r\n\r\nDocker container hashicorp/consul-template:alpine. Directs to version `consul-template v0.19.5 (57b6c71)`\r\n\r\n\r\n### Configuration\r\n\r\n```hcl\r\nvault {\r\n  ssl {\r\n    ca_cert = \"/etc/vault/tls/ca.pem\"\r\n  }\r\n  retry {\r\n    backoff = \"1s\"\r\n  }\r\n}\r\n```\r\n\r\n### Command\r\n\r\n```shell\r\n/bin/consul-template\r\n```\r\n\r\n\r\n### Expected behavior\r\n\r\nIt should be possible to load the VAULT_TOKEN from a location on the disc in order to use consul-template in combination with a vault init container which places the VAULT_TOKEN onto a shared in memory file system.\r\n\r\n\r\n### Actual behavior\r\n\r\nThe vault token can be either placed statically in the configuration which is provided via `CT_LOCAL_CONFIG` environment variable or as `VAULT_TOKEN` environment variable. Both is methods are not possible as the token is retrieved in the init container which has no access to these variables.\r\n\r\n\r\n### Steps to reproduce\r\n\r\n1. Deploy a Kubernetes cluster\r\n2. Run sethvargo/vault-kubernetes-authenticator:0.1.2 as an init container\r\n3. Run hashicorp/consul-template as container\r\n\r\n\r\n### References\r\n\r\n- https://github.com/sethvargo/vault-kubernetes-workshop/issues/4\r\n"}}
{"actor":{"display_login":"Phylu"}}