-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make permissions for FileTaskHandler group-writeable and configurable (…
…#29506) File Task Handler should apply different permissions to log files generated by Airflow in order to handle impersonation. This change exposes mechanism to bettet control the extend of permissions granted depending on individual preferences of the users. Default permissions are set to "group-writeable" allowing for impersonation use case, but it can be more relaxed or more limited by configuration.
- Loading branch information
Showing
5 changed files
with
80 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Default permissions of file task handler log directories and files has been changed to "owner + group" writeable. | ||
|
||
Default setting handles case where impersonation is needed and both users (airflow and the impersonated user) | ||
have the same group set as main group. Previously the default was also other-writeable and the user might choose | ||
to use the other-writeable setting if they wish by configuring ``file_task_handler_new_folder_permissions`` | ||
and ``file_task_handler_new_file_permissions`` in ``logging`` section. |