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: better calculation for advanced secret in KV v2 #24513

Merged
merged 10 commits into from
Dec 13, 2023

Conversation

hashishaw
Copy link
Contributor

@hashishaw hashishaw commented Dec 13, 2023

In #24308 we inadvertently introduced an issue where secrets with values that include { would be locked to the JSON view. This PR makes the check in a more intelligent way so that the original intended behavior is preserved, but secret values are not shown.

Now, string values with { are shown as inputs instead of with the JSON editor:
Screenshot 2023-12-13 at 1 56 28 PM
Screenshot 2023-12-13 at 1 56 33 PM

Out of scope for this backport but as a future improvement, we will add obscurity to the JSON view that is toggleable

@hashishaw hashishaw added ui bug Used to indicate a potential bug labels Dec 13, 2023
@hashishaw hashishaw added this to the 1.15.5 milestone Dec 13, 2023
@github-actions github-actions bot added the hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed label Dec 13, 2023
@hashishaw hashishaw marked this pull request as ready for review December 13, 2023 20:12
Copy link

Build Results:
All builds succeeded! ✅

Copy link
Contributor

Choose a reason for hiding this comment

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

do we need a test accounting for escape characters/multi line entries \? I remember this coming up somewhere 🤔

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.

Thanks for tackling and adding test coverage!

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 hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants