mirror of
https://github.com/mukul975/Anthropic-Cybersecurity-Skills.git
synced 2026-06-11 13:44:56 +03:00
1.0 KiB
1.0 KiB
Workflow - Implementing Pod Security Admission
Phase 1: Assessment
- List all namespaces and their current security posture
- Run dry-run against restricted profile for each namespace
- Document violations and required exemptions
Phase 2: Apply Audit Mode
for ns in production staging; do
kubectl label namespace $ns \
pod-security.kubernetes.io/audit=restricted \
pod-security.kubernetes.io/warn=restricted
done
Phase 3: Fix Violations
- Update Deployments/StatefulSets with compliant security contexts
- Add seccomp profiles
- Switch containers to non-root
- Drop ALL capabilities
Phase 4: Enable Enforcement
kubectl label namespace production \
pod-security.kubernetes.io/enforce=restricted \
pod-security.kubernetes.io/enforce-version=v1.28
Phase 5: Set Cluster Defaults
- Create AdmissionConfiguration with baseline defaults
- Apply to kube-apiserver
- Exempt system namespaces
Phase 6: Monitor
- Watch for FailedCreate events
- Review audit logs weekly
- Update exemptions as needed