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

Allow to combine multiple subject in the same command #32

Open
agaudreault opened this issue Oct 2, 2020 · 0 comments
Open

Allow to combine multiple subject in the same command #32

agaudreault opened this issue Oct 2, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@agaudreault
Copy link

Is your feature request related to a problem? Please describe.
We want to get a summary of the permission that can be done for a user. I am not sure if this is the goal of the project or if you are aware of another project that would fit more our needs.

It would be nice if we would be able to do something like kubectl rolesum -K User <username> -K Group <group1> -K Group <group2> to combine the results of different groups. We use OIDC to authenticate to our cluster and users have multiple groups.

Describe the solution you'd like
New parameters for group and user could be used instead of a global kind.

  • kubectl rolesum -G <group1,group2> -U <[email protected]> to get groups and/or user
  • Only -G would allow for a list since 2 users does not make sense
  • -G and -U cannot be combined with ServiceAccount
  • kubectl rolesum <serviceAccount> can still be used to query SA.
  • -K <kind> parameter can still be used for backward, but cannot be combined with -G or -U

Describe alternatives you've considered
Use another tool for that usecase if you know one!

@Ladicle Ladicle added the enhancement New feature or request label Oct 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants