Skip to content

✨(backend) make forward auth request uri header configurable - #794

Open
erincandescent wants to merge 1 commit into
suitenumerique:mainfrom
erincandescent:forward-auth-config-v2
Open

✨(backend) make forward auth request uri header configurable#794
erincandescent wants to merge 1 commit into
suitenumerique:mainfrom
erincandescent:forward-auth-config-v2

Conversation

@erincandescent

Copy link
Copy Markdown

Purpose

In our deployment we're using Traefik, not nginx, as an ingress. Traefik uses X-Forwarded-Url instead of X-Original-Url. This adds a setting which lets users adapt Docs to their ingress proxy of choice

Port of suitenumerique/docs#2241 (written by me) from Docs

Proposal

Add a MEDIA_AUTH_ORIGINAL_URL_HEADER which lets you configure it, with HTTP_X_ORIGINAL_URL as default value

AI usage

Porting from the Docs codebase to Drive was done by DeepSeek 4 Flash. The original code was written by me and @lunika , and it appears to have reproduced it faithfully

In our deployment we're using Traefik, not nginx, as an ingress.
Traefik uses X-Forwarded-Uri instead of X-Original-Uri. This
adds a setting which lets users adapt Docs to their ingress
proxy of choice

Port of suitenumerique/docs#2241 to drive

Signed-off-by: Erin Shepherd <erin.shepherd@e43.eu>
@sonarqubecloud

sonarqubecloud Bot commented Aug 3, 2026

Copy link
Copy Markdown

@erincandescent

Copy link
Copy Markdown
Author

I see there's a similar PR #743 but (a) honestly I don't see a good reason to allow multiple headers (in fact it seems like a security disaster) and (b) I don't see a reason to diverge from docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant