-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Be able to use relative redirects (in Location header) #12162
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. |
Thanks @chriss-de Is this about configuring redirects using the annotations (permanent/temporal) ? |
oh I see you are adding new annotations |
The background to the feature request is that we're doing TLS termination before nginx. So nginx only sees http traffic. Using absolute redirects always returns http. |
Would it just be adding a config option to disable to absolute_redirect to off? The config map is defined here https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/ I think it would be a good first issue for someone to try to add it https://github.com/kubernetes/ingress-nginx/blob/main/internal/ingress/controller/config/config.go For the core maintainers, we are focused on security, tech debt, and gatewayAPI work; we would not prioritize this. /good-first-issue |
@strongjz: GuidelinesPlease ensure that the issue body includes answers to the following questions:
For more details on the requirements of such an issue, please see here and ensure that they are met. If this request no longer meets these requirements, the label can be removed In response to this:
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. |
What do you want to happen?
If I do a redirects to
/location
I want the HTTP Location header to showLocation: /location
Currently you get
Location: http://host/location
That's because nginx has a config setting
absolute_redirect
which ison
by default.Is there currently another issue associated with this?
not AFAIK
Does it require a particular kubernetes version?
no
The text was updated successfully, but these errors were encountered: