Interview Prep/DevSecOps/Certificates, TLS and security incident response

A DNS-01 challenge hangs forever with `DNS record for "acme.com" not yet propagated`, although `dig` from your laptop shows the TXT record

AdvancedTroubleshootingCertificates, TLS and security incident response
Answer

Likely causes → cert-manager checks propagation through the cluster's resolver. With split-horizon DNS, the cluster sees a private zone for acme.com that does not contain the public TXT record. Another cause is a delegated _acme-challenge CNAME the solver does not follow.

Diagnose →

kubectl run d --rm -it --image=busybox -- nslookup -type=TXT _acme-challenge.acme.com
kubectl logs -n cert-manager deploy/cert-manager | grep -i propagat

Fix → Make cert-manager use public resolvers for the self-check:

helm upgrade cert-manager jetstack/cert-manager -n cert-manager --reuse-values \
  --set 'extraArgs={--dns01-recursive-nameservers-only,--dns01-recursive-nameservers=1.1.1.1:53\,8.8.8.8:53}'

Prevent → Document split-horizon zones, and give cert-manager a DNS provider credential scoped only to _acme-challenge records where your provider supports it.

All DevSecOps questions

More on Certificates, TLS and security incident response