certbot/certbot/tests
sydneyli 7d0ac47139 Change default privkey permissions while preserving group permissions (#6480)
Fixes #1473.

writes privkey.pem to 0600 by default for new lineages
on renewals where a new privkey is generated, preserves group mode and gid
Things this PR does not do:

we talked about forcing 0600 on privkeys when a Certbot upgrade is detected. Instead, this PR only creates new lineages with the more restrictive permission to prevent renewal breakages.
this doesn't solve many of the problems mentioned in #1473 that are not directly related to the title issue!

* safe_open on archive keyfiles

* keep group from current lineage

* clean up integration test

* safe_open can follow symlinks

* fix tests on windows, maybe

* Address Brad's comments

* Revert changes to safe_open
* Test chown is called when saving new key
* Reorder chown operation

* Changelog and documentation

* Fix documentation style
2018-11-29 09:33:05 -08:00
..
display properly disable no-member 2018-11-02 13:31:04 -07:00
testdata Unrevert #6000 and silence deprecation warnings (#6082) 2018-06-08 00:45:23 +03:00
__init__.py s/Let's Encrypt/Certbot 2016-04-13 16:13:50 -07:00
account_test.py [Windows] Create the CI logic (#6374) 2018-10-19 14:53:15 -07:00
acme_util.py Warn manual authenticator users not to remove/undo previous challenges (#6370) 2018-10-18 14:44:45 +03:00
auth_handler_test.py Log warning about TLS-SNI deprecation in Certbot (#6468) 2018-11-05 15:01:16 -08:00
cert_manager_test.py Clean up many warnings 2018-11-01 16:39:54 -07:00
cli_test.py [Windows] Create the CI logic (#6374) 2018-10-19 14:53:15 -07:00
client_test.py s/assertEquals/assertEqual 2018-07-11 17:33:04 -07:00
compat_test.py [Windows] Handle file renaming when the destination path already exists (#6415) 2018-11-06 15:35:09 -08:00
configuration_test.py Make Certbot runnable on Windows (#6296) 2018-09-08 07:34:27 -07:00
crypto_util_test.py [Windows] Create the CI logic (#6374) 2018-10-19 14:53:15 -07:00
eff_test.py Fix crash when email submission endpoint unavailable (#6002) 2018-05-15 12:50:47 -07:00
error_handler_test.py [Windows] Create the CI logic (#6374) 2018-10-19 14:53:15 -07:00
errors_test.py No longer mask failed challenge errors with encoding errors (#4867) 2017-07-10 21:05:52 -05:00
hook_test.py [Windows] Create the CI logic (#6374) 2018-10-19 14:53:15 -07:00
lock_test.py [Windows] Create the CI logic (#6374) 2018-10-19 14:53:15 -07:00
log_test.py Remove module-level ignore::ResourceWarnings 2018-11-05 17:28:26 -08:00
main_test.py Merge branch 'master' into warnings-are-errors 2018-11-22 03:03:43 +00:00
notify_test.py s/letsencrypt/certbot 2016-04-13 16:03:59 -07:00
ocsp_test.py warn-->warning 2018-10-31 18:11:43 -07:00
renewal_test.py #4434 Test Config Base Class (#4974) 2017-08-09 13:19:43 -07:00
renewupdater_test.py s/assertEquals/assertEqual 2018-07-11 17:33:04 -07:00
reporter_test.py Prepare certbot module for mypy check untyped defs (#6005) 2018-05-18 06:28:17 -07:00
reverter_test.py [Windows] Handle file renaming when the destination path already exists (#6415) 2018-11-06 15:35:09 -08:00
storage_test.py Change default privkey permissions while preserving group permissions (#6480) 2018-11-29 09:33:05 -08:00
util.py [Windows|Unix] Rewrite bash scripts for tests into python (#6435) 2018-11-07 17:16:16 -08:00
util_test.py Clean up many warnings 2018-11-01 16:39:54 -07:00