-
Notifications
You must be signed in to change notification settings - Fork 166
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
[Feature Request]: Allow dashboard "adminGroups" the ability to query the dashboard rest api without requiring cluster-admin permissions #548
Comments
@LaVLaS what release is this? If this was off the hotfix (or RHODS 1.16), I'm not sure the existing solution was part of that.
|
This was for odh-dashboard:v2.1.1 but I'll try this against |
I ran into a similar issue with oauth proxy for modelmesh |
I was able to fix this issue in modelmesh by updating the oauth proxy config to:
So...
became
In your case, I think just specifying the namespace should remedy things. With regards to the blackbox exporter still working at the time, my guess is that it actually basically has cluster viewer (either the blackbox pod or the prometheus pod that's doing the actual scraping). |
That's indeed true. isAdmin returns either cluster-admin or rhods-admin. |
Moving to closed based on comments in #464 - please let me know if this is still an issue. |
Feature description
In order for a user to query the odh-dashboard REST API directly, they require cluster-admin permissions to get any results. Based on checkRoleBindings, it seems like any user request with a valid oauth Bearer Token requires
cluster-admin
permissions when that level of permissions is not required when routed through a web browser.Describe alternatives you've considered
No response
Anything else?
I am following this workflow to query the odh-dashboard REST API
For an ocp user that is not cluster-admin, the response is html for an oauth login. When granting the user
cluster-admin
permissions, the response isThe text was updated successfully, but these errors were encountered: