Skip to content

Conversation

@vincbeck
Copy link
Contributor

@vincbeck vincbeck commented Nov 9, 2023

There are 4 layers of security managers:

  • airflow.www.fab_security.manager.BaseSecurityManager
  • airflow.www.fab_security.sqla.manager.SecurityManager
  • airflow.www.security_manager.AirflowSecurityManagerV2
  • airflow.auth.managers.fab.security_manager.override.FabAirflowSecurityManagerOverride

The first 3 layers of security managers are in core Airflow. As part of AIP-56, we moved quite a lot of methods/properties from these security managers to the FAB security manager override (airflow.auth.managers.fab.security_manager.override.FabAirflowSecurityManagerOverride). Thus, the first 3 layers start getting smaller and I dont see any value keeping them separated in 3 different files. The end goal is to merge the first 3 layers of security managers into one (airflow.www.security_manager.AirflowSecurityManagerV2). This PR removes the airflow.www.fab_security.sqla.manager.SecurityManager.


^ 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.

@vincbeck vincbeck added the AIP-56 Extensible user management label Nov 9, 2023
@boring-cyborg boring-cyborg bot added the area:webserver Webserver related Issues label Nov 9, 2023
@potiuk
Copy link
Member

potiuk commented Nov 9, 2023

I love the direction it takes :D

@potiuk potiuk merged commit 3c5f5b5 into apache:main Nov 9, 2023
@vincbeck vincbeck deleted the vincbeck/sqla_manager branch November 9, 2023 19:03
romsharon98 pushed a commit to romsharon98/airflow that referenced this pull request Nov 10, 2023
@ephraimbuddy ephraimbuddy added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Nov 20, 2023
@ephraimbuddy ephraimbuddy added this to the Airflow 2.8.0 milestone Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AIP-56 Extensible user management area:webserver Webserver related Issues changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants