Skip to content

Conversation

@vincbeck
Copy link
Contributor

@vincbeck vincbeck commented Jul 2, 2025

Related #51971.

ResourceMethod in auth manager define the list of methods/actions a user can do against a resource. The method MENU is a special one and only associated to menu items. Removing it from the list remove this confusion.

I create ExtendedResourceMethod to include the method MENU. This type is only used when the method MENU is also expected.

The benefit of doing so is you should no longer be able to call auth_manager.is_authorized_configuration(method="MENU"). This does not makes sense since there is a special method in auth manager to filter menu items based on user permissions: filter_authorized_menu_items.


^ 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 airflow-core/newsfragments.

@boring-cyborg boring-cyborg bot added area:API Airflow's REST/HTTP API area:providers provider:amazon AWS/Amazon - related issues provider:fab provider:keycloak labels Jul 2, 2025
@vincbeck vincbeck force-pushed the vincbeck/am_menu branch 2 times, most recently from 1dc085b to f89f66f Compare July 2, 2025 21:00
@vincbeck vincbeck requested a review from potiuk July 4, 2025 15:03
@vincbeck vincbeck force-pushed the vincbeck/am_menu branch 2 times, most recently from fab92a2 to f9c31cb Compare July 4, 2025 17:25
@vincbeck vincbeck force-pushed the vincbeck/am_menu branch from f9c31cb to b08d829 Compare July 4, 2025 18:04
@vincbeck vincbeck merged commit 4bcd4d7 into apache:main Jul 7, 2025
102 checks passed
@vincbeck vincbeck deleted the vincbeck/am_menu branch July 7, 2025 14:24
HsiuChuanHsu pushed a commit to HsiuChuanHsu/airflow that referenced this pull request Jul 10, 2025
stephen-bracken pushed a commit to stephen-bracken/airflow that referenced this pull request Jul 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants