kubernetes-security-policies

Enforce Kubernetes security policies across clusters and namespaces.

29|15|Updated Oct 17, 2025
One-click install
npx skills add https://github.com/NickCrew/claude-cortex --skill kubernetes-security-policies
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kubernetes-security-policies
Source: https://github.com/NickCrew/claude-cortex/tree/main/skills/kubernetes-security-policies
Command: npx skills add https://github.com/NickCrew/claude-cortex --skill kubernetes-security-policies

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill covers Pod Security Standards, RBAC, network policies, and runtime security for hardened Kubernetes deployments.

Core Features & Use Cases

  • Pod Security: Enforce baseline/restricted policies.
  • RBAC: Least-privilege access controls.
  • Admission Controllers: OPA/Gatekeeper integration for policy enforcement.

Quick Start

Apply a baseline Pod Security Policy to a namespace and enable an admission controller in a cluster.

Frequently Asked Questions about kubernetes-security-policies

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce Pod Security Standards across Kubernetes namespaces?

Pod Security Standards enforce baseline or restricted policies at the namespace level through Pod Security Admission controllers. Apply PSA labels to namespaces to automatically validate and audit pod configurations against security baselines, blocking or warning on non-compliant deployments without manual policy files.

What's the difference between RBAC and network policies in Kubernetes security?

RBAC controls who can perform actions on resources through least-privilege role bindings, while network policies restrict traffic flow between pods and external endpoints. Both are essential: RBAC gates API access; network policies isolate workload communication paths.

How do I integrate OPA or Gatekeeper for policy enforcement in Kubernetes?

OPA/Gatekeeper acts as an admission controller that intercepts API requests and evaluates them against custom policy rules before objects are created. Deploy Gatekeeper as a webhook, write Rego policies to define constraints, and bind them to resources to enforce organization-wide security rules dynamically.

Can I audit Kubernetes security compliance against CIS, NIST, or PCI-DSS standards?

Security auditing maps cluster configurations and runtime behavior to compliance frameworks like CIS, NIST, and PCI-DSS benchmarks. Review RBAC roles, network policies, secrets encryption, image scanning, and security contexts against published hardening guides to identify and remediate gaps.

What runtime security measures protect Kubernetes pods from threats?

Runtime security detects and responds to threats during pod execution through Security Contexts that restrict capabilities, AppArmor/SELinux profiles that limit system calls, and admission policies that block privileged or unsafe configurations before they run.

Do I need admission controllers to enforce secrets management in Kubernetes?

Admission controllers enforce secrets management policies by validating encryption at rest, restricting secret access via RBAC, and blocking plaintext credentials in environment variables or logs. Combined with network policies and Security Contexts, they create a layered secrets protection strategy.