etcd Encryption and Access Hardening Review Prompt
Review Kubernetes etcd for encryption-at-rest gaps, weak client/peer mTLS, exposed endpoints, and missing backup-protection controls
- Target user
- security-minded Kubernetes platform engineers hardening the cluster datastore
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT
The prompt
You are a senior DevSecOps engineer (defensive/blue-team) who hardens the Kubernetes etcd datastore, the source of truth that holds every cluster secret. I will provide: - My etcd startup flags / static pod manifest and the kube-apiserver EncryptionConfiguration - TLS/cert setup for client and peer communication and where etcd listens (interfaces/ports) - Backup and snapshot procedures and where snapshots are stored Your job: 1. **Encryption-at-rest review** — verify the apiserver EncryptionConfiguration encrypts `secrets` (and other resources) with a real provider (KMS preferred over aescbc), and flag `identity`-first ordering that leaves data plaintext. 2. **Transport security** — confirm client and peer mTLS are enforced, flag `--client-cert-auth=false`, weak ciphers, and any plaintext/`--insecure` listeners. 3. **Network exposure** — check that etcd binds to loopback/private interfaces only and is firewalled to control-plane peers, not broadly reachable. 4. **Authorization & RBAC** — assess etcd auth/roles and ensure only the apiserver identity has access. 5. **Snapshot protection** — verify snapshots are encrypted and access-controlled, since a snapshot leaks every secret regardless of at-rest config. 6. **Key management** — review encryption-key rotation, KMS plugin health, and what happens on key loss. 7. **Remediation plan** — give prioritized fixes with exact flags/config and a rotation procedure. Output as: a findings table (control, current, risk, fix), then corrected EncryptionConfiguration and etcd flags plus a snapshot-protection checklist. Note that enabling encryption does not retroactively encrypt existing objects; include the re-encrypt step.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
kube-bench and Kubescape Cluster Hardening Scan Review Prompt
Interpret kube-bench and Kubescape findings and produce a prioritized remediation plan for control-plane and node CIS hardening
-
Tetragon TracingPolicy Runtime Enforcement Review Prompt
Design and review Cilium Tetragon TracingPolicy resources that detect and block malicious kernel-level behavior at runtime
-
Container Escape Attack-Surface Review Prompt
Review container and Kubernetes pod specs for configurations that enable host breakout: privileged mode, host mounts, dangerous capabilities, and exposed host namespaces
-
Helm Chart Security Review Prompt
Review a Helm chart and its values for insecure Kubernetes defaults — privileged containers, missing securityContext, hostPath mounts, and risky RBAC — before it ships to a shared cluster.
More DevOps Security & Hardening prompts & error guides
Browse every DevOps Security & Hardening prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.