-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Description
Apache Airflow version
3.0.3
If "Other Airflow 2 version" selected, which one?
No response
What happened?
Case: Custom airflow role with access to only some dags.
The "Home" screen shows the Stats and History for all dags running on the airflow instance which includes the dags that the logged in user does even not have access to.
For example: here i see 6 Dag runs but this airflow user role just has access to 2 of those dag runs as the other dags runs are from dags that this user does not have permissions to view.
If this screen is only intended for users who need insights for the entire instance then a permission like "menu access on Home" should exist.
What you think should happen instead?
The Home screen should show information only for the dags that the logged in user role has access for. And/Or a permission like "menu access on Home" should exist.
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 to limit dag access.
Then using this new role, navigate to "Home" screen.
Operating System
Debian GNU/Linux 12 (bookworm)
Versions of Apache Airflow Providers
No response
Deployment
Official Apache Airflow Helm Chart
Deployment details
No response
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