-
Notifications
You must be signed in to change notification settings - Fork 14.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not get DAG access permission after upgrade to 2.3.0 #23473
Comments
Thanks for opening your first issue here! Be sure to follow the issue template! |
|
It just a normal dag with dot in the id. Since all dags in my airflow instance are all followed by this convention: |
Gotcha. How are you trying to insert the roles/permissions? |
Actually, I wrote a trigger script at database level which assigns DAG permissions for target role based on By the way, i also added a pattern to the issue that there's DAG permissions which have wrong dag_id in theirs name. Please check again. I think Airflow tried to create dag permission but got issue with dot symbol in dag_id. |
It would have the same problem with dots, but rather than a database level trigger you could use the |
Apache Airflow version
2.3.0 (latest released)
What happened
I upgraded my airflow instance from version 2.1.3 to 2.3.0 but got issue that there are no permission for new DAGs.
The issue only happens in DAG which has dag_id contains dot symbol.
What you think should happen instead
There should be 3 new permissions for a DAG.
How to reproduce
dag.id_1
-> Could not get any permission for created DAG above.
There are 3 DAG permissions named
can_read_DAG:dag
,can_edit_DAG:dag
,can_delete_DAG:dag
There should be 3 new permissions:
can_read_DAG:dag.id_1
,can_edit_DAG:dag.id_1
,can_delete_DAG:dag.id_1
Operating System
Kubernetes
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: