-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Description
Apache Airflow version
2.8.0
If "Other Airflow 2 version" selected, which one?
No response
What happened?
I've just upgraded from 2.7.3 to 2.8.0 and have my own custom security manager. This custom security manager inherited from AirflowSecurityManager. Now I've upgraded to 2.8.0 I've altered my security manager to inherit from FabAirflowSecurityManagerOverride. Despite this, my custom security manager isn't being picked up. I've made no changes to webserver_config.py where I've specified the SECURITY_MANAGER_CLASS. It should pick up my custom sec manager via this line: https://github.com/apache/airflow/blob/2.8.0/airflow/auth/managers/fab/fab_auth_manager.py#L340 however when I try to login, not only do I get invalid login but the errors in the logs are coming from override.py (where the base FabAirflowSecurityManagerOverride lives) compared to my customsecuritymanager.py. I'm not sure if something else has changed that I need to alter or if there is a bug somewhere that isnt picking up my custom security manager class.
note: I'm also using the default fab auth manager
What you think should happen instead?
My custom security manager should be picked up and used. I've verified it's not being picked up by putting in an incorrect name which in the past has produced an error.
How to reproduce
Try to set your own SECURITY_MANAGER_CLASS in webserver_config.py and inherit from FabAirflowSecurityManagerOverride.
Operating System
CentOS7
Versions of Apache Airflow Providers
No response
Deployment
Official Apache Airflow Helm Chart
Deployment details
No response
Anything else?
No response
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct