Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Too wide permissions for /tmp/luigi #3253

Open
b-x opened this issue Sep 25, 2023 · 0 comments
Open

Too wide permissions for /tmp/luigi #3253

b-x opened this issue Sep 25, 2023 · 0 comments

Comments

@b-x
Copy link

b-x commented Sep 25, 2023

Luigi calls chmod with 0o777 for pid_dir and pid files which is very bad for security reasons.

In my opinion the proper use case for the locking mechanism should be:
a) set different lock_pid_dir config option for different users
b) make all worker processes run in the same unix group to enable sharing the same pid_dir

So I recommend changing permissions to 770 for dir and 660 for pid files (or at most 775/664).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant