You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When trying to login to vault 1.1.2, while having a token created with an older or newer vault version in ~/.vault-token, login fails with
$ vault login -method=userpass username=someuser
Password (will be hidden):
Error authenticating: Error making API request.
URL: PUT https://vault.internal.3yourmind.com:443/v1/auth/userpass/login/someuser
Code: 400. Errors:
* error performing token check: failed to look up namespace from the token: no namespace
same happens the other way around. (trying to log into an older vault while having a valid token for a new one)
Expected behavior
I expect a better error message indicating the problem. The message is about an enterprise feature of vault and misleading. Optionally, I would like to have this handled by the vault cli.
I want to make a new login, so the previous login should not play a role.
Environment:
Vault Server Version (retrieve with vault status): 0.11.4/1.1.2
Vault CLI Version (retrieve with vault version): 1.0.1
Server Operating System/Architecture: awslinux2 / dockered
In our case, we were running a script that would perform a vault login and we didn't want to clobber ~/.vault-token. We ran into this issue you reported, and our workaround is as follows:
Describe the bug
When trying to login to vault 1.1.2, while having a token created with an older or newer vault version in
~/.vault-token
, login fails withsame happens the other way around. (trying to log into an older vault while having a valid token for a new one)
To Reproduce
Steps to reproduce the behavior:
vault login
against vault 1.1.2export VAULT_ADDR=https://vault-version-0-11-4.domain.tld
vault login
against vault 0.11.4rm ~/.vault-token
vault login
and succeedExpected behavior
I expect a better error message indicating the problem. The message is about an enterprise feature of vault and misleading. Optionally, I would like to have this handled by the vault cli.
I want to make a new login, so the previous login should not play a role.
Environment:
vault status
): 0.11.4/1.1.2vault version
): 1.0.1Vault server configuration file(s):
Additional context
This happens with any combination of vault server and vault cli I tried.
The text was updated successfully, but these errors were encountered: