-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Description
Apache Airflow version
3.0.3
Related issue: #51299
If "Other Airflow 2 version" selected, which one?
No response
What happened?
Case: Custom airflow role with access to some dags.
The "Runs" and "Task Instances" submenus in the "Dags" Menu only work with "Can Read on Dags" permission which gives permission to read on all dags not just some dags. For example: when only using "can read on DAG:dag1" permission for example, the "Runs" and "Task Instances" submenus have a 403 error.
"can read on Task Instances", "menu access on Task Instances", "can read on DAG Runs", "menu access on DAG Runs" work fine when going through a selected dag.
What you think should happen instead?
"Runs" and "Task Instances" should list the runs and task instances for the dags the logged in user's roles have access for.
How to reproduce
Create a new airflow user with access to only some dags:
remove "can read on DAGs" permission and instead add "can read on DAG:X" permission where dag_id=X for your newly created role.
Then using this new role, navigate to the "Runs" and "Task Instances" submenus in the "Dags" Menu screen as shown in the screenshots above.
Operating System
Debian GNU/Linux 12 (bookworm)
Versions of Apache Airflow Providers
No response
Deployment
Official Apache Airflow Helm Chart
Deployment details
Helm Chart v 1.18.0
Anything else?
No response
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct