Open chriss-de opened 2 weeks ago
This issue is currently awaiting triage.
If Ingress contributors determines this is a relevant issue, they will accept it by applying the triage/accepted
label and provide further guidance.
The triage/accepted
label can be added by org members by writing /triage accepted
in a comment.
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. HSTS should take care of the problem, but to be extra safe we'd like to not return http at all. If the redirects are relative we wouldn't have the issue
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: This request has been marked as suitable for new contributors.
Please 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
by commenting with the /remove-good-first-issue
command.
What do you want to happen? If I do a redirects to
/location
I want the HTTP Location header to showLocation: /location
Currently you getLocation: http://host/location
That's because nginx has a config settingabsolute_redirect
which ison
by default.Is there currently another issue associated with this? not AFAIK
Does it require a particular kubernetes version? no