Skip to content

'run_as_user' failed to run in controlled environment #8062

@rabsr

Description

@rabsr

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind:bugThis is a clearly a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions