-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
AIP-56 - Create auth manager interface and very basic implementation of FAB auth manager #32217
Conversation
""" | ||
Return the username associated to the user in session. | ||
|
||
For backward compatibility reasons, the username in FAB auth manager is the concatenation of the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
backward compatibility with what ? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Current experience :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can mention "legacy user management"
@@ -1808,4 +1827,5 @@ def __getattr__(name): | |||
|
|||
conf = initialize_config() | |||
secrets_backend_list = initialize_secrets_backends() | |||
auth_manager = initialize_auth_manager() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This module is already hugely dependent on a lot of other modules and very often creates import cycles. Does this have to be initialized here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The auth manager will be used in a lot of code/modules in Airflow. That's where I think it makes to more sense but I can move it if there is a better location to do so
Any comments/concerns/feedbacks? |
@potiuk , you might be interested in this one :) |
I think it's a great start ! |
This PR creates the core components of AIP-56:
To start off, we use the auth manager for a very simple use case: retrieving the user name to display it on the UI (on the top right corner).
Resolves #32188, #32189 and #32190
^ 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.