Uh oh!
There was an error while loading. Please reload this page.
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)
|
vincbeck
commented
Aug 24, 2023
Thank you! Nice catch! Could you run static checks? It is currently failing |
potiuk
commented
Aug 24, 2023
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. |
Michalosu
commented
Aug 24, 2023
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" |
Michalosu
commented
Aug 24, 2023
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 🥇 |
potiuk
commented
Aug 24, 2023
I think It's been like that for a while already :) |
Michalosu
commented
Aug 24, 2023
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. |
potiuk
commented
Aug 24, 2023
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. |
vincbeck
commented
Aug 28, 2023
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) |
potiuk
commented
Aug 28, 2023
100% . It should be a feature of FAB Auth Manager only. |
andrew-candela
commented
Feb 22, 2024
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