Create config file with group/world permissions revoked - #1028
Conversation
|
I run my entire system with 077 and fully agree with this change. The patch looks good and appears to work fine, but will it cause any issues on Windows? |
Posix |
|
Thanks for the patch! Tested on windows:
I can't find information on python's os.umask, but testing results and this commit https://git.lclutz.de/ghstars/certbot-certbot/commit/50fa04ba0cb739eb0eafec2286cb08d9caae1b16 leads me to believe it's stubbed out on windows... |
|
More direct test: Also cpython tests don't assert modified persmissions on windows https://github.com/python/cpython/blob/bb3e0c240bc60fe08d332ff5955d54197f79751c/Lib/test/test_os.py#L1582 @juergenhoetzel please add a simple comment that it's a noop on windows and let's merge, to improve it on other platforms. |
The config file contains sensible information (user/password). Also remove unused import.
0af6ca6 to
166f661
Compare
Thank you for your research. I just amended the commit and added your suggestion. |
|
Merged, thanks! |

The config file contains sensible information (user/password).
Also remove unused import.