-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Add back ProxyFix Middleware for flask app builder #49942
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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.
b0d3040 to
5fb1acd
Compare
providers/fab/src/airflow/providers/fab/www/extensions/init_wsgi_middlewares.py
Outdated
Show resolved
Hide resolved
Add the original proxy_fix documentation back into the FAB provider package and update the section to match fab instead of websever.
6114d45 to
aff64c6
Compare
|
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 |
|
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 |
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.rstor{issue_number}.significant.rst, in airflow-core/newsfragments.