-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
SECURITY_MANAGER_CLASS should be a referrence to class, not a string #33690
Conversation
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/airflow/blob/main/CONTRIBUTING.rst)
|
Thank you! Nice catch! Could you run static checks? It is currently failing |
Yeah. You can CLEARLY see that that part of Airflow is not getting the love it needs... Hopefully with the AIP-56 we can turn it around and make it more of "ours" so to speak. |
It would be good to mentioned it in release note of 2.7.0 as this is kinda breaking change if you have own implementation of Good that I know what happened after upgrade to 2.7.0 and created this PR for others if someone else will see this problem - "Boy scout rule" |
Executed pre-commit locally for that file and it is corrected, waiting for results from CI and looking forward for first contribution to airflow repository 🥇 |
I think It's been like that for a while already :) |
To be honest, I don't see it directly in https://airflow.apache.org/docs/apache-airflow/stable/release_notes.html, "grepping" for |
Exactly, it has been like this for a while, docs were not updated ... for a while too :) No there is no breaking change, just nobody uses that feature I guess :) |
Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions. |
ALMOST nobody :) (except @Michalosu ) - or maybe people who used it just figured out how to do it. But yeah, this does not seem like something that is used often. This is also the reason why we want to move it out of Airflow/away from FAB so we can just expose stable API for anyone who would like to develop their custom auth. |
This issue makes me think ... Should we keep this feature of letting user bringing their own security manager? This feature only made my design/implementation way more complex than without it. When auth managers will be available in Airflow, bringing his own security manager makes no sense to me. And more importantly, it will be impossible to make both world working (the set of auth managers + the set of custom security managers written by users) |
100% . It should be a feature of FAB Auth Manager only. |
Just ran into this issue when trying to upgrade from 2.6 to 2.8. Thanks for updating the docs @Michalosu ! |
See this comment: #33586 (comment)
If SECURITY_MANAGER_CLASS is a string then you will get error like:
@vincbeck fyi