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

Avoid invoking token helper on login #1

Closed
wants to merge 2 commits into from

Conversation

ruuda
Copy link

@ruuda ruuda commented Nov 22, 2023

This is a copy of hashicorp/vault#23209.

`vault login` used to call the token helper in `get` mode, because it
constructs an HTTP client, and the client automatically loads the token.
For almost everything that is the right thing to do, but for login, that
is the thing that is supposed to retrieve the token, and login itself
does not require the token. In fact, `vault login` would erase the token
on the client later on.

Calling the token helper in `get` mode is a problem, because if the
token helper fails, that blocks the login. But the token helper might
fail because it doesn't have a token yet.

This fixes #23194.
@ruuda
Copy link
Author

ruuda commented Apr 27, 2024

I’ll submit it to OpenBao instead.

@ruuda ruuda closed this Apr 27, 2024
@ruuda ruuda deleted the fix-token-helper branch April 27, 2024 11:53
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

Successfully merging this pull request may close these issues.

None yet

1 participant