Skip to content

Commit 44db1a1

Browse files
committed
Add missing PSP restrictions to standard security profiles
1 parent d8e0a2c commit 44db1a1

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

content/en/docs/concepts/security/pod-security-standards.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ enforced/disallowed:
118118
On supported hosts, the `runtime/default` AppArmor profile is applied by default. The default policy should prevent overriding or disabling the policy, or restrict overrides to a whitelisted set of profiles.<br>
119119
<br><b>Restricted Fields:</b><br>
120120
metadata.annotations['container.apparmor.security.beta.kubernetes.io/*']<br>
121-
<br><b>Allowed Values:</b> runtime/default, undefined<br>
121+
<br><b>Allowed Values:</b> 'runtime/default', undefined<br>
122122
</td>
123123
</tr>
124124
<tr>
@@ -132,6 +132,31 @@ enforced/disallowed:
132132
<br><b>Allowed Values:</b> undefined/nil<br>
133133
</td>
134134
</tr>
135+
<tr>
136+
<td>/proc Mount Type</td>
137+
<td>
138+
The default /proc masks are set up to reduce attack surface, and should be required.<br>
139+
<br><b>Restricted Fields:</b><br>
140+
spec.containers[*].securityContext.procMount<br>
141+
spec.initContainers[*].securityContext.procMount<br>
142+
<br><b>Allowed Values:</b> undefined/nil, 'Default'<br>
143+
</td>
144+
</tr>
145+
<tr>
146+
<td>Sysctls</td>
147+
<td>
148+
Sysctls can disable security mechanisms or affect all containers on a host, and should be disallowed except for a whitelisted "safe" subset.
149+
A sysctl is considered safe if it is namespaced in the container or the pod, and it is isolated from other pods or processes on the same node.<br>
150+
<br><b>Restricted Fields:</b><br>
151+
spec.securityContext.sysctls<br>
152+
<br><b>Allowed Values:</b><br>
153+
kernel.shm_rmid_forced<br>
154+
net.ipv4.ip_local_port_range<br>
155+
net.ipv4.tcp_syncookies<br>
156+
net.ipv4.ping_group_range<br>
157+
undefined/empty<br>
158+
</td>
159+
</tr>
135160
</tbody>
136161
</table>
137162

0 commit comments

Comments
 (0)