-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Backport of Custom tooltip for Generated Token Policies form field on auth methods into release/1.8.x #15052
Conversation
e2733c8
to
16ff2f7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
There was a problem hiding this 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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
Requested change has been addressed! (And Chelsea is out today, unable to re-review)
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 thehelpText
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:

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.