Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"tctl tokens ls" could use a --labels flag #46388

Open
milos-teleport opened this issue Sep 9, 2024 · 0 comments · May be fixed by #50588
Open

"tctl tokens ls" could use a --labels flag #46388

milos-teleport opened this issue Sep 9, 2024 · 0 comments · May be fixed by #50588
Labels
c-nbs Internal Customer Reference feature-request Used for new features in Teleport, improvements to current should be #enhancements tctl tctl - Teleport admin tool

Comments

@milos-teleport
Copy link
Contributor

What would you like Teleport to do?
It would be nice to add a --labels flag to tctl tokens ls

What problem does this solve?
Customers that handle large numbers of K8s JWKS tokens would benefit from a native way of filtering tokens instead of relying on utilities like jq

If a workaround exists, please include it.

tctl tokens ls --format json | jq '.[] | select( .metadata.labels.my_label_key =="my_label_value"  )'
@milos-teleport milos-teleport added feature-request Used for new features in Teleport, improvements to current should be #enhancements c-nbs Internal Customer Reference labels Sep 9, 2024
@stevenGravy stevenGravy added the tctl tctl - Teleport admin tool label Sep 9, 2024
zmb3 added a commit that referenced this issue Dec 26, 2024
Note: I removed the subtests from TestTokens since they were not
independendent tests - the ls subtest could only succeed if the
add subtest ran first.

Closes #46388
@zmb3 zmb3 linked a pull request Dec 26, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c-nbs Internal Customer Reference feature-request Used for new features in Teleport, improvements to current should be #enhancements tctl tctl - Teleport admin tool
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants