Skip to content
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

Move methods from security managers to FabAirflowSecurityManagerOverride #33044

Merged
merged 7 commits into from
Aug 15, 2023

Conversation

vincbeck
Copy link
Contributor

@vincbeck vincbeck commented Aug 2, 2023

The intent of this PR is to move FAB related methods from security managers (AirflowSecurityManager, BaseSecurityManager and SecurityManager) to FabAirflowSecurityManagerOverride. Since the effort is quite big, this PR is just a first step and more methods will be moved in separate PRs. This PR moves the most "obvious" methods to be moved. This will help to review the PR as well.

Also, in order to avoid having one gigantic FabAirflowSecurityManagerOverride, I decided to split it in different modules which FabAirflowSecurityManagerOverride inherits from. So far I created two modules: DB and oauth, each one defining methods related to either the database or Oauth.

There is no new code in this PR, the changes are only code being moved around.


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

@boring-cyborg boring-cyborg bot added area:dev-tools area:webserver Webserver related Issues labels Aug 2, 2023
@vincbeck vincbeck added the AIP-56 Extensible user management label Aug 2, 2023
@vincbeck vincbeck force-pushed the vincbeck/security_manager_override branch 3 times, most recently from b90c0d0 to 04c83f7 Compare August 2, 2023 19:17
@vincbeck vincbeck added the use public runners Makes sure that Public runners are used even if commiters creates the PR (useful for testing) label Aug 2, 2023
@vincbeck vincbeck closed this Aug 2, 2023
@vincbeck vincbeck reopened this Aug 2, 2023
Copy link
Contributor

@vandonr-amz vandonr-amz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks OK from what I can tell

@vincbeck vincbeck force-pushed the vincbeck/security_manager_override branch from 04c83f7 to 319617a Compare August 3, 2023 15:50
@vincbeck vincbeck force-pushed the vincbeck/security_manager_override branch from 319617a to 0f031a8 Compare August 3, 2023 18:58
Copy link
Contributor

@o-nikolas o-nikolas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be tricky to review these types of large PRs, but from what I can tell it LGTM 👍

@vincbeck
Copy link
Contributor Author

vincbeck commented Aug 11, 2023

Can I have another review please? I am aware it is not the most interesting PR but this is needed. FYI: this is only moving code, there is no new code here, that should make the review easier :). @uranusjr @pierrejeambrun maybe 👼

@potiuk
Copy link
Member

potiuk commented Aug 13, 2023

I am sorry - I have just merged #33347 which has been important to be out for 2.7.0, and this one conflicts with it so if you please rebase witht the chnage of mine and ping me, I will review it quickly (also now when I am more familiar with recent changes you've done). Sorry - but 2.7. has been priority over the last few days

@vincbeck
Copy link
Contributor Author

Totally understandable 👌 No worries @potiuk. I just resolved the conflicts. If you can review it, that would be awesome 🥳

Copy link
Member

@uranusjr uranusjr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not compare the code in detail and trust you just moved them.

@vincbeck vincbeck merged commit 8775f84 into apache:main Aug 15, 2023
42 checks passed
@vincbeck vincbeck deleted the vincbeck/security_manager_override branch August 15, 2023 14:21
ferruzzi pushed a commit to aws-mwaa/upstream-to-airflow that referenced this pull request Aug 17, 2023
@ephraimbuddy ephraimbuddy added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Aug 27, 2023
@ephraimbuddy ephraimbuddy added this to the Airflow 2.8.0 milestone Aug 27, 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:dev-tools area:webserver Webserver related Issues changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) use public runners Makes sure that Public runners are used even if commiters creates the PR (useful for testing)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants