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

UI - user can't delete secret under specific path #13180

Closed
lukpep opened this issue Nov 17, 2021 · 3 comments
Closed

UI - user can't delete secret under specific path #13180

lukpep opened this issue Nov 17, 2021 · 3 comments

Comments

@lukpep
Copy link

lukpep commented Nov 17, 2021

Describe the bug
user with policy:

path "app-secrets/data/application_1/*" {
  capabilities = ["create", "update", "read", "delete", "list"]
}

# required so that users can navigate in the UI - related to https://github.com/hashicorp/vault/issues/5362
path "app-secrets/*" {
  capabilities = ["list"]
}

is able to create and edit secrets (as expected) only under application_1 path in app-secrets engine. Delete is not possible - option is missing in UI menu:
CleanShot 2021-11-17 at 15 06 46

CleanShot 2021-11-17 at 15 07 00

only after I add this to a user policy:

path "app-secrets/*" {
  capabilities = ["delete"]
}

option in UI appears:
CleanShot 2021-11-17 at 15 09 14

To Reproduce
create user with the above policy and verify options available in the UI

Expected behavior
Users should be allowed to delete secrets under the specific paths with this first policy.

Environment:

  • Vault Server Version 1.8.4
  • Vault CLI Version Vault v1.8.4 (925bc65)
  • Server Operating System/Architecture: K8s linux x86
@hsimon-hashicorp hsimon-hashicorp changed the title UI - user can't delete secret under specyfic path UI - user can't delete secret under specific path Nov 17, 2021
@hsimon-hashicorp
Copy link
Contributor

Hi @lukpep! This is fixed in version 1.9. It was not backported to 1.8, because so much work went into the kv revamp in 1.9 that it would have been difficult to get all of those updates in 1.8. Please try 1.9 and let me know if it fixes the issue for you. Thanks!

@lukpep
Copy link
Author

lukpep commented Nov 18, 2021

Yep - upgraded my clusters and now it works as expected ;-) Thank You!
Although #5362 is still there - the user has to be able to list all secret paths / or now exactly what to look for:
CleanShot 2021-11-18 at 19 05 56

@lukpep lukpep closed this as completed Nov 18, 2021
@hsimon-hashicorp
Copy link
Contributor

Thanks @lukpep! We'll keep looking for ways to make the kv v2 experience better. Really appreciate your time! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants