-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
chmod temp files using umask from ServerOptions #1075
base: main
Are you sure you want to change the base?
Conversation
Please give us more to work with here. What was the motivation for this change, did you find a problem that this is intended to fix, etc.? |
lgtm |
Hi @mnaberez I'm not the author, but I am also interested in this getting merged. :-) My use case is that I have separate processes, running as a user other than the one I run supervisor as, which reviews the supervisor per-job log files for specific errors, etc. Without this patch, by default supervisor creates the files via Is there anywhere I could provide a description for this patch that would let it get reviewed for merge? Thanks! cc @ericatkin --Michael |
Sorry to bump, but: anything I can do to help facilitate this getting reviewed and merged? :-) --Michael |
So, this isn't really a feature change, it's a bugfix. What I mean is, a use case doesn't seem needful as the use case is to create log files as documented. This change fixes the bug described in issue #123 that caused the behavior to not match the documentation. |
Thanks for adding some background on this change. Could you please point to the specific page(s) in the documentation that are inconsistent? |
So, looking at http://supervisord.org/logging.html#child-process-logs, it says:
There's nothing in there explicitly about permissions the files will be created with, but it seems reasonable to assume that the umask for the process would be used here, as it is elsewhere for other files that are created? This was suggested in the original issue at #123 (comment), if nothing else. :-) And, as we can see from a running system, that isn't what happens, because
This is because Python's
|
@ericatkin We will probably have another point release soon. Independent of this PR or #123, we can immediately fix the incorrect documentation you mentioned. I had a look and didn't find it, but there's a lot of docs so I probably just missed it. It would be great if you could point out the pages that are inconsistent and we can correct them as a first step. Thanks. |
@mnaberez I didn't review this issue when I created the comment referring to incorrect documentation. It appears I was wrong about that. I also can't find any documentation that explicitly states log files will be created with permissions derived from the process umask. That said, it seems to me like a reasonable assumption from the language on the umask documentation as well as the behavior of many other CLI utilities. This PR make it behave according to that assumption. I think not creating files with the process umask is the surprising bit. Either this PR (or a similar change) should be merged, or the documentation updated to describe the exceptional behavior. I of course am in favor of the first option :) |
Doing our regular AMI rebuild, so checking in on if this can be merged and released? 🙏🏻 |
As a random person on the internet, I can attest that I tried out this change locally and fixed #123 for me. Any reason to wait further on merging it in? Is it a documentation issue at this point? |
See issue #123