Interview Prep/DevSecOps/Kubernetes Security

How do you secure the ingress layer of a cluster serving public traffic?

IntermediateScenarioKubernetes Security
Answer

Situation read → The ingress controller is the internet-facing entry. Harden it like an edge proxy.

What I'd do →

  1. Terminate TLS with cert-manager certs, enforce TLS 1.2+ and HSTS.
  2. Put a WAF in front (AWS WAF on the ALB, Cloud Armor, or ModSecurity/Coraza rules).
  3. Rate limit per client IP and set request size limits.
  4. Disable risky annotations: for ingress-nginx, keep allow-snippet-annotations: false (snippets enable config injection).
  5. Patch the controller quickly; the 2025 "IngressNightmare" CVEs in ingress-nginx showed why.

Why → One misconfigured controller exposes every app behind it.

Interview tip → Mention IngressNightmare and the admission webhook exposure lesson.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Kubernetes Security