Replace ReverseProxied with werkzeug/middleware/proxy_fix.py #112
Labels
No labels
Closed As
Duplicate
Closed As
Fixed
Closed As
Invalid
easyfix
enhancement
ai-review-please
Backlog Status
Needs Review
Backlog Status
Ready
chore
documentation
points
01
points
02
points
03
points
05
points
08
points
13
pr2jira
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Sprint Status
Blocked
Sprint Status
Done
Sprint Status
In Progress
Sprint Status
Review
Sprint Status
To Do
Technical Debt
Work Item
Bug
Work Item
Epic
Work Item
Spike
Work Item
Task
Work Item
User Story
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Depends on
#126 Replace ReverseProxied with werkzeug ProxyFix
quality/testdays-web
Reference
quality/testdays-web#112
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Copied from https://pagure.io/elections/issue/106 :
This app uses a ReverseProxied wrapper for the WSGI app that attempts to cope with it being reverse-proxied (in
testdays/app.py).werkzeug X-Forwarded-For Proxy Fix seems to be a better implementation of this, which is documented by flask upstream and handles things like there being multiple comma-separated values in the forwarded headers. It handles more headers, and allows specifying how many levels of proxy there are known to be for each header.
In all respects it seems like a superior replacement (which we don't have to maintain), so we should switch to it, I think.
Open questions: which of the headers are proxied for the Fedora deployment, and how many levels of proxying should we configure (assuming we go back to the
appendsetting forhaproxy.router.openshift.io/set-forwarded-headers)? And should we make the wrapper setup configurable to allow for other deployments and for easy changes if our proxying setup changes in future?See https://forge.fedoraproject.org/infra/tickets/issues/12997 for some background here.