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

Constant re-rendering of template with Vault secret where data is a map #1108

Closed
dadgar opened this issue May 31, 2018 · 2 comments
Closed
Labels

Comments

@dadgar
Copy link
Contributor

dadgar commented May 31, 2018

Consul Template version

consul-template v0.19.1 (b91bacb)

Configuration

{{with secret "secret/data/foo"}}{{.Data.data}}{{end}}

Command

consul-template -log-level=trace -template "in.tmpl:out.txt:date" -vault-token=a54bde09-fcb5-2a1b-9671-4ecaa41ad586 -vault-addr=http://127.0.0.1:8200
Thu May 31 11:34:54 PDT 2018
Thu May 31 11:34:56 PDT 2018
Thu May 31 11:34:58 PDT 2018
Thu May 31 11:35:02 PDT 2018
Thu May 31 11:35:03 PDT 2018

Debug output

https://gist.github.com/dadgar/c3e991d227f170b9394345e709099307

Expected behavior

Should not re-render since the content of the map is the same.

Actual behavior

Constantly re-rendering.

Steps to reproduce

  1. Start a Vault dev server: vault server -dev
  2. Create a renewable vault token: vault token create -renewable -ttl=1000
  3. vault kv put secret/foo a=1 b=2 c=3
  4. Run the command given.

References

Nomad Issue: hashicorp/nomad#4343

@dadgar dadgar added the bug label May 31, 2018
@catsby
Copy link
Contributor

catsby commented Jul 24, 2018

Fixed in v0.19.2

@dadgar I believe you fixed it in #1004

@dadgar
Copy link
Contributor Author

dadgar commented Jul 25, 2018

Just tried on a master and it works!

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

No branches or pull requests

2 participants