Skip to content

UI - Home screen does not filter based on logged in user's role's access to dags #53938

@devgonvarun

Description

@devgonvarun

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.

Image

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

Metadata

Metadata

Assignees

Labels

affected_version:3.0Issues Reported for 3.0area:UIRelated to UI/UX. For Frontend Developers.area:corekind:bugThis is a clearly a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions