-
Hi everyone, we have Airflow deployed via the official helm chart (Version 1.10.0) in our OpenShift Namespace and tried to upgrade the Airflow version to 2.7.0, but with this, our authentication seems to break. Prior to the upgrade we used 2.6.3. In the values.yaml we defined a webserver config like so (I mainly used the documentation as reference, but made some minor adjustments for our setup):
With Airflow 2.6.3 this authentication logic works fine, however with Airflow 2.7.0 after authenticating with OpenShfit we get an Airflow page saying that the user has no roles / permission. After digging around in the code base I found that with 2.7.0 we have the FabAirflowSecurityManagerOverride and with more recent commits we also have FabAirflowSecurityManagerOverrideOauth specific to OAuth. The current documentation (see link above) does not mention these override classes. Do we need to change the class from which we inherit? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
cc: @vincbeck ? |
Beta Was this translation helpful? Give feedback.
-
Thanks for all the details! Very helpful to investigate. After some investigation and some testing, it is definitely a bug I introduced when I moved methods from security managers to auth manager. The issue comes from the order of inheritance. Somehow, even though you override The good news is @vandonr-amz is already working on fixing this issue in #33901. This is actually a good test case to add to #33901 to be sure to cover (and to fix) this bug. |
Beta Was this translation helpful? Give feedback.
-
I created an issue from this discussion: #34107. Closing this discussion, please use the issue for any interaction |
Beta Was this translation helpful? Give feedback.
I created an issue from this discussion: #34107. Closing this discussion, please use the issue for any interaction