Repository navigation
Conversation
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]>
Contributor
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
✅ Deploy Preview for cert-manager ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a section to the HTTP-01 external load balancer page explaining why ACME challenges fail with
400 Bad Requestwhen 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, HAProxysend-proxy, Envoy upstreamproxy_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 answers400. The self check then reportswrong status code '400', expected '200'and the Challenge never passes.Two fixes
cm-acme-http-solver-*Services. For Istio this is a matter of scoping theDestinationRule. This works today.--acme-http01-solver-proxy-protocolcontroller 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]