-
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
OpenShift OAuth not working when upgrading from 2.6.3 -> 2.7.0 #34107
Comments
hey @allekai I'm reading your config, and there was recently some fixes to the default config documentation because it was not correct. |
Hi @vandonr-amz I will check it out today in the afternoon |
When I replace the FAB_SECURITY_MANAGER_CLASS with SECURITY_MANAGER_CLASS, it works again. Thanks. |
I really dont understand how it was supposed to work before since it is been 3 years we have been using Closing the issue |
Discussed in #33913
Originally posted by allekai August 30, 2023
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.
Furthermore, the
log.info(data)
statement is either never called or the logging does not make it to the console.The
print(f"Following Roles were defined via Rolemapping: {AUTH_ROLES_MAPPING}")
statement however is printed to stdout as expected.When we run
airflow users list
in the webserver pod, we see an entry for the user who tried to login, however we only have the email adress - the username, roles oder fullname are not written to the DB.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?
The text was updated successfully, but these errors were encountered: