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

Variable substitution doesn't work in exec commands #3

Open
jacobbednarz opened this issue Sep 16, 2020 · 1 comment
Open

Variable substitution doesn't work in exec commands #3

jacobbednarz opened this issue Sep 16, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@jacobbednarz
Copy link
Owner

One use case for this tool is to be able to run a one off command referencing the variables.

cf-vault exec test -v -- curl -sv -H "X-Auth-Key: $CLOUDFLARE_API_KEY" https://api.cloudflare.com/...

However, the variable substitution is attempting to happen before the new process is spawned resulting in the value being empty and the resulting command being:

curl -sv -H X-Auth-Key:  https://api.cloudflare.com/...
@jacobbednarz jacobbednarz added the bug Something isn't working label Sep 16, 2020
@jacobbednarz
Copy link
Owner Author

confirmed this has been fixed somewhere between opening this and 0.0.8. the following now works

cf-vault exec [profile-name] -- echo $CLOUDFLARE_API_TOKEN

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant