Skip to content

[v18][scopes] tctl scoped role assignment UX improvements#65656

Open
nklaassen wants to merge 1 commit intobranch/v18from
nklaassen/v18/tctl-sra-ux
Open

[v18][scopes] tctl scoped role assignment UX improvements#65656
nklaassen wants to merge 1 commit intobranch/v18from
nklaassen/v18/tctl-sra-ux

Conversation

@nklaassen
Copy link
Copy Markdown
Contributor

@nklaassen nklaassen commented Apr 10, 2026

Backport #65628 to branch/v18

Manual Test Plan

Test Environment

A cluster on this branch with TELEPORT_UNSTABLE_SCOPES=yes

resources.yaml:

kind: scoped_role
metadata:
  name: eng-access
  revision: 17ce670f-f672-4a97-843d-dcc9ef80c65a
scope: /
spec:
  assignable_scopes:
  - /eng
version: v1
---
kind: scoped_role_assignment
sub_kind: dynamic
scope: /
spec:
  user: nic
  assignments:
    - role: eng-access
      scope: /eng
version: v1

Test Cases

  • tctl create resources.yaml
  • tctl get scoped_role_assignment lists the assignment
  • tctl get scoped_role_assignment/dynamic/id works
  • tctl get scoped_role_assignment/id fails with an actionable error
  • tctl rm scoped_role_assignment/id fails with an actionable error
  • tctl rm scoped_role_assignment/materialized/id fails with an informative error
  • tctl rm scoped_role_assignment/unknown/id fails with BadParameter
  • tctl rm scoped_role_assignment/dynamic/id works

@nklaassen nklaassen added no-changelog Indicates that a PR does not require a changelog entry scopes Work related to scoped access (RFD 229). labels Apr 10, 2026
@github-actions github-actions bot added backport size/sm tctl tctl - Teleport admin tool labels Apr 10, 2026
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c07650729e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@nklaassen nklaassen enabled auto-merge April 10, 2026 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport no-changelog Indicates that a PR does not require a changelog entry scopes Work related to scoped access (RFD 229). size/sm tctl tctl - Teleport admin tool

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants