Allow prompting for a custom reason on regular role requests #29475
Labels
access-requests
c-mac
Internal Customer Reference
c-nt
Internal Customer Reference
feature-request
Used for new features in Teleport, improvements to current should be #enhancements
tsh
tsh - Teleport's command line tool for logging into nodes running Teleport.
ui
ux
What would you like Teleport to do?
Enhance the functionality of the
request_prompt
field in role configurations. Therequest_prompt
field should not only provide a prompt for roles with therequest_access: reason
option set, but also define a custom message instructing users what they need to include with their access request.For example, given the following role:
expand: `request_prompt: Please enter the Ticket ID`
The web UI would output the reason in some way so the user can know what is expected of them.
It might even be ideal to prompt the user to rerun with
--request-reason
when requesting a role viatsh request create
that has a prompt, but the user did not specify the reason.What problem does this solve?
Currently, the
request_prompt
field is designed to prompt a message when the role also has therequest_access: reason
option set. The only time this comes up is when using the waiting room / Advanced RBAC feature where the request is created at login.More specific user-guidance is still helpful for cases where the user is creating a request manually. It will reduce confusion on Teleport end users.
If a workaround exists, please include it.
There isn't really a good workaround-- The user would just need to know that their Teleport admins require a certain piece of information in the request reason field that is currently marked "(optional)" in the web ui.
The text was updated successfully, but these errors were encountered: