kubernetes-hardening

Audit Kubernetes cluster security configurations and generate remediation plans.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/tylern91/dotfiles --skill kubernetes-hardening-tylern91
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kubernetes-hardening
Source: https://github.com/tylern91/dotfiles/tree/main/claude/.claude/skills/kubernetes-hardening
Command: npx skills add https://github.com/tylern91/dotfiles --skill kubernetes-hardening-tylern91

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Audit and harden Kubernetes clusters by auditing API server configuration, etcd encryption, Pod Security Standards, RBAC, network policies, OPA/Gatekeeper admission control, audit logging, and runtime security.

Core Features & Use Cases

  • End-to-end Kubernetes security audit across API server, RBAC, PSP, network policies, and runtime security.
  • Guidance for CIS benchmark alignment, remediation planning, and SOC 2/HIPAA/PCI-DSS readiness.
  • Use Case: Run a comprehensive cluster hardening assessment and generate a prioritized remediation plan.

Quick Start

Run the 8-stage Kubernetes hardening workflow to audit and remediate security gaps.

Frequently Asked Questions about kubernetes-hardening

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

FAQPage Schema
How do I audit my Kubernetes cluster for CIS benchmark compliance?

To audit Kubernetes CIS benchmark compliance, run an 8-stage hardening workflow that validates API server flags, etcd encryption, RBAC, and audit logging to identify security gaps and generate a prioritized remediation plan.

What is Kubernetes hardening and do I need it for SOC 2 readiness?

Kubernetes hardening is the process of securing API server configurations, network policies, and admission controls. You need it for SOC 2 readiness to validate encryption providers, audit logging, and workload security contexts across self-hosted and managed clusters.

How do I check if etcd encryption is enabled in my Kubernetes cluster?

Check etcd encryption validation by auditing encryption provider configurations as part of a comprehensive cluster security assessment, ensuring API server flags correctly enable encryption at rest for sensitive secret data.

Can I use OPA Gatekeeper to enforce Pod Security Standards in Kubernetes?

Yes, a comprehensive Kubernetes security audit validates OPA/Gatekeeper admission control configurations to enforce Pod Security Standards, ensuring workloads comply with defined security contexts and cluster-wide policy requirements.

Does this Kubernetes security audit work on managed cloud clusters?

Yes, the Kubernetes security audit applies across both self-hosted and managed environments, validating runtime security controls, network policies, and RBAC configurations to ensure compliant cluster hardening regardless of infrastructure type.

What's the best way to remediate Kubernetes RBAC misconfigurations?

The best way to remediate Kubernetes RBAC misconfigurations is running an end-to-end hardening assessment that audits API server configurations and generates a prioritized remediation plan aligned with HIPAA and PCI-DSS requirements.