-
Notifications
You must be signed in to change notification settings - Fork 527
Grant Viewer/Admin permissions in the shoot to new groups "gardener.cloud:(project|system):(admins|viewers)" #12673
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
Grant Viewer/Admin permissions in the shoot to new groups "gardener.cloud:(project|system):(admins|viewers)" #12673
Conversation
…loud:(project|system):(admins|viewers)" Co-authored-by: Stoyan Vitanov <stoyan.a.vitanov@gmail.com> Co-authored-by: Tim Usner <tim.usner@sap.com>
3903c25
to
37f0232
Compare
/assign |
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.
Thank you!
I have some inline suggestions w.r.t. wording
Co-authored-by: Dimitar Mirchev <dimitar.mirchev@sap.com>
8c51e78
to
4c11f07
Compare
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.
Thank you! Just one comment, the rest looks fine.
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 great @vpnachev
Can you add an early exit in the migration function that detects if the migration already happened (e.g., in a previous restart)? Currently, it seems it is executed either way.
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.
Very nice, thank you!
/lgtm
LGTM label has been added. Git tree hash: 5f9c55c8a26f586bdecb9db4d3df541450fd6da1
|
@vpnachev: The following test failed, say
Full PR test history. Your PR dashboard. Command help for this repository. Instructions 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. |
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.
Thank you!
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: timuthy The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…loud:(project|system):(admins|viewers)" (gardener#12673) * Grant Viewer/Admin permissions in the shoot to new groups "gardener.cloud:(project|system):(admins|viewers)" Co-authored-by: Stoyan Vitanov <stoyan.a.vitanov@gmail.com> Co-authored-by: Tim Usner <tim.usner@sap.com> * Address review feedback w.r.t. consts doc string Co-authored-by: Dimitar Mirchev <dimitar.mirchev@sap.com> * Remove ShootGroupViewers const and rename others * Add apiGroup to subjects * Remove system:masters from ClusterRoleBindings * Add migration on gardenlet start-up * Skip migration when ManagedResource is gone * Skip migration for already migrated shoots --------- Co-authored-by: Stoyan Vitanov <stoyan.a.vitanov@gmail.com> Co-authored-by: Tim Usner <tim.usner@sap.com> Co-authored-by: Dimitar Mirchev <dimitar.mirchev@sap.com>
How to categorize this PR?
/area security ipcei
/kind enhancement
What this PR does / why we need it:
Grant Viewer/Admin permissions in the shoot to new groups "gardener.cloud:(project|system):(admins|viewers)".
With this change we are preparing users accessing the shoot clusters via
AdminKubeconfig
orViewerKubeconfig
shoot subresource to get use dedicated groups so that these users can be easily distinguished, for example in the audit logs.Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
There is a second PR #12674 where the
AdminKubeconfig
andViewerKubeconfig
generation are changed to assign the new groups to the users, however for backward compatibility we firstly need to grant the permissions to the new groups, otherwise the access to a shoot cluster will be lost until it is reconciled with the new version of gardenlet./cc @timuthy @vitanovs
Release note: