-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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
Use auth manager is_authorized_
APIs to check user permissions in Rest API
#34317
Conversation
43bf125
to
99a570f
Compare
is_authorized_
to check user permissions in Rest API and other placesis_authorized_
APIs to check user permissions in Rest API and other places
is_authorized_
APIs to check user permissions in Rest API and other placesis_authorized_
APIs to check user permissions in Rest API
7fe1997
to
b595387
Compare
1e1b83d
to
b6b1619
Compare
…est API and other places
b6b1619
to
d843ac1
Compare
fa0d91f
to
7ba129b
Compare
DagAccessEntity.DEPENDENCIES: (RESOURCE_DAG_DEPENDENCIES,), | ||
DagAccessEntity.IMPORT_ERRORS: (RESOURCE_IMPORT_ERROR,), | ||
DagAccessEntity.RUN: (RESOURCE_DAG_RUN,), | ||
DagAccessEntity.TASK: (RESOURCE_TASK_INSTANCE,), |
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.
Maybe we should leave a coomment here - that this is backwards compatibility due to originally wrong/misleading use of TASK_INSTANCE
in FAB permissions?
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.
Sounds like a good idea :)
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.
Done
Re-reviewed, only few comments left. Also possibly #34942 should be merged first. |
This decorator was added in apache#34317, but it seems it's not used anywhere. Opening this PR to see if I'm missing something
This decorator was added in #34317, but it seems it's not used anywhere. Opening this PR to see if I'm missing something
) This decorator was added in apache#34317, but it seems it's not used anywhere. Opening this PR to see if I'm missing something
As part of #32205.
In #33213,
is_authorized_
APIs are introduced. This PR uses these new APIs across Airflow code. I mostly focused on the rest API but I also did it in some other places.^ 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.