Skip to content

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

Merged
rjsparks merged 3 commits into
ietf-tools:mainfrom
jennifer-richards:wsgi-url-scheme
Apr 24, 2025
Merged

chore: get django out of the forwarded header business#8634
rjsparks merged 3 commits into
ietf-tools:mainfrom
jennifer-richards:wsgi-url-scheme

Conversation

@jennifer-richards

Copy link
Copy Markdown
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
@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