-
Notifications
You must be signed in to change notification settings - Fork 179
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
WIP: Adds utils for access checks #3724
base: main
Are you sure you want to change the base?
WIP: Adds utils for access checks #3724
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some WIP thoughts...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, just a few things
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
i will wait for you to resolve griffins comments before we push it through. im fine with adding tests in a later jira
New changes are detected. LGTM label has been removed. |
9531bef
to
86069e4
Compare
https://issues.redhat.com/browse/RHOAIENG-18732
Description
Adds support for SelfSubjectAccessReviews (SSAR) on resources for admins to help with more granular flows/permissions out of the "admin".
Applies this logic to the Hardware Profiles screen.
Examples of granular permissions:
![Screenshot 2025-01-28 at 10 55 06 AM](https://private-user-images.githubusercontent.com/8126518/409743545-7c6f299b-22be-4c62-907e-5551799d277c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxODIxNTQsIm5iZiI6MTczOTE4MTg1NCwicGF0aCI6Ii84MTI2NTE4LzQwOTc0MzU0NS03YzZmMjk5Yi0yMmJlLTRjNjItOTA3ZS01NTUxNzk5ZDI3N2MucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9Q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l2_v2ZNklRXtXjQIQEd3N-qobNg)
How Has This Been Tested?
There is a readme in the code that helps with setup for RBAC values on cluster.
Tested around using cluster-admin and impersonating another user with granted permissions.
Test Impact
??
Request review criteria:
Self checklist (all need to be checked):
If you have UI changes:
After the PR is posted & before it merges:
main