Apache Airflow version:
1.10.9
What happened:
The task run command fails as temp config file generated does not have read permission for user when run_as_user argument is used. The file does not have permission as the environment does not have sudo privileges to change owner.
What you expected to happen:
The temp config file generated can have '644' or '640' permissions to allow users read file in case when change owner is not permitted.
How to reproduce it:
Schedule a task with 'run_as_user' enabled and have sudo privileges restricted to change owner.