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

Dump secrets to file #96

Open
hongkongkiwi opened this issue Jul 29, 2020 · 1 comment
Open

Dump secrets to file #96

hongkongkiwi opened this issue Jul 29, 2020 · 1 comment

Comments

@hongkongkiwi
Copy link

It would be great to have an option to dump the secrets to a file instead of environment variables. This can have the option to replicate docker secrets functionality.

@joris-burgers
Copy link
Contributor

Thanks for the suggestion 🙂

One way you can already achieve this is using the command:

vaultenv --no-inherit-env -- env > secrets.txt

which exposes only your secrets to env and dumps those to secrets.txt. Please keep in mind that having your secrets in a file on disk is not always the safest way, as it somewhat negates the point of vault.

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

No branches or pull requests

2 participants