Skip to content

Add support for role.spec.allow.request.reason.prompt to specify custom reason prompts for Access Requests#60847

Merged
kshi36 merged 10 commits intomasterfrom
kevin/custom-access-request-prompt
Nov 6, 2025
Merged

Add support for role.spec.allow.request.reason.prompt to specify custom reason prompts for Access Requests#60847
kshi36 merged 10 commits intomasterfrom
kevin/custom-access-request-prompt

Conversation

@kshi36
Copy link
Copy Markdown
Contributor

@kshi36 kshi36 commented Oct 30, 2025

Closes #55544

Added support for role.spec.allow.request.reason.prompt, which allows Access Requests to specify a custom reason prompt per role/resource

changelog: Added support for custom reason prompts for Access Requests, per requested role/resource (role.spec.allow.request.reason.prompt)

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Oct 30, 2025

Amplify deployment status

Branch Commit Job ID Status Preview Updated (UTC)
kevin/custom-access-request-prompt f4c549a 7 ✅SUCCEED kevin-custom-access-request-prompt 2025-11-06 19:09:37

Comment thread docs/pages/identity-governance/access-requests/access-request-configuration.mdx Outdated
Copy link
Copy Markdown
Contributor

@kopiczko kopiczko left a comment

Choose a reason for hiding this comment

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

Looks good in general I'd just like a bit clearer documentation and let's please also update the test plan https://github.com/gravitational/teleport/blob/master/.github/ISSUE_TEMPLATE/testplan.md#igs

Comment thread docs/pages/identity-governance/access-requests/access-request-configuration.mdx Outdated
Comment thread lib/services/access_request.go Outdated
@kshi36
Copy link
Copy Markdown
Contributor Author

kshi36 commented Nov 3, 2025

Looks good in general I'd just like a bit clearer documentation and let's please also update the test plan https://github.com/gravitational/teleport/blob/master/.github/ISSUE_TEMPLATE/testplan.md#igs

I noticed that there are test plan changes for Access Request that have not been merged yet, that involve the same logic:
#55247

Should I simply re-add it and build off it? I can do it in a separate PR for updating the test plan

Copy link
Copy Markdown
Contributor

@kopiczko kopiczko left a comment

Choose a reason for hiding this comment

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

This LGTM with the docs suggestions applied. I'm only waiting for the test plan update. I've already asked to merge the hanging PR for the test plan.

Comment thread docs/pages/identity-governance/access-requests/access-request-configuration.mdx Outdated
Comment thread docs/pages/identity-governance/access-requests/access-request-configuration.mdx Outdated
@kshi36
Copy link
Copy Markdown
Contributor Author

kshi36 commented Nov 4, 2025

Test plan #61022

Copy link
Copy Markdown
Contributor

@kopiczko kopiczko left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from r0mant November 6, 2025 18:59
@kshi36 kshi36 added this pull request to the merge queue Nov 6, 2025
Merged via the queue into master with commit 36bbc6c Nov 6, 2025
46 checks passed
@kshi36 kshi36 deleted the kevin/custom-access-request-prompt branch November 6, 2025 21:23
@backport-bot-workflows
Copy link
Copy Markdown
Contributor

@kshi36 See the table below for backport results.

Branch Result
branch/v18 Failed

kshi36 added a commit that referenced this pull request Nov 6, 2025
…stom reason prompts for Access Requests (#60847)

* Added support for `role.spec.allow.request.reason.prompt` to specify custom reason prompts for requestable `roles`/`search_as_roles`

* Update terraform schema & docs

* Updated role-spec docs to include support for  and updated UI for prompt displays

* Fix lint

* Update reference docs

* Include prompt output for tctl, update reference docs, and fix UI

* Update docs

* Fix e ref
github-merge-queue bot pushed a commit that referenced this pull request Nov 12, 2025
…stom reason prompts for Access Requests (#60847) (#61127)

* Added support for `role.spec.allow.request.reason.prompt` to specify custom reason prompts for requestable `roles`/`search_as_roles`

* Update terraform schema & docs

* Updated role-spec docs to include support for  and updated UI for prompt displays

* Fix lint

* Update reference docs

* Include prompt output for tctl, update reference docs, and fix UI

* Update docs

* Fix e ref
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow specifying a custom Access Request reason prompt per requested resource/role

4 participants