-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Support Config File for Vault Client #247
Comments
Great idea! Tagged! |
An easy solution you may consider is creating a script and sourcing it before using the client. #!/bin/bash
export VAULT_CAPATH=XXX
export VAULT_TOKEN=XXX
export VAULT_ADDR=XXX chmod 640 vaultrc
source vaultrc
vault unseal XXX Obviously putting your token in plaintext on the filesystem isn't the most secure method in the world, but setting filesystem permissions helps a bit. This technique is commonly used for "configuring" CLI clients, especially in the OpenStack ecosystem. |
Is there any news on this issue? |
@rhoml No news yet, sorry. |
I think a great approach to this can be if we could expand .vault-token file capabilities. Currently I just load this parameters using a zsh function. |
+1, I made a shell script (as ianunruh) to set these and sent them out to the team. I then got asked for a .cmd windows version, then a powershell version, then a cygwin version. The HCL format of the settings reduces some this (albeit small) problem. I also would like to specify an externalTokenHelper for the client and don't see how to do this without the client using a config file. |
Hi! Is this solved by the Vault agent config file? https://www.vaultproject.io/docs/agent/index.html. The agent is an automated Vault client that pushes a token out to somewhere easy for you to consume from another application. Currently it pushes tokens out to a file. |
Any environment
What's am I not getting? - Is this issue still applicable? |
A config file would still be helpful. It'd be very slick to have the concept of "contexts" (like in kubectl), but even a static config file could be swapped out by some sort of |
@dragonndev (@oliverisaac & others too) - Hey I was curious how of this request may be possible using: |
hi guys, any progress here? |
Additional to what I mentioned earlier there's also: I personally am of the opinion that this request should be closed especially if it's not going to be developed prior to it's 10th year anniversary :-) |
I would like a config file that allows me to update the defaults for login parameters. For example, I wish I didn't have to set the oidc addresses when logging in on a remote VM with OIDC method:
https://support.hashicorp.com/hc/en-us/articles/15874139143955-OIDC-Login-via-CLI-on-a-Headless-Server Extending the |
When using vault as a client app (when unsealing for example) it would be nice if you could specify a client config like you can for the server config. Having to specify the address and ca-cert path variables on each CLI call is rather cumbersome.
The text was updated successfully, but these errors were encountered: