-
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
Fix Exception FabAirflowSecurityManagerOverride #36437
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)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I haven't seen these PRs, however they are intended for 2.8.* ? I saw that there were some changes in main, but I believe it would be for a new version, maybe 2.9 |
Not really. We are cherry-picking some changes from main to be released in 2.8.* - these are bug-fixes and doc updates mostly - so.I'd say this (and doc changes) should go to 2.8.1. it is about more complicated because in main we already moved FAB to separate provider, which will make cherry-picking a bit more complex - that's why as well I think we should do any fixes here while @vincbeck is around to make sure we all make sure we are doing the right things. |
I'm also running into the related issue, so a fix will be great as it is now blocking us to upgrade to Airflow 2.8. To me the proposed fix should do the trick as the raised error indicates the check is inverted. |
It will stil have to be released in 2.8.1 and it will take some time. So feel free to apply the patch for now in your version - this is the fastest way you can get it fixed for you now. |
This is a beauty of Open-Source software. You can ALWAYS patch things while waiting for a more complete ifx. And rushing fixes without having a full knowledge is often bad idea. Go slow to move fast. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am against this change.
What is the value of SECURITY_MANAGER_CLASS
in your scenario? There is something weird because this check was already there before we migrated the code to fab provider, so it should not be a breaking change. We want to make sure whatever class you defined in SECURITY_MANAGER_CLASS
inherits from AirflowSecurityManager
. Again, this check was there before so there must be something off somewhere.
Hello vincbeck, how are you? Happy New Year!!! When trying to extend AirflowSecurityManager I receive a DeprecationWarning with the following message And when trying to extend FabAirflowSecurityManagerOverride I receive an Exception with the following message Interpreting what the warnings say, I understand that the AirflowSecurityManager class is becoming obsolete and needs to extend the FabAirflowSecurityManagerOverride class and my change proposes exactly that
|
Happy new year too @maiconkkl. Thanks for all the details and indeed there is a bug. This is related to #36343 as well. I just figured out the bug, let me create a PR for it. I'll explain the details there |
See #36538 |
@maiconkkl if you could pull the changes of this PR locally and do some testing on your end, that would be very appreciated :) |
I already tested it and it works well for me |
Thank you! |
related: #36432
The exception raised Your CUSTOM_SECURITY_MANAGER must extend FabAirflowSecurityManagerOverride, not FAB's own security manager.
My English is not good, so I ask you to be patient.
The error happens when extending the FabAirflow SecurityManagerOverride class to create custom authentication