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

KV Download Value Stringify Toggle #23747

Merged
merged 5 commits into from
Oct 20, 2023
Merged

KV Download Value Stringify Toggle #23747

merged 5 commits into from
Oct 20, 2023

Conversation

zofskeez
Copy link
Contributor

@zofskeez zofskeez commented Oct 19, 2023

This PR adds a toggle to the KV secrets engine value download modal to optionally stringify the value. Previously the default behavior was to stringify which was adding escape characters for things like new lines that some users did not want. This will give control over how the value is represented in the downloaded file.

image

Closes #22279

@zofskeez zofskeez added this to the 1.14.5 milestone Oct 19, 2023
@github-actions github-actions bot added the hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed label Oct 19, 2023
@github-actions
Copy link

Build Results:
All builds succeeded! ✅

Copy link
Contributor

@hashishaw hashishaw left a comment

Choose a reason for hiding this comment

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

Small suggestion, otherwise looks good!

as |F|
>
<F.Label>Stringify secret value</F.Label>
<F.HelperText>Preserve formatting for JSON values.</F.HelperText>
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor nit, but the language here is unclear whether the current value will preserve formatting, or checking this option will preserve formatting. Maybe update to:

Suggested change
<F.HelperText>Preserve formatting for JSON values.</F.HelperText>
<F.HelperText>Selecting this option preserves formatting for JSON values.</F.HelperText>

Copy link
Contributor Author

@zofskeez zofskeez Oct 19, 2023

Choose a reason for hiding this comment

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

I had something similar originally and this is the update I got from design. 🤷‍♂️

Copy link
Contributor

Choose a reason for hiding this comment

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

alright then! 🤷

@zofskeez zofskeez merged commit 01d5d1d into main Oct 20, 2023
68 checks passed
@zofskeez zofskeez deleted the ui/VAULT-20810/kv-download branch October 20, 2023 14:56
zofskeez added a commit that referenced this pull request Oct 20, 2023
* adds stringify toggle to masked-input download modal

* updates stringify toggle copy and adds a test

* adds changelog entry
zofskeez added a commit that referenced this pull request Oct 20, 2023
* adds stringify toggle to masked-input download modal

* updates stringify toggle copy and adds a test

* adds changelog entry
zofskeez added a commit that referenced this pull request Oct 20, 2023
* KV Download Value Stringify Toggle (#23747)

* adds stringify toggle to masked-input download modal

* updates stringify toggle copy and adds a test

* adds changelog entry

* adds modal wormhole to test
zofskeez added a commit that referenced this pull request Oct 20, 2023
* KV Download Value Stringify Toggle (#23747)

* adds stringify toggle to masked-input download modal

* updates stringify toggle copy and adds a test

* adds changelog entry

* removes extra test from backport for masked input

* adds modal wormhole to test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

vault 1.14.x kv2 UI "download" replaces newlines with \n
2 participants