-
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
request: improve vault login
error message to help the newbie
#9684
Comments
I would love to see this fixed too. I got caught on this for an embarrassingly long time! |
…ress is not set. Resolves hashicorp#9684.
@mr-fixit @shaypepper do you have any inputs or opinions on the weather the related message on the PR should be |
The reason I asked for this was to help the newbie. Will 'INFO' still show up to the newbie? |
…ress is not set. Resolves hashicorp#9684. Feedback.
What docs were you trying to follow when you got this message? It seems more helpful to update the docs then start outputting new warnings all over the place that will in general just add more noise. Working against localhost is fairly common even in some production use cases where you are using kubectl proxy to access the leader node directly. |
I do agree that current defaults should be ok especially where things are configured against default addresses / ports - which is what I tend to do too. 😄 There are cases however where environment setters or login scripts fail to set required non-default / loopback address that will then end up being used and failing - perhaps then reminding users of something being wrong. I think longer term the better experience may be to have some means of pre-checking avaible adaptors and default against each wherever addresses are not set. This may make it more versatile than assuming loop-back on I think issue can help newbies and folks needing specific address to be set with each of their shell sessions. |
Agreed, there's always a tension between designing for the newbie and for the experienced. The coaching that one needs is just noise to the other. @michaeljs1990, you asked, "what docs were you trying to follow when you got this message?" The company had docs about vault, and those docs also point to Hashicorp's docs. Did I find the answer? Yes, eventually. Was it in any of those docs? I don't remember. You suggest that the need could be met by improving the docs. That's a good idea too. |
the "newbie" is the user. i can't login to my vault. congratulations! |
If I run
vault login...
without an-address FOO
parameter, and don't have VAULT_ADDR defined, it will use the default, as pervault login --help
:-address=
Address of the Vault server. The default is https://127.0.0.1:8200. This
can also be specified via the VAULT_ADDR environment variable.
Since I'm a newbie, doing this by accident, I don't have a local vault server at that address, so I get this:
This error message doesn't help me, because I don't know enough about vault to recognize the existent of
127.0.0.1:8200
in the error message as a sign that I'm using the default value for the address.Describe the solution you'd like
In this situation, could something like the following be added to the error message?
The text was updated successfully, but these errors were encountered: