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: Fix metadata tab not showing given policy #15824

Merged
merged 4 commits into from Jun 7, 2022

Conversation

hashishaw
Copy link
Collaborator

@hashishaw hashishaw commented Jun 6, 2022

This PR fixes the path what capabilities are checked against when evaluating whether to show the metadata tab on KV v2 secrets engine. Since metadata is only ever connected to a secret with an ID, we need to provide the ID on that capability path so that it is checked for each specific secret view.

Repro steps for the bug are excellently outlined in issue #15347

@hashishaw hashishaw added ui bug Used to indicate a potential bug backport/1.9.x labels Jun 6, 2022
@hashishaw hashishaw added this to the 1.9.7 milestone Jun 6, 2022
Copy link
Contributor

@hellobontempo hellobontempo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a small test fix! Thanks for tackling

ui/tests/acceptance/secrets/backend/kv/secret-test.js Outdated Show resolved Hide resolved
@@ -29,6 +29,18 @@ let writeSecret = async function (backend, path, key, val) {
return editPage.createSecret(path, key, val);
};

let deleteEngine = async function (enginePath, assert) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
@hashishaw hashishaw merged commit 551ba2c into main Jun 7, 2022
@hashishaw hashishaw deleted the ui/VAULT-6165/fix-metadata-tab-permissions branch June 7, 2022 15:57
hashishaw added a commit that referenced this pull request Jun 8, 2022
* Update path that metadata tab checks capabilities against

* Add changelog

* Update test to handle this case

* Fix tests url

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
hashishaw added a commit that referenced this pull request Jun 8, 2022
* Update path that metadata tab checks capabilities against

* Add changelog

* Update test to handle this case

* Fix tests url

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
hashishaw added a commit that referenced this pull request Jun 28, 2022
* Update path that metadata tab checks capabilities against

* Add changelog

* Update test to handle this case

* Fix tests url

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
hashishaw added a commit that referenced this pull request Jun 28, 2022
* Update path that metadata tab checks capabilities against

* Add changelog

* Update test to handle this case

* Fix tests url

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

None yet

2 participants