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

🌱 Add support for wildcards by using az to fetch a list of all permissions #274

Open
mattwelke opened this issue Oct 2, 2024 · 0 comments
Assignees
Labels
enhancement Enhancement to an existing feature

Comments

@mattwelke
Copy link
Member

Summary

When we originally created the RBAC rule, we believed we could not support wildcards in the actions specified because in order to come up with an algorithm that would work, we'd need to have the full list of possible actions. We did not know where to find this data.

Since then, we've realized that you can get a full list of actions using the az CLI by running:

az provider operation list

This outputs a list of all permissions (permission == action == operation).

We have so far not found an API equivalent to this. The APIs we have found so far appear to return only partial data. That command, in contrast, appears to return complete data, omitting only operations no longer supported by resource providers (present in older API versions but now removed).

We may be able to embed az in the plugin program and invoke it using the subscription used to authenticate the plugin. We could then parse the output and store it temporarily (perhaps in memory until the pod shuts down). Then, we could change the implementation of the RBAC rule service to use a new algorithm and to support wildcards.

@mattwelke mattwelke added the enhancement Enhancement to an existing feature label Oct 2, 2024
@mattwelke mattwelke self-assigned this Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement to an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant