-
Notifications
You must be signed in to change notification settings - Fork 16.6k
Fix Keycloak provider redirect_uri to use HTTPS behind reverse proxy #61095
Merged
vincbeck merged 4 commits intoapache:mainfrom Jan 27, 2026
Merged
Fix Keycloak provider redirect_uri to use HTTPS behind reverse proxy #61095vincbeck merged 4 commits intoapache:mainfrom
vincbeck merged 4 commits intoapache:mainfrom
Conversation
Contributor
Fixes #60922
The Keycloak authentication provider generates HTTP redirect URLs even when
running behind an HTTPS reverse proxy. This occurs because the login route
uses request.url_for() to generate the callback URL, which doesn't respect
proxy headers like X-Forwarded-Proto by default.
This fix configures Airflow to respect proxy headers by adding support for:
- Uvicorn's
--proxy-headersflag withFORWARDED_ALLOW_IPSenvironment variable - Alternative ProxyFix middleware configuration
Both approaches enable the Keycloak provider to correctly generate HTTPS
redirect URLs when deployed behind nginx ingress or other reverse proxies.
Testing:
- Verified redirect_uri uses HTTPS when proxy headers are configured
- Confirmed backward compatibility with existing deployments
...roxy support and provide usage example
... configuration and provide example usage
... a reverse proxy
arjav1528
requested review from
hussein-awala,
jedcunningham and
jscheffl
as code owners
January 26, 2026 20:37
vincbeck
approved these changes
Jan 26, 2026
shreyas-dev
pushed a commit
to shreyas-dev/airflow
that referenced
this pull request
Jan 29, 2026
...pache#61095)
* docs: Enhance Airflow API server configuration in values.yaml
* docs: Update Airflow API server args description to include reverse proxy support and provide usage example
* docs: Update API server env vars description to include reverse proxy configuration and provide example usage
* docs: Add Helm chart configuration details for running Airflow behind a reverse proxy
* docs: Enhance Airflow API server configuration in values.yaml
* docs: Update Airflow API server args description to include reverse proxy support and provide usage example
* docs: Update API server env vars description to include reverse proxy configuration and provide example usage
* docs: Add Helm chart configuration details for running Airflow behind a reverse proxy
98 tasks
shashbha14
pushed a commit
to shashbha14/airflow
that referenced
this pull request
Feb 2, 2026
...pache#61095)
* docs: Enhance Airflow API server configuration in values.yaml
* docs: Update Airflow API server args description to include reverse proxy support and provide usage example
* docs: Update API server env vars description to include reverse proxy configuration and provide example usage
* docs: Add Helm chart configuration details for running Airflow behind a reverse proxy
* docs: Enhance Airflow API server configuration in values.yaml
* docs: Update Airflow API server args description to include reverse proxy support and provide usage example
* docs: Update API server env vars description to include reverse proxy configuration and provide example usage
* docs: Add Helm chart configuration details for running Airflow behind a reverse proxy
jason810496
pushed a commit
to abhijeets25012-tech/airflow
that referenced
this pull request
Feb 3, 2026
...pache#61095)
* docs: Enhance Airflow API server configuration in values.yaml
* docs: Update Airflow API server args description to include reverse proxy support and provide usage example
* docs: Update API server env vars description to include reverse proxy configuration and provide example usage
* docs: Add Helm chart configuration details for running Airflow behind a reverse proxy
* docs: Enhance Airflow API server configuration in values.yaml
* docs: Update Airflow API server args description to include reverse proxy support and provide usage example
* docs: Update API server env vars description to include reverse proxy configuration and provide example usage
* docs: Add Helm chart configuration details for running Airflow behind a reverse proxy
jhgoebbert
pushed a commit
to jhgoebbert/airflow_Owen-CH-Leung
that referenced
this pull request
Feb 8, 2026
...pache#61095)
* docs: Enhance Airflow API server configuration in values.yaml
* docs: Update Airflow API server args description to include reverse proxy support and provide usage example
* docs: Update API server env vars description to include reverse proxy configuration and provide example usage
* docs: Add Helm chart configuration details for running Airflow behind a reverse proxy
* docs: Enhance Airflow API server configuration in values.yaml
* docs: Update Airflow API server args description to include reverse proxy support and provide usage example
* docs: Update API server env vars description to include reverse proxy configuration and provide example usage
* docs: Add Helm chart configuration details for running Airflow behind a reverse proxy
choo121600
pushed a commit
to choo121600/airflow
that referenced
this pull request
Feb 22, 2026
...pache#61095)
* docs: Enhance Airflow API server configuration in values.yaml
* docs: Update Airflow API server args description to include reverse proxy support and provide usage example
* docs: Update API server env vars description to include reverse proxy configuration and provide example usage
* docs: Add Helm chart configuration details for running Airflow behind a reverse proxy
* docs: Enhance Airflow API server configuration in values.yaml
* docs: Update Airflow API server args description to include reverse proxy support and provide usage example
* docs: Update API server env vars description to include reverse proxy configuration and provide example usage
* docs: Add Helm chart configuration details for running Airflow behind a reverse proxy
Subham-KRLX
pushed a commit
to Subham-KRLX/airflow
that referenced
this pull request
Mar 4, 2026
...pache#61095)
* docs: Enhance Airflow API server configuration in values.yaml
* docs: Update Airflow API server args description to include reverse proxy support and provide usage example
* docs: Update API server env vars description to include reverse proxy configuration and provide example usage
* docs: Add Helm chart configuration details for running Airflow behind a reverse proxy
* docs: Enhance Airflow API server configuration in values.yaml
* docs: Update Airflow API server args description to include reverse proxy support and provide usage example
* docs: Update API server env vars description to include reverse proxy configuration and provide example usage
* docs: Add Helm chart configuration details for running Airflow behind a reverse proxy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.