Join our Newsletter — 33% off our NHI Course

Security Context Constraints

Security Context Constraints are OpenShift policy controls that define what a pod is allowed to do at runtime. They govern privileges such as user IDs, volume access, and host interactions. SCCs are central to OpenShift hardening because they restrict assumptions that standard Kubernetes deployments often make by default.

Expanded Definition

security context Constraints, or SCCs, are OpenShift admission and runtime policy controls that determine what a pod may do when it starts and while it runs. They shape the security context around user IDs, SELinux settings, volume permissions, Linux capabilities, host namespace access, and privilege escalation boundaries. In practice, SCCs are the mechanism that turns cluster security policy into enforceable runtime constraints for workloads that would otherwise inherit broad defaults.

Although SCCs are conceptually similar to pod security controls in upstream Kubernetes, they are specific to OpenShift and are applied through platform policy rather than generic YAML intent. That distinction matters because many teams assume a Kubernetes manifest that is valid elsewhere will behave the same way in OpenShift. No single standard governs this yet across all container platforms, so definitions and enforcement patterns vary across vendors. The NIST Cybersecurity Framework 2.0 is useful here as a governance lens, but it does not define SCCs themselves.

The most common misapplication is treating SCCs as a one-time cluster setting, which occurs when teams overlook service account bindings, namespace-specific overrides, and workload drift after deployment.

Examples and Use Cases

Implementing SCCs rigorously often introduces deployment friction, requiring organisations to weigh workload compatibility against tighter control over privilege and filesystem access.

  • A platform team assigns a restricted SCC to application namespaces so pods run as non-root and cannot request host networking.
  • A CI/CD pipeline is adjusted after a deployment fails because a container expected writable root filesystem access that the default SCC does not allow.
  • A security engineer reviews service account-to-SCC bindings after a workload unexpectedly gains access to a hostPath volume during testing.
  • An operations team uses SCC policy to prevent containers from adding Linux capabilities that would expand lateral movement options.
  • A cluster hardening review compares runtime permissions against the patterns described in the DeepSeek breach analysis, then validates whether similar exposure paths could emerge through over-permissive workload policy.

SCCs are most valuable when teams need repeatable guardrails for multi-tenant OpenShift environments, regulated workloads, or legacy applications that were never designed with least privilege in mind. They are also relevant when migration teams are translating permissive Kubernetes assumptions into a more controlled OpenShift runtime model. For implementation guidance on identity and access boundaries, NIST Cybersecurity Framework 2.0 provides a broader operational structure, while SCCs provide the cluster-specific enforcement layer.

Why It Matters in NHI Security

SCCs matter in NHI security because many non-human identities operate through workloads, controllers, build systems, and automated agents that inherit their permissions from the platform rather than from a person. If an SCC is too permissive, a pod can become an identity amplification point: a compromised workload may reach secrets, mount sensitive volumes, or interact with host resources that were never intended for that service. That is a direct path from container compromise to broader NHI exposure.

NHIMG research shows that lack of credential rotation is cited as the top cause of NHI-related attacks by 45% of organisations, with inadequate monitoring and logging at 37% and over-privileged accounts at 37% in the same study. In OpenShift, overly broad SCC assignments can worsen all three conditions by making privileged runtime paths harder to detect and easier to abuse. The State of Non-Human Identity Security highlights the confidence gap that often surrounds these controls, especially when platform teams inherit security policy without clear ownership. Organisationally, SCC discipline should align with the NIST Cybersecurity Framework 2.0 to ensure access control and monitoring are treated as operational requirements, not just deployment checks.

Organisations typically encounter the risk only after a compromised pod escapes its intended boundary or begins accessing resources it should never have touched, at which point SCCs become operationally unavoidable to address.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10, CSA MAESTRO and OWASP Agentic AI Top 10 address the attack and risk surface, while NIST CSF 2.0 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-03 Over-privileged runtime policy maps to workload identity and permission hardening.
NIST CSF 2.0 PR.AC-4 SCCs enforce least privilege by limiting what a workload can access at runtime.
NIST Zero Trust (SP 800-207) GV.RR SCCs support zero trust by assuming workloads are untrusted by default.
CSA MAESTRO Agent and workload execution boundaries depend on constrained runtime permissions.
OWASP Agentic AI Top 10 Agentic workloads need runtime guardrails to prevent excessive tool and resource access.

Apply least-privilege runtime policy and review SCC assignments as part of access control governance.