-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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 security manager inheritance in fab provider #36538
Conversation
cc @maiconkkl |
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.
Is it possible to add a test for this check?
LGTM |
Good point. Let me do it |
I have a doubt!
This way, whoever uses the class "AirflowSecurityManagerV2" will understand that it is being depreciated and which one they should use. It can even be used as a test case too. |
No, this change has been added very recently and is not right. |
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.
Yeah. I knew that it can be don "properly".
The failures are not related to this PR, fix: #36558 |
Hello, does this mean that we need to wait for 2.8.1 to test the setup with SSO over OAUTH and Azure? |
If you make your custom security manager inherit from |
This code trigger exactly the error
|
My bad, can you try by inheriting from |
With class Many thanks! |
(cherry picked from commit 2093b6f)
(cherry picked from commit 2093b6f)
Related to #36343 and #36437.
In fab provider, the security manager inheritance check is wrong. We should check that the security manager provided by the user inherits from
FabAirflowSecurityManagerOverride
period. This change is also backward compatible with historical users of this feature because historically we were forcing the class defined inSECURITY_MANAGER_CLASS
to inherit from AirflowSecurityManager. And this class inherits fromFabAirflowSecurityManagerOverride
.^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named
{pr_number}.significant.rst
or{issue_number}.significant.rst
, in newsfragments.