WIP: feat(settings): add admin groups for automatic admin privileges - #8205
WIP: feat(settings): add admin groups for automatic admin privileges#8205KhizerRehan wants to merge 5 commits into
Conversation
|
/test all |
|
Skipping CI for Draft Pull Request. |
|
[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. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/hold till kubermatic/kubermatic#16165 is reviewed/merged. Require latest changes of SDK Testing Guideline Locally: PreRequisites:
Run Master Controller (KKP backend Locally)
API/UI
See Changes (Test Guidelines)
Locally Running Controller
|
Add adminGroups to global settings: members of the listed OIDC groups are automatically granted KKP admin. API exposes the field in v1/v2 settings types and admin settings handler; admins granted via a group carry grantedByGroup and cannot be demoted from the UI, since the controller would revert the change on the next reconcile. Dashboard adds adminGroups management to the admin defaults page and marks group-granted admins in the admins list. Refs kubermatic/kubermatic#14761
83ca43a to
3a09981
Compare
|
/test all |
|
/test all |
2 similar comments
|
/test all |
|
/test all |
dceb419 to
92583b9
Compare
|
/test all |
|
@KhizerRehan: The following tests failed, say
DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
What this PR does / why we need it:
This PR adds an Admin Groups setting to the global admin settings so that members of the configured OIDC groups are automatically granted KKP administrator privileges without manual per-user promotion.
Default (Admin Page) New Field (Admin Groups)
Existing "administrators" route page
It will show via "label" and hovering will show tooltip that which group make this user an admin
Which issue(s) this PR fixes:
Which issue(s) this PR fixes:
Fixes kubermatic/kubermatic#14761
What type of PR is this?
/kind feature
Special notes for your reviewer:
Needs Backend KKP (SDK) PR to merge and then we need to get merged commmit changes to UI in order to test this PR as SDK changes export new annotation e.g
kubermaticv1.AdminGrantedByGroupAnnotationDoes this PR introduce a user-facing change? Then add your Release Note here:
Documentation:
Test issue: