Skip to content

Conversation

@gschuurman
Copy link
Contributor

@gschuurman gschuurman commented Apr 29, 2025

Fixes: #49781
Fixes: #49705

Add back the Removed ProxyFix Middleware to allow Oauth2 authentication when using a reverse proxy like nginx or traefik.

When not using proxyFix the redirect_url incorectly gets set to http:// instead of the expected https://, This breaks many authentication flows, especially azure, which does not allow http:// redirect_urls for anything other than localhost.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

Fixes Issues apache#49781 apache#49705

Add back the Removed ProxyFix Middleware to allow Oauth2 authentication
when using a reverse proxy like nginx or traefik.

When not using proxyFix the redirect_url incorectly gets set to http://
instead of the expected https://, This breaks many authentication flows,
especially azure, which does not allow http:// redirect_urls for
anything other than localhost.

Help is needed with adjusting the configuration from webserver to
api-server.
Add the original proxy_fix documentation back into the FAB provider
package and update the section to match fab instead of websever.
@vincbeck vincbeck merged commit 59d592f into apache:main Apr 30, 2025
65 checks passed
@xeniape
Copy link

xeniape commented Jan 26, 2026

This does not seem to be in a release yet. Since I'm currently running into this problem, I would be interested in the current state of this

@vincbeck
Copy link
Contributor

vincbeck commented Jan 26, 2026

This has definitely been released. If you experience an issue can you please create an issue and describe the bug you are experiencing

@xeniape
Copy link

xeniape commented Jan 27, 2026

This has definitely been released. If you experience an issue can you please create an issue and describe the bug you are experiencing

Yep sorry, false alarm. Found out that AIRFLOW__WEBSERVER__ENABLE_PROXY_FIX got renamed to AIRFLOW__FAB__ENABLE_PROXY_FIX

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.

[3.0.0] Removal of AIRFLOW__WEBSERVER__ENABLE_PROXY_FIX is breaking FAB OAuth sign in SSO over EntraID not working anymore in version 3.0.0

4 participants