mik-laj commented on issue #14597:
URL: https://github.com/apache/airflow/issues/14597#issuecomment-791788892


   > Nothing against that, but it's already very easy for any DAG author to 
expose any connections secret by simply putting in the DAG
   
   It is not good practice for top-level code to execute SQL queries.In the 
community, we even have tests that detect such problems. 
   
https://github.com/apache/airflow/blob/4589375d8bab826b7bf28606c8735057ac8b3cf2/tests/always/test_example_dags.py#L46-L61
   I also recommend similar tests for my users. 
   
   I also planned to add the ability to detect similar situations to the 
webserver so that every user would see the warnings that recommend changing the 
DAG.
   https://github.com/apache/airflow/pull/11960


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

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


Reply via email to