-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
proxy-redirect is ignored #12917
Comments
This issue is currently awaiting triage. If Ingress contributors determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Here is my configmap, in case it matters:
|
Please look at relese notes for changes. The slash may not be passing validations tests for annotation. /remove-kind bug |
Thanks @longwuyuan for the hint!
Instead of patching the deployment, is there a way to use configmap to disable annotation validation? Looking at the generated nginx.conf, I am not sure why we want to block slash from passing validation in this special case, given that it is wrapped within the proper
|
If yo uuse helm, then you can disable validations but also make sure to take care of risk-level confg. I think slash is notorious for participating in undesired strings. The consequences can be really bad. Please discuss in the dev channel on slack for allowing slash in that annotation. Or join the monthly community meetings. |
For helm, set |
What happened:
I upgraded from ingress-nginx 1.8.0 to 1.12.0, and now the ingress annonation for proxy-redirect is ignored:
sample config:
What you expected to happen:
The response "Location" header should have the proper uri prefix matching the request.
I checked the generated nginx.conf from the old ingress 1.8.0 and find:
proxy_redirect / /$1/$2/$3/;
But the nginx.conf from the new ingress 1.12.0 has:
proxy_redirect off;
It seems the new ingress ignored the annotation in the ingress config.
The text was updated successfully, but these errors were encountered: