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

How to debug wonky client header issues? #1519

Closed
davedash opened this issue Jun 13, 2016 · 2 comments
Closed

How to debug wonky client header issues? #1519

davedash opened this issue Jun 13, 2016 · 2 comments

Comments

@davedash
Copy link

One developer I work with has been having issues talking to vault using the client. We've upgraded his vault command and keep getting a bad request error.

I looked at his request headers he sent:

host:             vault.smmt.io
Connection:       close
User-Agent:       Go-http-client/1.1
X-Vault-Token:    ????
Accept-Encoding:  gzip

The token literally says ???? (but it might be unicode). When I checked requests I saw a legitimate looking X-Vault-Token value. What would cause this? I used mitmproxy and when I removed characters and resubmitted the response worked fine.

I couldn't tell exactly how the vault auth command works, or where/why it would submit anything for X-Vault-Token, so any direction here would be helpful.

@jefferai
Copy link
Member

Hi @davedash ,

vault auth will get the token either from the VAULT_TOKEN env var or the file ~/.vault-token. It'd be useful to know what's contained in each of those.

@davedash
Copy link
Author

We temporarily fixed it with explicitly (un)setting the token VAULT_TOKEN="" vault auth... we'll see how that handles things.

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