Skip to content

All posts

Kubernetes

NIST SP 800-171 and Kubernetes: which controls policy can enforce

Ritesh Patel

Kubernetes: NIST SP 800-171 and Kubernetes: which controls policy can enforce

NIST SP 800-171 Rev. 3 sets security requirements for controlled unclassified information (CUI) in nonfederal systems. It never names Kubernetes. Admission policy can enforce five of the requirements mapped here, CI gates can check seven, and six need a process, an identity provider or people.

What SP 800-171 Rev. 3 asks for

Revision 3 is the May 2024 final publication. We read the final text on the NIST publication page and its PDF on 2026-11-24. The requirements apply to components of nonfederal systems that process, store or transmit CUI, or that protect those components. They are grouped into families, such as 3.1 Access Control, and each requirement has an ID such as 03.01.02 Access Enforcement. Several IDs are withdrawn in this revision, including 03.01.13 to 03.01.15, so any citation should name the revision it uses.

The requirement text is quoted as NIST numbers it. The descriptions in the table below are our paraphrase. NIST gives assignable values in brackets, such as an organization-defined frequency. We leave those open in the mapping, because the value is yours to set.

How this guide labels each requirement

Each requirement gets one of three labels. A requirement is enforceable at admission when a check on create or update can read the field that shows it, such as a pod’s security context or an image reference. It is enforceable in CI only when a pipeline step can fail a build or a release. Everything else is not enforceable by policy: identity systems, processes, decisions and monitoring. A policy can record that a review happened, but it cannot make the review happen.

Admission sees only the object being created or changed. It does not see scan results, approvals, server flags or what happens after a pod starts. The labels describe the check, not how much the requirement matters.

Checked against the Kubernetes documentation fetched on 2026-11-24, which names v1.37 as the latest minor release.

Requirement to policy table

The IDs and requirement titles are NIST’s. The descriptions are paraphrased and the labels are this guide’s classification.

Requirement What it asks for, paraphrased Label How the check works
03.01.01 Account Management Define account types, create and disable accounts, monitor their use Not enforceable by policy Users are managed outside the Kubernetes API. Service accounts are API objects, but disabling accounts is a process
03.01.02 Access Enforcement Enforce approved authorizations for logical access to CUI Enforceable at admission A ValidatingAdmissionPolicy can reject Role and ClusterRole objects that grant wildcards. RBAC enforces the grants itself, and admission cannot add a deny
03.01.05 Least Privilege Allow only the access tasks need, and review privileges Enforceable at admission A ValidatingAdmissionPolicy can reject wildcard grants. The periodic review in part c is a person’s task
03.03.01 Event Logging Specify the event types logged, and review them Enforceable in CI only Logging needs the –audit-policy-file flag on the API server. Without it, no events are logged. Admission does not see server flags
03.03.02 Audit Record Content Records include what, when, where, source, outcome and identity Enforceable in CI only The Metadata level records the requesting user, timestamp, resource and verb. Test that your log backend keeps source and outcome
03.04.01 Baseline Configuration Keep a current, controlled baseline and update it on change Enforceable in CI only The baseline is the manifests in version control. A pipeline check fails a change that departs from the approved files
03.04.02 Configuration Settings Use the most restrictive mode consistent with operations Enforceable at admission Pod Security Admission at the restricted level, in enforce mode, rejects violating pods. Deviations need a written record
03.04.06 Least Functionality Provide only essential capabilities, and disable unneeded ports and services Enforceable at admission Baseline forbids privileged containers, host namespaces and hostPath volumes, and disallows host ports or limits them to a list. Reviewing other services is a process
03.04.08 Authorized Software – Allow by Exception Deny all software by default and allow by exception Enforceable at admission A ValidatingAdmissionPolicy with a CEL check on the image field can allow images only from listed registries and pinned digests. It cannot see the software inside an image
03.05.01 User Identification and Authentication Uniquely identify and authenticate each user Not enforceable by policy Authentication runs before admission. Anonymous requests are on by default with some authorization modes, and –anonymous-auth=false turns them off
03.05.03 Multi-Factor Authentication Use MFA for privileged and non-privileged accounts Not enforceable by policy The identity provider or the proxy in front of the cluster supplies the second factor. No admission check sees it
03.11.02 Vulnerability Monitoring and Scanning Scan for vulnerabilities and remediate within set times Enforceable in CI only The scanner runs in the pipeline and fails on findings above your threshold. Admission sees only the image reference
03.13.06 Network Communications – Deny by Default – Allow by Exception Deny network traffic by default and allow by exception Enforceable in CI only A default-deny NetworkPolicy in each namespace, checked in the pipeline. The cluster’s network plugin must enforce it
03.13.08 Transmission and Storage Confidentiality Use cryptography to protect CUI in transit and in storage Enforceable in CI only Secrets are stored unencrypted by default. Encryption at rest is set on kube-apiserver with –encryption-provider-config
03.13.11 Cryptographic Protection Implement the organization-defined types of cryptography Not enforceable by policy You choose the approved types, in component TLS and encryption settings that admission does not read
03.14.01 Flaw Remediation Identify and correct flaws, and install updates within a set time Not enforceable by policy Requiring image digests makes the running version identifiable. Nothing in admission enforces the update window
03.14.02 Malicious Code Protection Protect at entry and exit points, and update the protection Enforceable in CI only A malware scanner runs in the pipeline. A ValidatingAdmissionPolicy can limit where images come from, but it cannot scan them
03.14.06 System Monitoring Detect attacks, unauthorized connections and unusual traffic Not enforceable by policy Runtime detection and review. The audit log is an input, but a policy cannot detect an attack

