Repository navigation
Fix FAB Website permissions rows for the Grid and Graph views - #74599
Merged
Merged
Conversation
|
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contributors' Guide
|
vincbeck
approved these changes
Oct 12, 2026
|
Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions. |
This was referenced Oct 13, 2026
28 of 93 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The "Website Permissions" table in the FAB auth manager docs still lists the Airflow 2 permissions for the Tree and Graph views. On Airflow 3 these views load their data from UI API endpoints that check different resources. A custom role built from the table cannot open the Graph view, as reported in discussion #74563. Per #62532 the checks themselves are by design, so this change documents them and does not relax them.
What the endpoints check with the FAB auth manager:
/ui/structure/structure_data): Dag read, DAG Dependencies read, and theTASK_INSTANCEDag access entity. The FAB auth manager maps that entity to both Task Instances and DAG Runs. Task Logs is not checked./ui/grid/structure,/ui/grid/runs,/ui/grid/ti_summaries): Dag read, DAG Runs and Task Instances. The Grid view replaced the Tree view in Airflow 2.3, so the row is renamed.Tested on Airflow 3.1.8 with apache-airflow-providers-fab 3.4.0. The test role had
Website.can_readandDAG:dag_a.can_readplus the grants listed in the new rows, and no Task Logs permission. All four endpoints returned 200 fordag_aand 403 for another Dag. Removing DAG Dependencies made only the Graph endpoint return 403. Removing Task Instances or DAG Runs made all four return 403. A per-DagDAG Run:dag_a.can_readdid not replaceDAG Runs.can_read, because theTASK_INSTANCEentity checks the DAG Runs resource directly. The note under the table records this.The DAG Dependencies check is on
structure_datain every release from 3.0.2 to 3.3.2 and onv3-3-test. On main it was removed fromstructure_datain #69833, but the Graph view on main still calls/ui/dependencies, which requires DAG Dependencies read, when "show all dependencies" is turned on. The row is therefore correct for every Airflow version this provider supports.Not changed: the duration graph, all tries, landing times and Gantt rows, which were not tested. No newsfragment or changelog entry, because this is a provider docs change.
Checks run:
prek run --files providers/fab/docs/auth-manager/access-control.rstpassed in the pre-commit and manual stages, and docutils parsed the table (85 rows, no warnings). The docs build was not run locally.related: #74563
Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code (Opus 5.5, Sonnet 5.5) following the guidelines
{pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.