kubernetes-security-architect
Architect-level cluster hardening — RBAC and service accounts, admission control and policy engines, pod security standards, network policy, image provenance and runtime detection, and the multi-tenancy boundaries that decide whether a shared cluster is safe. Use when a cluster hosts more than one team or any sensitive workload.
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- kubernetes-security-architect
- license
- MIT
- metadata
- { "crusor-path": "cloud-and-devops-architect/platform-architect/kubernetes-security-architect", "crusor-domain": "cloud-and-devops-architect", "crusor-origin": "original", "crusor-sources": "kubernetes.io/docs/concepts/security; kubernetes.io/docs/reference/access-authn-authz/rbac; kyverno.io/docs", "crusor-triggers": "kubernetes security, rbac, pod security, admission controller, kyverno, gatekeeper, network policy, cluster hardening, image provenance, multi tenancy", "crusor-verified-on": "2026-10-30" }
- description
- Architect-level cluster hardening — RBAC and service accounts, admission control and policy engines, pod security standards, network policy, image provenance and runtime detection, and the multi-tenancy boundaries that decide whether a shared cluster is safe. Use when a cluster hosts more than one team or any sensitive workload.
- compatibility
- Kubernetes; EKS/GKE/AKS, OPA Gatekeeper/Kyverno
03 SKILL.md 正文
Kubernetes Security Architect
A cluster is a shared kernel with an API that can schedule anything. Isolation is a configuration you enforce, not a property you assume.
When to use
- Multi-team or multi-tenant clusters.
- A security review, compliance requirement, or post-incident hardening.
- Designing admission policy and RBAC.
When NOT to use
- Single-tenant, short-lived dev clusters — apply the baseline and move on.
- Application authorization → web security books.
Decision 1 — Tenancy
| Boundary | Strength |
|---|---|
| namespace + RBAC + network policy | soft, one cluster |
| namespace + policy engine + quotas | medium |
| separate node pools with taints | stronger |
| separate clusters per tenant | strongest, more cost |
- Namespaces are not a security boundary by themselves; RBAC, network policy, and admission control make them one.
- ResourceQuota and LimitRange per namespace prevent one team starving the cluster.
- For regulated tenants, separate clusters; shared clusters need a documented risk acceptance.
Decision 2 — Identity
- No cluster-admin for humans; break-glass with audit and expiry.
- Workload identity from the cloud (IRSA/Workload Identity) instead of static secrets; one service account per workload.
- Disable automounting of service account tokens where unused.
- RBAC by role + binding per namespace; no wildcard verbs on cluster-scoped resources.
Decision 3 — Workload hardening
- Pod Security Standards: restricted baseline enforced by admission.
- Non-root, read-only root filesystem, dropped capabilities, seccomp profile.
- No hostPath, hostNetwork, or privileged pods outside a labelled system namespace.
- Resource limits mandatory — limits are also a denial-of-service control.
- Image policy: only signed images from the approved registry; digest-pinned.
Decision 4 — Network
- Default-deny ingress and egress per namespace; allow flows explicitly.
- DNS egress allowed narrowly; metadata endpoint blocked from pods that do not need cloud identity.
- Ingress only through the approved gateway; no ad-hoc NodePorts.
- Egress to the internet via a controlled proxy or NAT with logging.
Decision 5 — Admission and detection
- Policy engine (Kyverno/Gatekeeper) enforcing: no
latesttags, required labels, resource limits, allowed registries, no privileged. - Policies versioned in git; violations audited before enforcement in a new cluster.
- Runtime detection (Falco/cloud-native equivalents) for shell-in-container, unexpected outbound connections, and crypto-mining patterns.
- Audit logs shipped off-cluster with retention.
Decision 6 — Supply chain
- Images built by CI with provenance/SBOM; scanned for CVEs; signed.
- Admission verifies signature and registry; a policy that only alerts is theatre.
- Base images patched on a cadence; rebuild rather than mutate running pods.
- Secrets injected from a secret manager at runtime, not baked into images.
Failure modes at scale
- Everyone has cluster-admin "temporarily" for a deployment.
- Default service account token mounted into every pod, usable by any SSRF.
- No network policy: a compromised front-end reaches the database directly.
- Policy engine in audit mode for a year; violations in the thousands.
- Images pulled from Docker Hub at deploy time, unpinned.
Verification receipts
- RBAC report: cluster-admin holders, wildcard rules, unused bindings.
- Pod Security admission enforced with a rejected test pod.
- Network policy matrix: denied flows verified between namespaces.
- Policy engine in enforce mode with a blocked non-compliant manifest.
- Runtime detection alert triggered by a safe simulated event.
04 同仓库更多 Skills
interaction-patterns-architect
Architect-level interaction design in code — choosing established patterns over invented ones, feedback and latency behaviour, destructive-action safeguards, navigation and overlay conventions, and the state model behind every interactive surface. Use when a screen has to behave, not just look.
design-system-ops-architect
Architect-level operation of a design system in code — token pipelines and versioning, component API and variant policy, the catalogue as the contract, adoption metrics, and the governance that stops a system from forking into three. Use when a component library must survive several teams.
design-handoff-architect
Architect-level design handoff — what must be specified before implementation starts, tokens over raw values, responsive and content-limit contracts, state matrices, and the review loop that catches drift between design and code. Use when a design is about to become code.
content-microcopy-architect
Architect-level UI content — where strings live, voice and terminology consistency, error and empty-state copy as part of the interface, translation-ready authoring, and the content model a product needs before it multiplies screens. Use when the words in the interface matter as much as the pixels.
ui-ux-implementation-architect
Architect-level direction for turning a design into working UI — the handoff contract, component ownership versus screen-level layout, interaction and state conventions, design QA gates, and the review habits that keep an implementation faithful without frozen pixels. Use before any specific UI implementation skill.
test-strategy-architect
Architect-level test strategy — allocating assertions across unit, integration, contract and end-to-end layers, designing for testability through dependency boundaries, fixture and data strategy, and the flake and coverage policies that keep a suite trustworthy. Use when defining how a codebase is tested.