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

Vault UI does not update user list when sequentually oppening several auth methods of the same type #8932

Closed
HnH opened this issue May 6, 2020 · 2 comments
Labels
bug Used to indicate a potential bug ui

Comments

@HnH
Copy link

HnH commented May 6, 2020

Describe the bug
Vault UI is not updating list of users within an auth method if there was an auth method of the same type previously observed through UI.

To Reproduce

[sergey@dev]$ vault write sys/auth/first/storage type=userpass
Success! Data written to: sys/auth/first/storage

[sergey@dev]$ vault write sys/auth/second/storage type=userpass
Success! Data written to: sys/auth/second/storage

[sergey@dev]$ vault auth list
Path               Type        Accessor                  Description
----               ----        --------                  -----------
first/storage/     userpass    auth_userpass_c1be1488    n/a
second/storage/    userpass    auth_userpass_74c53fc1    n/a
token/             token       auth_token_852ab06f       token based credentials

[sergey@dev]$ vault write auth/first/storage/users/antoniobanderas password=something
Success! Data written to: auth/first/storage/users/antoniobanderas

[sergey@dev]$ vault write auth/second/storage/users/angelinajolie password=something
Success! Data written to: auth/second/storage/users/angelinajolie

[sergey@dev]$ vault list auth/first/storage/users
Keys
----
antoniobanderas

[sergey@dev]$ vault list auth/second/storage/users
Keys
----
angelinajolie

Although observing theese auth methods though UI will result in showing both storages have only antoniobanderas, either angelinajolie depending on the first auth method that was observed. Reproduces in both chrome and firefox.

First storage Second storage
image image

Expected behavior
I expect UI to show list of users from the auth method it's being asked for, not the one that was cached.

Environment:

  • Vault Server Version (retrieve with vault status): v1.4.1
  • Vault CLI Version (retrieve with vault version): v1.3.2
  • Server Operating System/Architecture: Linux 5.6.7-1-MANJARO SMP PREEMPT Thu Apr 23 10:50:31 UTC 2020 x86_64 GNU/Linux
  • Vault server configuration file(s): default config from docker image
@pcman312 pcman312 added bug Used to indicate a potential bug ui labels May 6, 2020
@sfynx
Copy link

sfynx commented Jul 31, 2020

This also happens with the Roles section of the Kubernetes auth method, so it is definitely a general problem with listing extra information related to any auth method of the same type. Very annoying indeed. Still happens with v1.5.0.

@hellobontempo
Copy link
Contributor

Thank you for reporting! Closing this out as I tested as far back as 1.9.10 and the issue has been resolved. Please reopen if you experience otherwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Used to indicate a potential bug ui
Projects
None yet
Development

No branches or pull requests

4 participants