elections: use set-forwarded-headers: replace for now

This should 'fix' broken redirects in the elections UI, see
https://pagure.io/fedora-infrastructure/issue/12997 .

This probably isn't ultimately the correct fix but it should make
things work for now. The real issue seems to be that elections'
custom WSGI app wrapper which attempts to handle the app being
reverse-proxied doesn't handle all proxied headers and/or doesn't
handle comma-separated list values. The long-term fix is likely
to be using werkzeug/middleware/proxy_fix.py instead, see
https://pagure.io/elections/issue/106 .

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson
2025-12-18 11:14:50 -08:00
parent cacc7710ad
commit 01150e5290

View File

@@ -114,6 +114,8 @@
route_host: "elections{{ env_suffix }}.fedoraproject.org"
route_serviceport: 8000-tcp
route_servicename: elections
route_annotations:
haproxy.router.openshift.io/set-forwarded-headers: replace
- role: openshift/object
object_app: elections