sjyangkevin commented on issue #49651:
URL: https://github.com/apache/airflow/issues/49651#issuecomment-2942724471

   Just wanted to head up for a small updates. I have limited bandwidth, sorry 
for the slow progress.
   
   When an non-exist role is used to set access control. The following error 
logs appear in the DAG Processor.
   
![Image](https://github.com/user-attachments/assets/e5b28ba8-e0b0-42ce-a84a-be51b9c0f9a6)
   
   I am currently looking at the following code.
   
   
`airflow/providers/fab/src/airflow/providers/fab/auth_manager/security_manager/override.py`
   `airflow/airflow-core/src/airflow/dag_processing/collection.py`
   
   Similarly when running `airflow sync-perm --include-dags -v`.
   
   
![Image](https://github.com/user-attachments/assets/ff7e9e6e-6097-478e-9b04-70039c7e6f2d)
   
   I feel like the import error is raised when setting the invalid access 
control and resulting in an failure to serialize the DAG. The import error is 
caused by the DAG Serialization. However, I feel like there is something in the 
code that invalidates that erroring access control. So, if the DAG is not 
serialized again, the import error will not show, even the access control code 
is still in DAG. Therefore, I did a try. Update the dag by creating a dummy 
empty operator. It causes the processor to serialize DAG again, and the import 
error show up again.
   
   I will continually look into it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to