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

Unable to export cluster unless user has explicit CAN_MANAGE permission #265

Open
jeff-shuttNH opened this issue May 11, 2023 · 2 comments

Comments

@jeff-shuttNH
Copy link

jeff-shuttNH commented May 11, 2023

While running an export on my single tenant workspace, I was getting failures on exporting the all purpose clusters where the message looked like:

Failed to get cluster ACL: {'object_id': '/clusters/0501-133555-abcdef', 'object_type': 'cluster', 'access_control_list': [], 'http_status_code': 200, 'cluster_name': 'My Cluster'}

When comparing the list of those that failed to our total list of clusters, I noticed that it was all but 2 of the clusters that I was getting this on, so I started inspecting those 2 clusters to see what was different about them. Turns out, my user had explicit CAN_MANAGE permission on them, whereas on all the other ones I only had inherited CAN_MANAGE permissions via the user groups that I am part of. (Including the admin group)

The workaround was of course to explicitly add the CAN_MANAGE permission for my user on all the other clusters. Am I right in thinking that as an admin user, I shouldn't have to do that though?

@gregwood-db
Copy link
Contributor

@jeff-shuttNH there shouldn't be a need for explicit can_manage as long as you are an admin user... did you try updating the permissions and retrying the export to isolate the issue?

@jeff-shuttNH
Copy link
Author

did you try updating the permissions

I think so? 🤷 I just ran an export with only the clusters task, and any cluster where my user, which is an admin, doesn't have explicit CAN_MANAGE permission on, fails with that error. If I then add the permission, run it again, it exports just fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants