Skip to content

Commit

Permalink
specify runAsGroup, allow safe sysctls by default (#7399)
Browse files Browse the repository at this point in the history
  • Loading branch information
rptaylor authored Mar 25, 2021
1 parent 49abf60 commit 7dec8e5
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 7dec8e5

Please sign in to comment.