-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Setting authorization mode to RBAC by default #1904
Conversation
Can one of the admins verify this patch? |
@minikube-bot OK to test |
I think this is going to need a few more changes to our addons and some service account permissions (e.g. the dashboard won't have enough permissions to query) . #1903 adds kubeadm as a cluster bootstrapper, which enables RBAC. I needed to add something like this https://github.com/r2d4/minikube/blob/93e9ba58b3936e353b1d5e0d1908989463693f21/pkg/minikube/bootstrapper/kubeadm/util.go#L84-L109 to make the dashboard usable out of the box. |
thanks @r2d4 - I'll add perms elevation to accommodate the dashboard. do you know where I can look to see these addons? |
Codecov Report
@@ Coverage Diff @@
## master #1904 +/- ##
==========================================
- Coverage 31.03% 31.01% -0.02%
==========================================
Files 74 74
Lines 4302 4304 +2
==========================================
Hits 1335 1335
- Misses 2792 2794 +2
Partials 175 175
Continue to review full report at Codecov.
|
There are just the ones from https://github.com/kubernetes/minikube/tree/master/deploy/addons |
got them, thanks @r2d4 |
Looks like there are some build failures:
|
This is so components like the dashboard work when RBAC is turned on
55473ae
to
3edc93f
Compare
This should prevent intermittent E2E test failures in case Minikube API server is not yet ready to accept configuration changes. Inspired by: kubernetes/minikube#1904
This should prevent intermittent E2E test failures in case Minikube API server is not yet ready to accept configuration changes. Inspired by: kubernetes/minikube#1904
Automatic merge from submit-queue. Retry the kube-system RBAC cluserrolebinding fix This should prevent intermittent E2E test failures in case Minikube API server is not yet ready to accept configuration changes. Inspired by: kubernetes/minikube#1904 Fixes: #117 **Release note**: ```release-note NONE ```
Issues go stale after 90d of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or |
}, | ||
RoleRef: rbacv1beta1.RoleRef{ | ||
Kind: "ClusterRole", | ||
Name: "cluster-admin", |
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.
Correct me if i'm wrong, but I believe most RBAC-enabled clusters are not setup to give the kube-system:default
service account cluster-admin
privileges. Is it maybe safer to grant these privileges in the addons and services that need them, or perhaps create a new minikube-default
service account to use in pods that would only exist in minikube?
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle rotten |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle rotten |
Can one of the admins verify this patch? |
Closing because I think this PR is obsolete. Please re-open if this is incorrect. |
Fixes #1722
Before this change,
kubectl get clusterrole
andkubectl get clusterrolebinding
-- both indicators that RBAC auth is enabled in the cluster -- returned nothing. After this change, the./out/minikube start
command creates a cluster in which the following commands indicate that RBAC is turned on:This patch would slightly improve the service-catalog installation process which currently has to instruct users to pass
--extra-config=apiserver.Authorization.Mode=RBAC
to minikube installations. If minikube turned on RBAC by default, we could remove the minikube-specific section altogether, and the first-time installation process would be smoother for minikube users.