Skip to content

Commit

Permalink
specify runAsGroup, allow safe sysctls by default (kubernetes-sigs#7399)
Browse files Browse the repository at this point in the history
  • Loading branch information
rptaylor authored and sakuraiyuta committed Apr 16, 2022
1 parent 1e79052 commit 187bed6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions roles/kubernetes-apps/cluster_roles/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ podsecuritypolicy_restricted_spec:
rule: 'MustRunAsNonRoot'
seLinux:
rule: 'RunAsAny'
runAsGroup:
rule: 'MustRunAs'
ranges:
- min: 1
max: 65535
supplementalGroups:
rule: 'MustRunAs'
ranges:
Expand All @@ -30,8 +35,6 @@ podsecuritypolicy_restricted_spec:
- min: 1
max: 65535
readOnlyRootFilesystem: false
forbiddenSysctls:
- '*'

podsecuritypolicy_privileged_spec:
privileged: true
Expand All @@ -50,6 +53,8 @@ podsecuritypolicy_privileged_spec:
rule: 'RunAsAny'
seLinux:
rule: 'RunAsAny'
runAsGroup:
rule: 'RunAsAny'
supplementalGroups:
rule: 'RunAsAny'
fsGroup:
Expand Down

0 comments on commit 187bed6

Please sign in to comment.