Benjamin Neff
1390c96e65
handle permission denied during cleanup
...
if the .well-known/acme-challenge was created before and the user has no
permissions to delete it, it failed at cleanup.
2016-03-16 14:52:51 +01:00
Roy Wellington Ⅳ
edf6d2db24
Make these print statements Python 3 compatible.
2016-02-26 22:02:16 -08:00
Filip Ochnik
0554163ff9
Additional tests for webroot cleanup
2016-02-17 17:21:25 +08:00
Filip Ochnik
69e1c62859
Add test for cleaning up acme-challenge
2016-02-16 20:33:22 +08:00
Filip Ochnik
b89d383ff4
Add tests for missing paths in webroot plugin
2016-01-15 11:38:21 +07:00
Peter Eckersley
f5cf58f42e
with .. open .. as # definitely nicer
2015-12-22 15:42:53 -08:00
Peter Eckersley
e41339cda8
Keep lint happy
...
(But what about py3?)
2015-12-21 20:01:28 -08:00
Peter Eckersley
aa6bf73d4a
Only test permission failures if we're not root
...
or, more generally, if we're on a system where permissions are being enforced
Closes : #1979
2015-12-21 19:58:07 -08:00
Brad Warren
1a7dd76288
Added test coverage
2015-12-11 19:31:50 -08:00
Brad Warren
74927613e9
Fixed lint issues
2015-12-11 18:03:52 -08:00
Luca Beltrame
edf3a4ed73
Make webroot usable also when running as non-root (GH #1795 )
...
Thanks to @aburch's suggestions, the logic has been changed:
- Set umask before creating folders and files
- Leverage os.makedirs' mode option in conjunction with umask
The program still tries to change owner / group, but in case of errors
it continues gracefully.
Tests have been updated, and they pass.
2015-12-07 10:49:24 +01:00
Peter Eckersley
02d93e995a
lint
2015-12-01 19:24:14 -08:00
Luca Beltrame
2a5f539d9a
Add tests for testing gid and uid with the webroot plugin
...
They pass.
2015-11-25 14:26:51 +01:00
Luca Beltrame
c7c1808ad1
Add unit tests for webroot permissions handling
...
Tested, pass.
2015-11-24 10:15:18 +01:00
Luca Beltrame
768c7cd9c0
Fix webroot permissions
...
Take them from the parent directory where the webroot is.Should fix issue #1389
2015-11-22 15:16:50 +01:00
Peter Eckersley
a3b0588cea
lintmonster
2015-11-21 11:50:13 -08:00
Peter Eckersley
544fe8d708
Fix webroot tests
2015-11-21 11:23:53 -08:00
Jakub Warmuz
e62490c051
http-01 for webroot
2015-11-01 11:01:22 +00:00
Jakub Warmuz
63c080b05f
--webroot-root -> --webroot-path
2015-10-04 09:30:39 +00:00
Jakub Warmuz
d88455a1b9
Rename simplefs to webroot
2015-10-04 09:30:39 +00:00