Skip to content

fix(infra): Drop SECURE_PROXY_SSL_HEADER_NAME override#7499

Open
germangarces wants to merge 1 commit into
mainfrom
fix/trust-x-forwarded-proto
Open

fix(infra): Drop SECURE_PROXY_SSL_HEADER_NAME override#7499
germangarces wants to merge 1 commit into
mainfrom
fix/trust-x-forwarded-proto

Conversation

@germangarces
Copy link
Copy Markdown
Contributor

@germangarces germangarces commented May 12, 2026

The task definition pinned SECURE_PROXY_SSL_HEADER_NAME to HTTP_CLOUDFRONT_FORWARDED_PROTO, so Django only detected HTTPS when the request came through CloudFront. Requests via the internal ALB (no CloudFront in the path) had no such header, so is_secure() returned False and Google SSO callbacks were generated as http://, which Google rejects.

Removing the override falls back to the default in api/app/settings/common.py: HTTP_X_FORWARDED_PROTO. Both ALBs stamp X-Forwarded-Proto on their HTTPS listener, so Django detects HTTPS regardless of CloudFront presence.

Contributes to #7282

Signed-off-by: germangarces <german.garces@flagsmith.com>
@germangarces germangarces requested a review from a team as a code owner May 12, 2026 13:17
@germangarces germangarces requested review from emyller and removed request for a team May 12, 2026 13:17
Copy link
Copy Markdown

@claude claude Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.

Tip: disable this comment in your organization's Code Review settings.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 12, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

3 Skipped Deployments
Project Deployment Actions Updated (UTC)
docs Ignored Ignored May 12, 2026 1:17pm
flagsmith-frontend-preview Ignored Ignored May 12, 2026 1:17pm
flagsmith-frontend-staging Ignored Ignored May 12, 2026 1:17pm

Request Review

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant