Closed zenhack closed 7 years ago
Comment by Lekensteyn Tuesday Dec 08, 2015 at 16:14 GMT
Updated patchset against latest master, added a rough separate test case as AccountKey got removed.
Comment by kuba Tuesday Dec 08, 2015 at 20:43 GMT
There are 3 parties potentially involved with the typical usage scenario:
If we assume that those three parties are different users (say nobody
, nginx
, root
), then there are some usability problems, because:
root
, so we cannot chmod
or chown
Restricting key file to 0o600
would mean that httpd is not able to read necessary files :(
I would like those kind of cases to be clearly sorted out (and by that I mean short design doc, possibly included in the repo itself) before merging.
Comment by danmilon Tuesday Dec 08, 2015 at 21:31 GMT
AFAIK apache runs as root to bind to privilaged ports and/or read the private key, and then spawns other processes as a non-privilaged user (e.g. www-data
) to do the actual request handling.
I don't know if other web servers work similarly.
Issue by Lekensteyn Saturday Dec 05, 2015 at 15:11 GMT _Originally opened as https://github.com/kuba/simp_le/pull/34_
Ensure that key files are not world-readable.
temp_umask is based on test.support.temp_umask.
Fixes #29
If older Python versions do not have to be supported, then the test code could become something like:
_Lekensteyn included the following code: https://github.com/kuba/simp_le/pull/34/commits_