Pod settings: Pod Security admission at the restricted level

Pod Security Admission is built into Kubernetes. It checks new pods against three levels: privileged, baseline and restricted. Baseline forbids privileged containers, host namespaces and hostPath volumes. Restricted adds rules on privilege escalation and running as non-root, and allows only a short list of volume types.

Each namespace sets a mode for each level. The enforce mode rejects a violating pod. The warn mode returns a warning to the client, and the audit mode adds an annotation to the audit event. Neither of those two modes blocks the pod. Start with warn and audit, read what they report, and then switch to enforce.

This covers 03.04.02 for pods. The namespace label below sets the restricted level in all three modes.

apiVersion: v1
kind: Namespace
metadata:
  name: cui-workloads
  labels:
    pod-security.kubernetes.io/enforce: restricted
    pod-security.kubernetes.io/warn: restricted
    pod-security.kubernetes.io/audit: restricted

The label does not satisfy the whole of 03.04.02, which is about choosing the most restrictive mode your operations allow. The restricted level is your choice to document. NIST does not name it.

Network isolation: default deny with NetworkPolicy

A namespace with no NetworkPolicy allows all ingress and egress to its pods. A NetworkPolicy that selects a pod and lists Ingress in its policyTypes isolates that pod for incoming traffic. The policy below selects every pod in the namespace and allows no ingress, which is the deny-by-default step in 03.13.06.

apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: default-deny-ingress
spec:
  podSelector: {}
  policyTypes:
  - Ingress

Two limits matter here. The cluster needs a network plugin that enforces NetworkPolicy, and this policy does not change egress. A default-deny egress policy is a separate object. A pipeline can check that each namespace carries both, but no admission check can confirm that the plugin enforces them.

Access and identity: RBAC and authentication

RBAC grants access at request time, and its permissions are purely additive, with no deny rules. A ValidatingAdmissionPolicy can reject Role and ClusterRole objects that grant wildcard verbs or resources. That covers the shape of the grant in 03.01.02 and part a of 03.01.05. It cannot remove a grant a binding already gives, and it cannot review grants each quarter, which part c of 03.01.05 asks for.

Authentication runs before admission. Kubernetes authenticates with client certificates, bearer tokens or an authenticating proxy. Users are managed outside the API, and service accounts are managed by the API. Anonymous access is enabled by default when an authorization mode other than AlwaysAllow is in use, and –anonymous-auth=false turns it off. MFA for 03.05.03 comes from the identity provider or the proxy, not from a policy.

Encryption and audit records

Secrets are stored unencrypted in the API server’s data store by default. Encryption at rest is set with the –encryption-provider-config flag on kube-apiserver. That setting belongs in your cluster configuration code, where a CI step can test it, and admission never sees it. This covers 03.13.08 for stored Secrets. Transit encryption is a separate setting.

