This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Failed to manage per-DAG permission in clearing DAG run #25560
Labels
You can continue the conversation there. Go to discussion →
Apache Airflow version
Other Airflow 2 version
What happened
I am using Airflow 2.2.4 and I am trying to achieve per-DAG permissions. I want to give a role permissions to clear some DAG's status on the UI (so that they can re-run a task). According to https://airflow.apache.org/docs/apache-airflow/stable/security/access-control.html#dag-level-role, "Clear DAG run" requires "DAGs.can_edit, Task Instances.can_delete", but when I gave the role permissions to
can edit on DAG:xxx, can delete on Task Instances
, it can clear DAG runs on all DAGs. I am wondering if it's a bug, or if there is some other ways to achieve this. Thanks!What you think should happen instead
When I gave the role permissions to
can edit on DAG:xxx, can delete on Task Instances
, the role can clear the task status on DAG xxx, but it can't clear status on any other DAGs.How to reproduce
On an existing Airflow service,
TestClearRole
with permissions,can edit on DAG:DagToTest, can delete on Task Instances
DagWithoutPermission
. The user should have permissions to clear its status. But I think the right behavior should be the user can not.Operating System
Airflow UI
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?
Code of Conduct
The text was updated successfully, but these errors were encountered: