Skip to content

Commit

Permalink
Merge pull request #18971 from enj/enj/i/disable_daemonset_carry/1536…
Browse files Browse the repository at this point in the history
…304,1501514

Automatic merge from submit-queue.

UPSTREAM: <carry>: Remove write permissions on daemonsets from Kubernetes 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 <mkhan@redhat.com>

/kind bug
/assign @liggitt @deads2k @simo5 @smarterclayton
@openshift/sig-security

/cherrypick release-3.9
  • Loading branch information
openshift-merge-robot committed Mar 14, 2018
2 parents 756e15b + a42347b commit 4514d35
Show file tree
Hide file tree
Showing 4 changed files with 106 additions and 16 deletions.
36 changes: 32 additions & 4 deletions test/testdata/bootstrappolicy/bootstrap_cluster_roles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4857,7 +4857,6 @@ items:
- apiGroups:
- apps
resources:
- daemonsets
- deployments
- deployments/rollback
- deployments/scale
Expand All @@ -4873,6 +4872,14 @@ items:
- patch
- update
- watch
- apiGroups:
- apps
resources:
- daemonsets
verbs:
- get
- list
- watch
- apiGroups:
- autoscaling
resources:
Expand Down Expand Up @@ -4903,7 +4910,6 @@ items:
- apiGroups:
- extensions
resources:
- daemonsets
- deployments
- deployments/rollback
- deployments/scale
Expand All @@ -4920,6 +4926,14 @@ items:
- patch
- update
- watch
- apiGroups:
- extensions
resources:
- daemonsets
verbs:
- get
- list
- watch
- apiGroups:
- policy
resources:
Expand Down Expand Up @@ -5036,7 +5050,6 @@ items:
- apiGroups:
- apps
resources:
- daemonsets
- deployments
- deployments/rollback
- deployments/scale
Expand All @@ -5052,6 +5065,14 @@ items:
- patch
- update
- watch
- apiGroups:
- apps
resources:
- daemonsets
verbs:
- get
- list
- watch
- apiGroups:
- autoscaling
resources:
Expand Down Expand Up @@ -5082,7 +5103,6 @@ items:
- apiGroups:
- extensions
resources:
- daemonsets
- deployments
- deployments/rollback
- deployments/scale
Expand All @@ -5099,6 +5119,14 @@ items:
- patch
- update
- watch
- apiGroups:
- extensions
resources:
- daemonsets
verbs:
- get
- list
- watch
- apiGroups:
- policy
resources:
Expand Down
40 changes: 36 additions & 4 deletions test/testdata/bootstrappolicy/bootstrap_policy_file.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5319,7 +5319,6 @@ items:
- apps
attributeRestrictions: null
resources:
- daemonsets
- deployments
- deployments/rollback
- deployments/scale
Expand All @@ -5335,6 +5334,15 @@ items:
- patch
- update
- watch
- apiGroups:
- apps
attributeRestrictions: null
resources:
- daemonsets
verbs:
- get
- list
- watch
- apiGroups:
- autoscaling
attributeRestrictions: null
Expand Down Expand Up @@ -5368,7 +5376,6 @@ items:
- extensions
attributeRestrictions: null
resources:
- daemonsets
- deployments
- deployments/rollback
- deployments/scale
Expand All @@ -5385,6 +5392,15 @@ items:
- patch
- update
- watch
- apiGroups:
- extensions
attributeRestrictions: null
resources:
- daemonsets
verbs:
- get
- list
- watch
- apiGroups:
- policy
attributeRestrictions: null
Expand Down Expand Up @@ -5510,7 +5526,6 @@ items:
- apps
attributeRestrictions: null
resources:
- daemonsets
- deployments
- deployments/rollback
- deployments/scale
Expand All @@ -5526,6 +5541,15 @@ items:
- patch
- update
- watch
- apiGroups:
- apps
attributeRestrictions: null
resources:
- daemonsets
verbs:
- get
- list
- watch
- apiGroups:
- autoscaling
attributeRestrictions: null
Expand Down Expand Up @@ -5559,7 +5583,6 @@ items:
- extensions
attributeRestrictions: null
resources:
- daemonsets
- deployments
- deployments/rollback
- deployments/scale
Expand All @@ -5576,6 +5599,15 @@ items:
- patch
- update
- watch
- apiGroups:
- extensions
attributeRestrictions: null
resources:
- daemonsets
verbs:
- get
- list
- watch
- apiGroups:
- policy
attributeRestrictions: null
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4514d35

Please sign in to comment.