-
Notifications
You must be signed in to change notification settings - Fork 2k
Ingress returns 301 on ACME challenge #2698
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @pimjansen thanks for reporting! Be sure to check out the docs while you wait for a human to take a look at this 🙂 Cheers! |
Hi @pimjansen sorry for the delay in replying! You are likely seeing 301 redirect errors because the acme challenge serves on HTTP, not HTTPS, and SSLRedirect defaults to "true". This can be disabled by setting the annotation This can be circumvented by doing one of two options:
To do so, configure your HTTP01 ClusterIssuer to use a minion ingress resource, create a master Ingress resource for the host, and use a minion resource for your application Ingress, e.g.: http01 issuer:
master Ingress:
minion Ingress:
Hopefully this configuration works for you, please let me know if you run into any further difficulty! |
Since this is related to cert-manager - could this also be achieved using the VirtualServer resource? https://docs.nginx.com/nginx-ingress-controller/releases/#nginx-ingress-controller-230 |
I solved it by using |
adding |
Note that this solution will not work with |
Describe the bug
The ACME challenge for Cert-Manager keeps returning a 301 on which the cert cant be approved. I guess it is not really a bug though however i can not find anything related in docs nor online. The ingress should not redirect on an acme challenge if im correct.
To Reproduce
Hard to say the exact steps. Below is at least the ingress that i have deployed
The actual challenge which keeps pending:
Expected behavior
The challenge to be handled properly
Your environment
Additional context
Add any other context about the problem here. Any log files you want to share.
The text was updated successfully, but these errors were encountered: