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

AWS Auth nonce file not created if it doesn't already exist #204

Closed
adaphi opened this issue Sep 13, 2017 · 2 comments · Fixed by #206
Closed

AWS Auth nonce file not created if it doesn't already exist #204

adaphi opened this issue Sep 13, 2017 · 2 comments · Fixed by #206
Labels

Comments

@adaphi
Copy link

adaphi commented Sep 13, 2017

Hey,

gomplate won't create the file specified by VAULT_AUTH_AWS_NONCE_OUTPUT if it doesn't already exist. It only realises this after authenticating though, so the nonce value gets lost.

e.g.:

[centos@ip-10-101-207-71 ~]$ export VAULT_AUTH_AWS_NONCE_OUTPUT="$(pwd)/nonce"
[centos@ip-10-101-207-71 ~]$ ls
[centos@ip-10-101-207-71 ~]$ echo '{{(datasource "vault" "secret/test").value}}' | gomplate --datasource vault=vault://
2017/09/13 11:21:33 Error opening nonce output file

<(delete whitelist in vault)>

[centos@ip-10-101-207-71 ~]$ touch nonce
[centos@ip-10-101-207-71 ~]$ echo '{{(datasource "vault" "secret/test").value}}' | gomplate --datasource vault=vault://
foo
@hairyhenderson
Copy link
Owner

Hi @adaphi, thanks for reporting this! /cc @stuart-c - do you think you could have a look at this?

@stuart-c
Copy link
Contributor

Yep will take a look...

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

Successfully merging a pull request may close this issue.

3 participants