Audit logging works the same way. With no –audit-policy-file flag, no events are logged. The Metadata level records the requesting user, the timestamp, the resource and the verb. That covers part of 03.03.02. The requirement also asks for source and outcome, and the audit policy does not name those fields. Confirm in a test that your log backend keeps them before you cite the row.

Gotchas from the fine print

  • Revision 3 withdraws several IDs, including 03.01.13 to 03.01.15. A citation that omits the revision can point to the wrong text.
  • Enforce applies only to the pod objects, not to the Deployment or Job that creates them. Audit and warn apply to the workload too, so read the workload’s warnings before you rely on enforce.
  • Digests are immutable, tags can move, and a reference with no tag means latest. Pin images by digest for 03.04.08, but a digest says nothing about the software inside the image.
  • Exemptions from Pod Security are configured on the admission controller, not in a namespace. A change to them is a cluster change and should go through the same review.

A checklist before you map SP 800-171

  1. Cite SP 800-171 Rev. 3, the May 2024 final publication, with each requirement ID and the date you read the text.
  2. Label each row with one of the three classes, and write down why.
  3. For each namespace, run Pod Security in warn and audit until the reports are clean, then switch that namespace to enforce.
  4. Add the default-deny NetworkPolicy and the pipeline check that enforces it together, and confirm your network plugin enforces the policy.
  5. For each row that needs a record, name the record and the person who keeps it.

Enforcing this on your cluster

Pod Security Admission and a default-deny NetworkPolicy need nothing beyond Kubernetes itself. The Kyverno open source project has policy examples for the admission rows if you use a policy engine. The CI rows run in your pipeline, and the rest need records and people. For how that evidence fits together across standards, read the continuous compliance hub. For the same method on other NIST publications, read the NIST SP 800-218 post, the NIST SP 800-190 post and the NIST 800-53 mapping guide.

Sources checked on 2026-11-24: the SP 800-171 Rev. 3 publication page and PDF, and the Kubernetes pages on Pod Security Standards, Pod Security Admission, RBAC, NetworkPolicy, authentication, admission controllers, ValidatingAdmissionPolicy, audit, encrypting data at rest, Secrets and container images.

Frequently asked questions

Does NIST SP 800-171 mention Kubernetes?

No. Revision 3 describes security requirements for controlled unclassified information (CUI) in nonfederal systems. It never names Kubernetes, pods or admission controllers. The mapping in this guide is our reading of the requirement text, so cite it as ours. Each row gives the requirement ID, so a reviewer can check our reading against the NIST text.

Which SP 800-171 requirements can Kubernetes admission enforce?

Five of the 18 rows: 03.01.02 and 03.01.05 for the shape of RBAC grants, 03.04.02 and 03.04.06 for pod settings, and 03.04.08 for image sources. Admission sees the object being created or changed, so it can read a pod's security context or an image reference. It cannot see the software packed inside an image.

Does mapping to SP 800-171 make a cluster CMMC or FedRAMP compliant?

No. The mapping covers technical settings on a cluster. It does not assess a system against SP 800-171, and CMMC and FedRAMP each set their own assessment rules. Use the rows as a starting point for the evidence you collect, and confirm the scope with your assessor before you rely on any row.

Should Pod Security start in warn or audit mode?

Start in warn and audit, then move to enforce. Warn returns a message to the client, and audit adds an annotation to the audit event. Neither blocks the pod. Enforce rejects a violating pod. Read the warnings and audit annotations for each namespace until they are clean, then turn on enforce for that namespace.

Ritesh Patel, Founder & VP Product, Nirmata

Ritesh Patel is a founder of Nirmata and leads its products. He writes about governing AI coding agents, MCP security and Kubernetes policy as code.

LinkedIn

Nirmata Control HubOne control plane for Kyverno policies.
Share

Stay up-to-date with the latest in AI, governance, and infrastructure

Subscribe to our free monthly newsletter to get industry news, DevOps tips, and articles right to your inbox on Kyverno, containerization, Kubernetes deployment & management and more.