cert-manager Order stays in 'processing' despite HTTP-01 challenge returning correct token from public curl
Environment
Kubernetes 1.25 cluster on cloud VMs, cert-manager v1.8, ingress-nginx controller serving host-based ingress, Let's Encrypt staging used for testing. Ingress has annotations to allow ACME challenges.
Symptoms
cert-manager Certificate resource never becomes Ready. Associated Order/Challenge resources remain in 'processing'; Challenge status shows 'invalidResponse' in cert-manager events. Performing curl https://example/.well-known/acme-challenge/<token> from public internet returns the exact token and a 200.
Observations
Ingress-nginx access logs include requests for the challenge path and return 200. cert-manager logs show repeated validation attempts. No Cloudflare/CDN in front. DNS A record and HTTP served over port 80. From some public vantage points the challenge returns 404 intermittently. Ingress is served by multiple replicas behind a Service of type LoadBalancer.
Already attempted
Scaled ingress-nginx down to single replica, cleared ingress caches, recreated Certificate resource, switched to staging and prod endpoints; verified Service endpoints, restarted cert-manager pods. None completed challenge validation. No malformed tokens observed.
Question
What causes a CA to report 'invalidResponse' when manual curl from a public host returns the correct token? How can I capture the exact request Let's Encrypt makes and ensure my ingress serves an identical response to their validator?
Verified community troubleshooting
Verify whether the CA's validator sometimes hits a different backend than you tested. From several public locations (including -6 and -4), curl the challenge URL and compare headers and body; if some vantage points return 404, your LB or DNS is returning different backends. Temporarily point the domain to a single ingress pod IP or remove AAAA records and re-run validation; if that succeeds, track down the mismatched replica or fix IPv6 routing. Use cert-manager logs and ingress access logs with timestamp/UA filtering to correlate CA requests. If you can’t fix routing quickly, switch to DNS-01 as a safe fallback.
Incident analysis
Most likely causes
Summary
Suggested Fixes
Continue troubleshooting
Related troubles
Matched from the title, description and tags