Skip to content

[Access Requests] Show constrained resources in tsh/tctl#63619

Merged
kiosion merged 2 commits intomasterfrom
maxim/resource-constraints-cli-show
Feb 11, 2026
Merged

[Access Requests] Show constrained resources in tsh/tctl#63619
kiosion merged 2 commits intomasterfrom
maxim/resource-constraints-cli-show

Conversation

@kiosion
Copy link
Copy Markdown
Contributor

@kiosion kiosion commented Feb 6, 2026

Context

Part 1 of supporting Resource Constraints in tsh/tctl. Show constraints alongside relevant ResourceIDs when listing/showing an Access Request. We'll likely revisit how this info is presented as part of supporting specifying constraints and listing requestable principals on resources via tsh/tctl; this is intended to function as a stopgap until then, rather than the information being omitted entirely.

Testing

Manually tested via Access Requests created via Web UI containing constrained resources; added test cases for updated helpers:

  • tsh request show
  • tsh request ls
  • tsh login
  • tsh status

@kiosion kiosion added no-changelog Indicates that a PR does not require a changelog entry backport/branch/v18 labels Feb 6, 2026
@kiosion kiosion force-pushed the maxim/resource-constraints-cli-show branch from 4777eee to c12f59a Compare February 6, 2026 23:26
@kiosion kiosion marked this pull request as ready for review February 6, 2026 23:27
@github-actions github-actions Bot added size/sm tctl tctl - Teleport admin tool tsh tsh - Teleport's command line tool for logging into nodes running Teleport. labels Feb 6, 2026
@github-actions github-actions Bot requested review from ravicious and rudream February 6, 2026 23:27
Copy link
Copy Markdown
Member

@ravicious ravicious left a comment

Choose a reason for hiding this comment

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

Listing requests and getting a particular request through tsh and tctl works, however tsh status appears to be broken.

Comment thread tool/tsh/common/db_test.go
Comment thread tool/common/common.go Outdated
Comment thread tool/tsh/common/access_request.go
@kiosion kiosion force-pushed the maxim/resource-constraints-cli-show branch from c12f59a to 82e2382 Compare February 10, 2026 18:52
@kiosion kiosion requested a review from ravicious February 10, 2026 18:54
Comment thread tool/common/common.go Outdated
Comment thread tool/common/common.go Outdated
Comment thread tool/common/common.go Outdated
Comment thread tool/common/common_test.go
Copy link
Copy Markdown
Member

@ravicious ravicious left a comment

Choose a reason for hiding this comment

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

There's a tough call to make on how to display role ARNs since we don't seem to have any prior art for showing lists in the attr=value format.

@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from rudream February 11, 2026 15:05
- Part 1 of supporting Resource Constraints in tsh/tctl. Show
  constraints alongside relevant ResourceIDs when listing/showing an
  Access Request in tsh/tctl.
@kiosion
Copy link
Copy Markdown
Contributor Author

kiosion commented Feb 11, 2026

There's a tough call to make on how to display role ARNs since we don't seem to have any prior art for showing lists in the attr=value format.

Yeah... My plan is just to get in basic support for displaying constraints w/ this PR, but I'm working on updating the Resource Constraints RFD so we can discuss a "proper" way to support their display and creation of requests with them.

@kiosion kiosion force-pushed the maxim/resource-constraints-cli-show branch from 82e2382 to 7d1c764 Compare February 11, 2026 17:28
@kiosion kiosion enabled auto-merge February 11, 2026 17:43
@kiosion kiosion added this pull request to the merge queue Feb 11, 2026
Merged via the queue into master with commit 380ddc1 Feb 11, 2026
42 checks passed
@kiosion kiosion deleted the maxim/resource-constraints-cli-show branch February 11, 2026 18:06
@backport-bot-workflows
Copy link
Copy Markdown
Contributor

@kiosion See the table below for backport results.

Branch Result
branch/v18 Create PR

kiosion added a commit that referenced this pull request Feb 11, 2026
* feat: Show constrained resources in tsh/tctl

- Part 1 of supporting Resource Constraints in tsh/tctl. Show
  constraints alongside relevant ResourceIDs when listing/showing an
  Access Request in tsh/tctl.

* fixup: Address code review feedback
kiosion added a commit that referenced this pull request Mar 24, 2026
* feat: Show constrained resources in tsh/tctl

- Part 1 of supporting Resource Constraints in tsh/tctl. Show
  constraints alongside relevant ResourceIDs when listing/showing an
  Access Request in tsh/tctl.

* fixup: Address code review feedback
github-merge-queue Bot pushed a commit that referenced this pull request Mar 24, 2026
* Access Requests: Add Resource-Scoped Constraints (#60123)

* feat: Extend `AWSRole` struct w/ `RequiresRequest`

- Differentiate between already-granted vs. requestable AWSRoles when
  including requestable resources in `clusterUnifiedResourcesGet`
  req

* feat: Implement Resource Constraints support for Proxy, Auth

* fixup: Fix tests

* test: Add tests for resourceaccessid-related helpers

* fixup: Address code review feedback

* test: Update identity/events tests for new `ResourceAccessID` fields

* fixup: Expand/improve godocs/comments for sentinel ResourceID handling

* fixup: Address code review feedback

* feat: Conv ResourceID->ResourceAccessID at cert decoding

- Convert ResourceIDs present on certs to ResourceAccessIDs at decoding
  time, rather than at each callsite. Update tests/usages of tlsca/sshca
  Identities to reflect this.

* Access Requests: Web UI handling for Resource-Scoped Constraints (#62152)

* feat: Implement Resource Constraints for Web

* fixup: Address code review feedback

* test: Add stories for Resource Constraint RequestCheckout changes

* fixup: Address code review feedback

* [Connect] Update types for ResourceConstraints support (#63492)

* types: Update protos for Teleterm support of ResourceConstraints

* fixup: Resolve test/story type errors from proto field changes

* [Access Requests] Show constrained resources in tsh/tctl (#63619)

* feat: Show constrained resources in tsh/tctl

- Part 1 of supporting Resource Constraints in tsh/tctl. Show
  constraints alongside relevant ResourceIDs when listing/showing an
  Access Request in tsh/tctl.

* fixup: Address code review feedback

* [Connect] Provide empty resourceAccessId arr for Access Req dryrun
(#63789)

* fix: Provide empty resourceAccessId arr for Access Req dryrun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/branch/v18 no-changelog Indicates that a PR does not require a changelog entry size/sm tctl tctl - Teleport admin tool tsh tsh - Teleport's command line tool for logging into nodes running Teleport.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants