k8s-security-policies

Implement Kubernetes NetworkPolicy, PodSecurityPolicy, and RBAC security policies.

20|3|Updated Jul 26, 2025
One-click install
npx skills add https://github.com/thc1006/nephoran-intent-operator --skill k8s-security-policies-thc1006
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: k8s-security-policies
Source: https://github.com/thc1006/nephoran-intent-operator/tree/main/.claude/skills/k8s-security-policies
Command: npx skills add https://github.com/thc1006/nephoran-intent-operator --skill k8s-security-policies-thc1006

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) and references (resource) components.

What problem does it solve?

Kubernetes security policies are often implemented ad-hoc, leading to misconfigurations and insecure clusters. This Skill provides a structured approach to applying NetworkPolicy, PodSecurityPolicy, and RBAC to harden production-grade Kubernetes environments.

Core Features & Use Cases

  • NetworkPolicy for namespace isolation and controlled ingress/egress
  • Pod Security Standards and PodSecurityPolicy enforcement
  • RBAC configuration and least-privilege access controls
  • Admission-control considerations with policy engines (OPA Gatekeeper / Kyverno)
  • Reference templates and patterns to accelerate secure cluster setup

Quick Start

Apply the baseline Kubernetes security templates to your production namespaces to enforce network isolation and least-privilege access.

Frequently Asked Questions about k8s-security-policies

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

FAQPage Schema
How do I enforce Kubernetes NetworkPolicy for namespace isolation in multi-tenant clusters?

Kubernetes NetworkPolicy for namespace isolation is enforced by applying baseline templates that control ingress and egress traffic across multi-tenant deployments. This prevents unauthorized network access by restricting pod communication between namespaces.

What are Pod Security Standards and how do I use them to harden Kubernetes?

Pod Security Standards enforce workload security by replacing deprecated PodSecurityPolicy with baseline, restricted, and privileged policies. They harden Kubernetes by preventing privileged container escalation and restricting capabilities through admission control.

How do I configure RBAC for least-privilege access controls across Kubernetes namespaces?

RBAC for least-privilege access controls is configured by scoping Role and ClusterRole bindings to specific namespaces. This restricts unauthorized access by ensuring service accounts and users only receive the exact permissions required for their operations.

Can I integrate these Kubernetes security policies with OPA Gatekeeper or Kyverno?

Yes, these Kubernetes security policies support integration with admission-control policy engines like OPA Gatekeeper and Kyverno. This enables automated policy template enforcement during deployment to block misconfigurations before they reach the cluster.

Does this Skill support applying PodSecurityPolicy for production-grade environments?

This Skill applies PodSecurityPolicy and Pod Security Standards specifically for production-grade Kubernetes environments. It provides structured reference templates to harden clusters against misconfigurations and unauthorized access in multi-tenant deployments.