Skip to content

[v17] Adds services for pruning roles when requesting remote resources.#59063

Merged
tcsc merged 3 commits intobranch/v17from
tcsc/branch/v17/remote-role-pruning
Sep 16, 2025
Merged

[v17] Adds services for pruning roles when requesting remote resources.#59063
tcsc merged 3 commits intobranch/v17from
tcsc/branch/v17/remote-role-pruning

Conversation

@tcsc
Copy link
Copy Markdown
Contributor

@tcsc tcsc commented Sep 12, 2025

Currently, when a user creates an Acess Request for a resource in a remote cluster
Teleport lacks the appropriate information to decide which roles to offer and falls
back to suggesting all available search_as roles for the reequesting user.

This patch provides the back-end services to allow Teleport to prune the roles for
remote-resource requests in the same way as requests for local resources.

Also note that this change only includes includes the back-end changes that will be
executed on a leaf cluster. The front-end, root-cluster changes are coming in a
subsequent PR.

Addresses: #56315
Backports: #57227
Changelog: Added services to correctly choose Access Request roles in remote clusters.

Currently, when a user creates an Acess Request for a resource in a remote cluster
Teleport lacks the appropriate information to decide which roles to offer and falls
back to suggesting all available `search_as` roles for the reequesting user.

This patch provides the back-end services to allow Teleport to prune the roles for
remote-resource requests in the same way as requests for local resources.

Also note that this change only includes includes the back-end changes that will be
executed on a leaf cluster. The front-end, root-cluster changes are coming in a
subsequent PR.

Addresses: #56315
Backports: #57227
Changelog: Added services to correctly choose Access Request roles in remote clusters.
@tcsc tcsc enabled auto-merge September 16, 2025 06:54
@tcsc tcsc added this pull request to the merge queue Sep 16, 2025
Merged via the queue into branch/v17 with commit 4016a40 Sep 16, 2025
44 checks passed
@tcsc tcsc deleted the tcsc/branch/v17/remote-role-pruning branch September 16, 2025 07:34
@doggydogworld doggydogworld mentioned this pull request Sep 18, 2025
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.

3 participants