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 get / server-side API support for filtering objects #36826

Open
programmerq opened this issue Jan 17, 2024 · 1 comment
Open

tctl get / server-side API support for filtering objects #36826

programmerq opened this issue Jan 17, 2024 · 1 comment
Labels
c-va Internal Customer Reference feature-request Used for new features in Teleport, improvements to current should be #enhancements grpc Issues related to gRPC tctl tctl - Teleport admin tool

Comments

@programmerq
Copy link
Contributor

What would you like Teleport to do?

Introduce functionality for filtering by a pattern or regex for listing or deletion (tctl and also gRPC API), allowing inclusion of search patterns or criteria to select roles.

What problem does this solve?

Currently, it seems there is no way to bulk delete roles that match a specific naming pattern (such as 'dev_' or 'change_') either through the tctl command-line tool or the gRPC API. Users trying to delete multiple roles cannot do so efficiently and have to rely on deleting individual roles manually or writing scripts without native support.

This enhancement would make it easier for administrators to manage large sets of roles, especially for operations such as clean-up or restructuring.

More specifically, this was requested by a user who has thousands of roles. They are running into this bug: #36523 That is preventing the listing of roles on this cluster, and they'd like to clean them up.

If a workaround exists, please include it.

At the moment, the only workaround seems to be a manual deletion of each role or a custom script that individually processes role deletions.

@programmerq programmerq added feature-request Used for new features in Teleport, improvements to current should be #enhancements tctl tctl - Teleport admin tool c-va Internal Customer Reference grpc Issues related to gRPC labels Jan 17, 2024
@zmb3
Copy link
Collaborator

zmb3 commented May 12, 2024

Note: some of the listing commands do support server side filtering via the --query param, so it sounds like this request is just to add --query to tctl get (and possibly tctl rm).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c-va Internal Customer Reference feature-request Used for new features in Teleport, improvements to current should be #enhancements grpc Issues related to gRPC tctl tctl - Teleport admin tool
Projects
None yet
Development

No branches or pull requests

2 participants