Skip to content

UI - "Runs" and "Task Instances" submenus in the "Dags" Menu only work with "Can Read on Dags" permission #53936

@devgonvarun

Description

@devgonvarun

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.

Image

"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.

Image

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

Metadata

Metadata

Assignees

Labels

affected_version:3.0Issues Reported for 3.0area:UIRelated to UI/UX. For Frontend Developers.area:autharea:corekind:bugThis is a clearly a bugneeds-triagelabel for new issues that we didn't triage yetpriority:highHigh priority bug that should be patched quickly but does not require immediate new release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions