We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
2.7.1
We upgraded from 2.6.3 to 2.7.1 and the webserver stopped working due to our config with error:
ImportError: cannot import name 'AUTH_REMOTE_USER' from 'airflow.www.fab_security.manager'
There's a commit called Fix inheritance chain in security manager (https://github.com/apache/airflow/pull/33901) which sounds suspicious around magic security imports.
This is still documented and it wasn't noted in the changelog as removed, so it shouldn't have broken our upgrade.
it's not there, so try to import it and... it's not there.
for now I just switched it to importing directly from flask_appbuilder.const import AUTH_DB, AUTH_LDAP, AUTH_OAUTH, AUTH_OID, AUTH_REMOTE_USER
from flask_appbuilder.const import AUTH_DB, AUTH_LDAP, AUTH_OAUTH, AUTH_OID, AUTH_REMOTE_USER
all of them
No response
Virtualenv installation
The text was updated successfully, but these errors were encountered:
The mentioned commit is not released yet.
For this issue, IMHO importing from airflow.www.fab_security.manager is not a good practice, and these example code was added in 2.7.0 by #32759.
airflow.www.fab_security.manager
I will update the documentation.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Apache Airflow version
2.7.1
What happened
We upgraded from 2.6.3 to 2.7.1 and the webserver stopped working due to our config with error:
There's a commit called Fix inheritance chain in security manager (https://github.com/apache/airflow/pull/33901) which sounds suspicious around magic security imports.
What you think should happen instead
This is still documented and it wasn't noted in the changelog as removed, so it shouldn't have broken our upgrade.
How to reproduce
it's not there, so try to import it and... it's not there.
for now I just switched it to importing directly
from flask_appbuilder.const import AUTH_DB, AUTH_LDAP, AUTH_OAUTH, AUTH_OID, AUTH_REMOTE_USER
Operating System
all of them
Versions of Apache Airflow Providers
No response
Deployment
Virtualenv installation
Deployment details
No response
Anything else
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: