Skip to content

Document HTTP-01 behind proxies that send the PROXY protocol - #2358

Draft
wallrj wants to merge 1 commit into
cert-manager:masterfrom
wallrj:http01-proxy-protocol-docs
Draft

wallrj wants to merge 1 commit into
cert-manager:masterfrom
wallrj:http01-proxy-protocol-docs

Conversation

@wallrj

@wallrj wallrj commented Nov 5, 2026

Copy link
Copy Markdown
Member

Adds a section to the HTTP-01 external load balancer page explaining why ACME challenges fail with 400 Bad Request when a load balancer or service mesh prepends a PROXY protocol header to connections reaching the solver pod, and how to fix it.

What problem does this solve?

Some proxies (Istio with DestinationRule.trafficPolicy.proxyProtocol, HAProxy send-proxy, Envoy upstream proxy_protocol, AWS NLB with proxy protocol v2) send a PROXY header on every forwarded TCP connection. The acmesolver speaks plain HTTP, reads the header as a malformed request line, and answers 400. The self check then reports wrong status code '400', expected '200' and the Challenge never passes.

Two fixes

  1. Stop the proxy sending the header to the cm-acme-http-solver-* Services. For Istio this is a matter of scoping the DestinationRule. This works today.
  2. Enable the proposed --acme-http01-solver-proxy-protocol controller flag so solver pods require the header. This depends on Add proxy-protocol listener on acmesolver cert-manager#9412, which currently adds the flag to the acmesolver binary only. The controller wiring is still to come, so the flag name here is the proposal, not the shipped name.

/hold until cert-manager/cert-manager#9412 merges and the flag name is confirmed.

[Claude Fable 5.1]

Explain why the acmesolver returns 400 when a load balancer or mesh
prepends a PROXY protocol header, how to confirm it, and the two ways to
fix it: stop sending the header to the solver Service, or enable the
proposed --acme-http01-solver-proxy-protocol controller flag.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Signed-off-by: Richard Wall <[email protected]>
@cert-manager-prow cert-manager-prow Bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. labels Nov 5, 2026
@cert-manager-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign hjoshi123 for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@cert-manager-prow cert-manager-prow Bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Nov 5, 2026
@netlify

netlify Bot commented Nov 5, 2026

Copy link
Copy Markdown

✅ Deploy Preview for cert-manager ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 061172b
🔍 Latest deploy log https://app.netlify.com/projects/cert-manager/deploys/6aec917a845a0f56174c4b89
😎 Deploy Preview https://deploy-preview-2358--cert-manager.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant