Repository navigation
docs: clarify NetworkPolicy and pod security guidance (#2847) - #2851
Open
bhushan4work wants to merge 1 commit into
Open
bhushan4work wants to merge 1 commit into
bhushan4work wants to merge 1 commit into
Conversation
bhushan4work
requested review from
jmanico,
mackowski and
randomstuff
as code owners
October 22, 2026 13:36
…eet (OWASP#2847) - Replace overclaiming NetworkPolicy wording with precise Layer 3/4 ingress and egress controls, noting enforcement plugin and encryption/authentication limits - Remove obsolete PodSecurityPolicy subsection, deprecation warning, and outdated PSP documentation reference - Integrate workload hardening recommendations into Pod Security Standards and Pod Security Admission guidance without claiming PSA/PSS enforce controls outside their defined profiles
bhushan4work
force-pushed
the
fix#2847
branch
from
October 22, 2026 13:46
3a0e40b to
e5f34a9
Compare
randomstuff
approved these changes
Oct 24, 2026
| - **Baseline**: Minimally restrictive policy designed for common containerized workloads while preventing known privilege escalations. Targeted at developers and operators of non-critical applications. The most dangerous securityContext settings, such as securityContext.privileged, hostPID, hostPath, hostIPC, are not permitted. | ||
| - **Restricted**: The most restrictive policy, designed to enforce current Pod hardening practices at the expense of some compatibility. Intended for security critical workloads or untrusted users. Restricted includes all of the enforcements from the baseline policy, in addition to much more restrictive requirements, such as requiring the dropping of all capabilities, enforcing runAsNotRoot, and more. | ||
| - **Privileged**: Unrestricted, allows for known privilege escalations. Intended for use with system and infrastructure level workloads that require privilege to operate properly. All securityContext settings are permitted. | ||
| - **Baseline**: Minimally restrictive policy designed for common containerized workloads while preventing known privilege escalations. It restricts the most dangerous settings, enforcing default (masked) `/proc` mounts, restricting SELinux options, and prohibiting privileged containers (`securityContext.privileged`), `hostPath` volumes, and host networking or process namespaces (`hostNetwork`, `hostPID`, `hostIPC`). Note that [NetworkPolicy behavior for `hostNetwork` Pods depends on the network plugin](https://kubernetes.io/docs/concepts/services-networking/network-policies/#networkpolicy-and-hostnetwork-pods); verify enforcement rather than assuming these Pods receive the same isolation as other Pods. |
Collaborator
There was a problem hiding this comment.
Maybe this would be clearer?
you should verify enforcement rather than assuming these Pods receive the same isolation as other Pods.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You're A Rockstar
Thank you for submitting a Pull Request (PR) to the Cheat Sheet Series.
Please make sure that for your contribution:
[TEXT](URL).Scope and sourcing (required)
[text](URL).This PR fixes issue #
2847.AI Tool Usage Disclosure (required for all PRs)
Please select exactly one of the following options. PRs that leave this section blank will be closed.
the contents and I affirm the results. The LLM used is
[llm name and version]and the prompt used is
[your prompt here]. I have independently verified every citation and technical claim against the cited source. [Feel free to add more details if needed]Thank you again for your contribution 😃