-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Closed
Labels
affected_version:2.8Issues Reported for 2.8Issues Reported for 2.8area:corearea:webserverWebserver related IssuesWebserver related Issueskind:bugThis is a clearly a bugThis is a clearly a bug
Description
Apache Airflow version
2.8.0
If "Other Airflow 2 version" selected, which one?
No response
What happened?
default_webserver_config.py
is not compatible with 2.8.X versions due to #35572
specifically, these imports are not valid anymore
# from airflow.www.fab_security.manager import AUTH_LDAP
# from airflow.www.fab_security.manager import AUTH_OAUTH
# from airflow.www.fab_security.manager import AUTH_OID
# from airflow.www.fab_security.manager import AUTH_REMOTE_USERthey should be
# from airflow.auth.managers.fab.security_manager.override import AUTH_LDAP
# from airflow.auth.managers.fab.security_manager.override import AUTH_OAUTH
# from airflow.auth.managers.fab.security_manager.override import AUTH_OID
# from airflow.auth.managers.fab.security_manager.override import AUTH_REMOTE_USERWhat you think should happen instead?
No response
How to reproduce
for oauth users just keep using the old webserver_config.py
from airflow.www.fab_security.manager import AUTH_OAUTH
will cause
ImportError: cannot import name 'AUTH_OAUTH' from 'airflow.www.fab_security.manager' (/home/zach/KeplerGroup/KIP-Airflow/.venv/lib/python3.11/site-packages/airflow/www/fab_security/manager.py)
Operating System
Debian GNU/Linux 10 (buster)
Versions of Apache Airflow Providers
No response
Deployment
Other Docker-based deployment
Deployment details
No response
Anything else?
No response
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
affected_version:2.8Issues Reported for 2.8Issues Reported for 2.8area:corearea:webserverWebserver related IssuesWebserver related Issueskind:bugThis is a clearly a bugThis is a clearly a bug