Skip to content

Commit 08fb708

Browse files
authored
Merge pull request #45136 from mtardy/remove-scdeny-doc
Remove `SecurityContextDeny` admission documentation
2 parents e260aaa + ca4dc02 commit 08fb708

File tree

1 file changed

+0
-43
lines changed

1 file changed

+0
-43
lines changed

content/en/docs/reference/access-authn-authz/admission-controllers.md

-43
Original file line numberDiff line numberDiff line change
@@ -792,49 +792,6 @@ defined in the corresponding RuntimeClass.
792792
See also [Pod Overhead](/docs/concepts/scheduling-eviction/pod-overhead/)
793793
for more information.
794794

795-
### SecurityContextDeny {#securitycontextdeny}
796-
797-
**Type**: Validating.
798-
799-
{{< feature-state for_k8s_version="v1.27" state="deprecated" >}}
800-
801-
{{< caution >}}
802-
The Kubernetes project recommends that you **do not use** the
803-
`SecurityContextDeny` admission controller.
804-
805-
The `SecurityContextDeny` admission controller plugin is deprecated and disabled
806-
by default. It will be removed in a future version. If you choose to enable the
807-
`SecurityContextDeny` admission controller plugin, you must enable the
808-
`SecurityContextDeny` feature gate as well.
809-
810-
The `SecurityContextDeny` admission plugin is deprecated because it is outdated
811-
and incomplete; it may be unusable or not do what you would expect. As
812-
implemented, this plugin is unable to restrict all security-sensitive attributes
813-
of the Pod API. For example, the `privileged` and `ephemeralContainers` fields
814-
were never restricted by this plugin.
815-
816-
The [Pod Security Admission](/docs/concepts/security/pod-security-admission/)
817-
plugin enforcing the [Pod Security Standards](/docs/concepts/security/pod-security-standards/)
818-
`Restricted` profile captures what this plugin was trying to achieve in a better
819-
and up-to-date way.
820-
{{< /caution >}}
821-
822-
This admission controller will deny any Pod that attempts to set the following
823-
[SecurityContext](/docs/reference/kubernetes-api/workload-resources/pod-v1/#security-context)
824-
fields:
825-
- `.spec.securityContext.supplementalGroups`
826-
- `.spec.securityContext.seLinuxOptions`
827-
- `.spec.securityContext.runAsUser`
828-
- `.spec.securityContext.fsGroup`
829-
- `.spec.(init)Containers[*].securityContext.seLinuxOptions`
830-
- `.spec.(init)Containers[*].securityContext.runAsUser`
831-
832-
For more historical context on this plugin, see
833-
[The birth of PodSecurityPolicy](/blog/2022/08/23/podsecuritypolicy-the-historical-context/#the-birth-of-podsecuritypolicy)
834-
from the Kubernetes blog article about PodSecurityPolicy and its removal. The
835-
article details the PodSecurityPolicy historical context and the birth of the
836-
`securityContext` field for Pods.
837-
838795
### ServiceAccount {#serviceaccount}
839796

840797
**Type**: Mutating and Validating.

0 commit comments

Comments
 (0)