-
Notifications
You must be signed in to change notification settings - Fork 781
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
'secrets' query does not renders out.txt #1462
Comments
I think this is related to KV-v2 secrets engine. adding 'metadata' to secret path worked for me. in.tpl
in2.tpl
|
#1468 is merged and fixes this. |
My Environment - Put secrets in vault - vault kv put secret/tools/tool1/token/acc2 key3='vaule2' Vault cli command output -
|
Hey @rishianand06, Have you tried with a build from the master branch yet, this should be fixed there. It (the fix) will also be included in version 0.26.0, which I'll be releasing sometime in the next week or two. If this was tried on the master branch and it didn't fix it for you please let me know. Thanks. |
@eikenb No I haven't tried that yet. Will try and let you know in case of any issue/s. |
Consul Template version
consul-template v0.25.2 (870905d)
Vault v1.7.0 ('4e222b85c40a810b74400ee3c54449479e32bb9f+CHANGES')
Configuration
in.tpl
{{ range secrets "secret/" }} {{ . }}{{ end }}
in2.tpl
Command
P.S: I can not see any requests logs here after run
consul-template
CLI.Debug output
https://paste.ubuntu.com/p/SqTPQGJm2W/
Expected behavior
It should render:
Actual behavior
$ cat out.txt
=> EMPTYSteps to reproduce
$ vault server -dev -dev-root-token-id=root -log-level=trace
$ vault kv put secret/foo bar=baz
$ vault kv list secret/
$ consul-template -template "in.tpl:out.txt" -vault-renew-token=false -vault-token='root' -once
=> OK$ cat out.txt
=> EMPTYTrace logs:
References
cc: @developer-guy
The text was updated successfully, but these errors were encountered: