I am struggling to set up DAG level access control in Airflow 2.1.0. The aim is to let user see and control a single DAG and its runs, but nothing else. Trying to follow docs on access control and barely documented access_control parameter of DAG I'm setting up a minimal scenario:
- Role
my_rolewithcan read on Website - User
my_userwith rolemy_role - DAG
my_dagwithDAG(..., access_control: {'my_role': ['can_read', 'can_edit']})
This partially works. I can log in as my_user and see only my_dag in the list of DAGs. I cannot however view the DAG clicking on it, trigger it or view its runs. I tried to add extra global permissions like read on DAG Runs / Task Instances, but didn't help. The only thing that worked is being able to trigger the DAG with global create on DAG Runs permission (I'm not sure if I'm able to trigger any DAG now just by issuing proper request, didn't check).
So is this possible to achieve? Am I missing something maybe?