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

Show permissions error on KV when you don't have access to create a s… #8170

Merged
merged 1 commit into from
Jan 16, 2020

Conversation

Monkeychip
Copy link
Contributor

Backport for #8133, which fixes a bug where errors were not being caught because the wrong model was being passed into the KV secret engine's create and edit partials.

…ecret (#8133)

* add catch for fail on save.  isError is not being set to true, so set it in the catch

* add conditionally to only catch 403 permission errors.  Otherwise it will catch and return an unhelpful error message for when you are trying to save a duplicate secret

* add in code comment

* remove catch and pass version 2 secret model to Error handler inside template

* replace Error model with modelForData to catch errors on the correct model

* add back in space

* replace error model with modelForData
@Monkeychip Monkeychip merged commit 15cc305 into release/1.3.x Jan 16, 2020
@Monkeychip Monkeychip deleted the backport-pr-8133-1.3.x branch January 16, 2020 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants