---
name: operator-security-audit
description: Audit Kubernetes operator security and production reliability, including RBAC, workload hardening, secrets, supply chain, tenancy, external resources, observability, and upgrades. Use for security or production-readiness reviews.
metadata:
version: "1.0.0"
---
# Operator security audit
Review the operator as a trust boundary and a production system. Establish what a compromised process can access, how lifecycle failures affect tenants and external resources, and whether an on-call engineer can detect and recover those failures.
This skill owns 78 checks, `S*` and `E-*`, in chapters 9-16. Sources include NSA/CISA hardening guidance, CNCF security and supply-chain guidance, SLSA, and OpenTelemetry. Adapt probes to the operator's actual framework, including Go/controller-runtime, Operator SDK, Helm, Ansible, and Kopf.
## Workflow
1. Read [chapter execution](../../references/chapter-workflow.md) for scope, authorization, and artifacts. Record the repository snapshot, framework/version, external systems, tenant boundaries, data responsibilities, and deletion promises in `scope.md`. Run `python3 scripts/inventory.py /absolute/repo`.
2. Run `python3 scripts/chapter.py plan --track security`. Chapter 9 establishes the external lifecycle contract. Review chapters 10-15 against it, with chapter 14 using chapter 11's privilege evidence. Load each pass with `python3 scripts/chapter.py context N`.
3. Save `chapters/chNN.md` and `chapters/chNN.json` and validate each with `python3 scripts/chapter.py validate N chapters/chNN.json`. Trace crash recovery, retries, privilege grants, and observable failure paths. Record dispositions for assigned extended checks as well as chapter checks.
4. Run chapter 16 after the selected security passes. Its `S08-*` checks reconcile the security track's evidence. Use design artifacts when a combined audit supplies them and inspect relevant API or reconciler code directly when running standalone.
5. Produce `audit.md` and `audit.json` using the [report contract](../../references/report-format.md). A complete security audit contains exactly the 78 security check IDs and uses `scope.mode: "full"`. Run `python3 scripts/validate_report.py --track security audit.json`.
Completion requires supported dispositions for all selected checks and actionable findings. For a chapter or subset, use targeted scope from the chapter workflow. In a combined audit, return this track's artifacts with unresolved handoffs and snapshot identity.
## Chapter references
Security reference files retain local chapter labels 1-8. Tooling uses global chapter numbers 9-16 to preserve existing artifacts and check IDs.
| Chapter | Focus | Checks |
| --- | --- | --- |
| 9 | [External lifecycle and idempotency](../../references/ch01.md) | `S01-*`, `E-01`..`E-03` |
| 10 | [Production blast radius](../../references/ch02.md) | `S02-*`, `E-04` |
| 11 | [Workload hardening and least privilege](../../references/ch03.md) | `S03-*`, `E-05`..`E-06` |
| 12 | [Supply chain integrity](../../references/ch04.md) | `S04-*`, `E-07` |
| 13 | [Observability and debuggability](../../references/ch05.md) | `S05-*`, `E-08`..`E-09` |
| 14 | [Multi-tenancy isolation](../../references/ch06.md) | `S06-*`, `E-10` |
| 15 | [Upgrade safety and migration](../../references/ch07.md) | `S07-*`, `E-11` |
| 16 | [Security evidence synthesis](../../references/ch08.md) | `S08-*` |
Load [extended checks](../../references/extended-checks.md) through the chapter context command, which selects assigned checks. Read [sources and provenance](../../references/sources.md) when verifying a cited or version-sensitive claim.
— ‹guest · 2026-12-03› —
این نسخه با نشانهگذاری اختصاصی حساب شما نمایش داده میشود. برای نصب سریع، به تب نصب و راهاندازی بروید.