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

Backport of Custom tooltip for Generated Token Policies form field on auth methods into release/1.8.x #15052

Merged

Conversation

hc-github-team-secure-vault-core
Copy link
Collaborator

Backport

This PR is auto-generated from #15046 to be assessed for backporting due to the inclusion of the label backport/1.8.x.

WARNING automatic cherry-pick of commits failed. Commits will require human attention.

The below text is copied from the body of the original PR.


This PR intercepts the model on the generatedItem component to replace the helpText for the auth form field "Generated Token's Policies"

Before the help text read: Comma-separated list of policies associated with the user.

However, this field (e.g form field = stringArray) does not accept comma separated lists. We instead want a user to add a row for each new policy. We cannot change the text here because that changes the CLI text which does accept a comma separated list. So instead, we interrupt the component, search for this field type and replace the helpText with the following: Add policies that will apply to the generated token for this user. One policy per row.

This now looks like this:
image

This change effects TLS Certificates, Userpass, and Kubernetes who have this field. The other auth methods have a different field or no policy field at all.

Will backport to 1.8

See GH issue here.

@vercel vercel bot temporarily deployed to Preview – vault-storybook April 15, 2022 16:39 Inactive
@vercel vercel bot temporarily deployed to Preview – vault April 15, 2022 16:39 Inactive
@vercel vercel bot temporarily deployed to Preview – vault-storybook April 15, 2022 16:39 Inactive
@vercel vercel bot temporarily deployed to Preview – vault April 15, 2022 16:39 Inactive
@Monkeychip Monkeychip added the ui label Apr 15, 2022
@Monkeychip Monkeychip added this to the 1.8.10 milestone Apr 15, 2022
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.

🚀

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.

I think this still has the foreach approach

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.

🚀

@hellobontempo hellobontempo dismissed hashishaw’s stale review April 18, 2022 16:25

Requested change has been addressed! (And Chelsea is out today, unable to re-review)

@Monkeychip Monkeychip merged commit e0d01f0 into release/1.8.x Apr 18, 2022
@Monkeychip Monkeychip deleted the backport/ui/fix-tooltip/preferably-pro-monarch branch April 18, 2022 16:29
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.

4 participants