8000 chore: get django out of the forwarded header business by jennifer-richards · Pull Request #8634 · ietf-tools/datatracker · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

chore: get django out of the forwarded header business #8634

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

Merged
merged 3 commits into from
Apr 24, 2025

Conversation

jennifer-richards
Copy link
Member

This will decide whether a request is using https based on wsgi.url_scheme, as decided by gunicorn.

This reduces the number of places we have to touch to declare that X-Forwarded-Proto is authoritative vs alternative headers. It's set for us at Cloudflare and it is configured to be respected in our gunicorn.conf.py.

When this goes to staging and production, a quick way to check that the configuration is correct is to retrieve /api/openid/.well-known/openid-configuration/ and confirm that the various URLs are all https://. If they're http://, then something is misconfigured.

Creating as a draft PR until after IETF-122

@jennifer-richards jennifer-richards marked this pull request as ready for review April 23, 2025 10:59
@rjsparks rjsparks merged commit 3c8f972 into ietf-tools:main Apr 24, 2025
2 checks passed
@jennifer-richards jennifer-richards deleted the wsgi-url-scheme branch April 24, 2025 14:45
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0