-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
UPSTREAM: <carry>: Remove write permissions on daemonsets from Kubernetes bootstrap policy #18971
UPSTREAM: <carry>: Remove write permissions on daemonsets from Kubernetes bootstrap policy #18971
Conversation
…etes bootstrap policy Due to how daemonsets interact with the project node selector, we need to limit write access to them to the cluster admin. Bug 1536304 Bug 1501514 Signed-off-by: Monis Khan <[email protected]>
Bug 1536304 Bug 1501514 Signed-off-by: Monis Khan <[email protected]>
6b82223
to
a42347b
Compare
/lgtm |
I think it would be consistent to remove read permission as well otherwise it just more confusing. There is no reason regular user should even see a daemonset nor create it. /cherrypick release-3.9 |
@tnozicka: once the present PR merges, I will cherry-pick it on top of release-3.9 in a new PR and assign it to you. In response to this:
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/test-infra repository. |
no. |
@liggitt so if someone disables DS for their regular users on their cluster like Online; Why should making security decision about permissions be restricted by a way how some command is implemented? |
Letting a user see daemonsets running in their namespace is not problematic. |
Yes, it isn't problematic. It is also not ideal. But I can live with that. |
removing just write lgtm do we need that in 3.7? (do we use the same permission model from upstream there?) /retest |
/approve The @simo5 can we cancel the hold here? |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: enj, mfojtik, simo5 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 |
/hold cancel |
/test all [submit-queue is verifying that this PR is safe to merge] |
We pulled these in #17976 so this only needs to go back to 3.9. |
@enj: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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/test-infra repository. I understand the commands that are listed here. |
Automatic merge from submit-queue. |
@tnozicka: new pull request created: #18977 In response to this:
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/test-infra repository. |
Due to how daemonsets interact with the project node selector, we need to limit write access to them to the cluster admin.
Bug 1536304
Bug 1501514
Signed-off-by: Monis Khan [email protected]
/kind bug
/assign @liggitt @deads2k @simo5 @smarterclayton
@openshift/sig-security
/cherrypick release-3.9