Commit graph

9658 commits

Author SHA1 Message Date
Joona Hoikkala
56cb226bd4 Merge branch 'ocsp_apache_continued' of github.com:certbot/certbot into ocsp_apache_continued 2020-02-26 20:08:58 +02:00
Joona Hoikkala
dc255aeb4f
Fix tests and handle PluginError 2020-02-26 20:08:20 +02:00
Joona Hoikkala
b0feb33b9b
Fix the backup target path 2020-02-26 18:51:25 +02:00
Joona Hoikkala
a42cf70f71
More review comment fixes 2020-02-19 20:44:37 +02:00
Joona Hoikkala
593ed9c8c4
Update certbot/docs/using.rst
Co-Authored-By: Brad Warren <bmw@users.noreply.github.com>
2020-02-19 18:11:41 +02:00
Joona Hoikkala
d6dafb0a1b Merge branch 'ocsp_apache_continued' of github.com:certbot/certbot into ocsp_apache_continued 2020-02-19 18:07:58 +02:00
Joona Hoikkala
f192cbf12a
Address review comments 2020-02-19 18:07:30 +02:00
Joona Hoikkala
5a8032d5cc
Update certbot-apache/certbot_apache/_internal/prefetch_ocsp.py
Co-Authored-By: Brad Warren <bmw@users.noreply.github.com>
2020-02-19 18:04:30 +02:00
Joona Hoikkala
62d08e032a
Update certbot-apache/setup.py
Co-Authored-By: Brad Warren <bmw@users.noreply.github.com>
2020-02-19 17:14:51 +02:00
Joona Hoikkala
83b73aeb93
Update certbot-apache/setup.py
Co-Authored-By: Brad Warren <bmw@users.noreply.github.com>
2020-02-19 17:14:07 +02:00
Joona Hoikkala
a446e124e4
Fix tests after moving ocsp to public api 2020-02-12 17:55:10 +02:00
Joona Hoikkala
8ddc17fd2c
Merge remote-tracking branch 'origin/master' into ocsp_apache_continued 2020-02-12 17:42:41 +02:00
Brad Warren
b8856ac810
Fix unpinned tests (#7760)
Our nightly tests failed last night due to a new release of `virtualenv` and `pip`'s lack of dependency resolution: https://travis-ci.com/certbot/certbot/jobs/285797857#L280. It looks like we were not the only ones affected by this problem: https://github.com/pypa/virtualenv/issues/1551

This fixes the problem by using `-I` to skip the logic where `pip` decides a dependency is already satisfied and has it reinstall/update the packages passed to `pip` and all of their dependencies.

You can see our nightly tests passing with this change at https://github.com/certbot/certbot/runs/439231061.
2020-02-11 12:05:29 -08:00
Brad Warren
02bf7d7dfc
Print script output in case of a failure. (#7759)
These tests failed at https://travis-ci.com/certbot/certbot/jobs/285202481 but do not include any output from the script about what went wrong because the string created from `subprocess.CalledProcessError` does not include value of output.

This PR fixes that by printing these values which `pytest` will include in the output if the test fails.
2020-02-10 11:01:17 -08:00
Joona Hoikkala
e6f050dbe9
Move ocsp.py to public api (#7744)
We should move ocsp.py to public API, as an upcoming OCSP prefetching functionality in Apache plugin relies on it, and as the plugins are note released in lockstep with the Certbot core, we need to be careful when changing those APIs.

* Move ocsp.py to public api

* Fix type annotations, move to pointing to an interface and fix linting

* Add certbot.ocsp to documentation table of contents

* Modify tests to reflect the changes in ocsp.py

* Add changelog entry

* Fix notAfter mock for tests
2020-02-10 09:52:42 -08:00
Brad Warren
5607025e9b
Really remove old docs link from README (#7758) 2020-02-07 12:58:15 -08:00
Brad Warren
7cc6cf2604
Remove link to letsencrypt readthedocs (#7757)
After a brief discussion in Mattermost, I shut down letsencrypt.readthedocs.io. Turns out we were linking to it in our README here so let's remove the broken link.

I didn't update the link to point to one of the readthedocs projects we still have because are main Certbot docs are self-hosted rather than being on readthedocs.
2020-02-07 11:04:07 -08:00
Brad Warren
86a6cc53cf
Remove text that certbot.tests.utils isn't public (#7754) 2020-02-07 09:08:41 +01:00
Brad Warren
1859fb059d
Don't display todo comments in docs (#7753)
Currently if you go to https://certbot.eff.org/docs/api/certbot.crypto_util.html, there is a todo comment displayed at the top of the page. These todos were written for developers, not users, so I do not think they should be shown from our documentation.

This PR makes the quick and easy fix of configuring Sphinx not to show these todo items. I created #7752 to track removing all of these todos from our docstrings and disabling the Sphinx todo extension.

* Set todo_include_todos=False in sphinx-quickstart

* Remove todos from existing docs.
2020-02-06 15:39:47 -08:00
ohemorange
c5a2ba03da
Merge pull request #7735 from certbot/apache-parser-v2
[Apache v2] Merge apache-parser-v2 feature branch back to master
2020-02-06 15:29:28 -08:00
schoen
995e70542a
Merge pull request #7738 from osirisinferi/nginx-hostname
[nginx] Parse $hostname in `server_name`
2020-02-06 14:44:03 -08:00
OsirisInferi
4f80f8b910
Fixing existing tests 2020-02-06 21:24:25 +01:00
OsirisInferi
0e03f82733
Remove todo:: 2020-02-06 21:12:17 +01:00
OsirisInferi
5035a510a2
Add test for $hostname parsing 2020-02-06 21:10:41 +01:00
Adrien Ferrand
ef388a309f
Merge pull request #7751 from Pilifer/master
Don't verify certificate in HTTP01Response.simple_verify (certbot#6614)
2020-02-06 16:58:39 +01:00
Filip Lajszczak
c98183c998 restore CHANGELOG in root directory 2020-02-06 15:27:20 +00:00
Filip Lajszczak
2b051dd197 Merge branch 'master' of https://github.com/certbot/certbot 2020-02-06 15:14:17 +00:00
Brad Warren
7da5196206
Add triggers for only a single CI system (#7748)
* Configure travis-test to only run on Travis.

* Configure azure-test to only run on Azure.

* Add docs and comments to keep it up-to-date.
2020-02-05 23:49:01 +01:00
Brad Warren
cc764b65c1
Set recreate = true in tox.ini. (#7746)
Fixes #7745.
2020-02-05 14:37:39 -08:00
Adrien Ferrand
7b35abbcb4
Windows installer integration tests (#7724)
As discussed in #7539, we need proper tests of the Windows installer itself in order to variety that all the logic contained in a production-grade runtime of Certbot on Windows is correctly setup by each version of the installer, and so for a variety of Windows OSes. 

This PR handles this requirement. The new `windows_installer_integration_tests` module in `certbot-ci` will:
* run the given Windows installer
* check that Certbot is properly installed and working
* check that the scheduled renew task is set up
* check that the scheduled task actually launch the Certbot renew logic

The Windows nightly tests are updated accordingly, in order to have the tests run on Windows Server 2012R2, 2016 and 2019.

These tests will evolve as we add more logic on the installer. 

* Configure an integration test testing the windows installer

* Write the test module

* Configurable installer path, prepare azure pipelines

* Fix option

* Update test_main.py

* Add confirmation for this destructive test

* Use regex to validate certbot --version output

* Explicit dependency on a log output

* Use an exception to ask confirmation

* Use --allow-persistent-changes
2020-02-05 14:12:29 -08:00
Brad Warren
6601d03ce8
Merge pull request #7743 from certbot/candidate-1.2.0
Candidate 1.2.0
2020-02-05 13:48:51 -08:00
Joona Hoikkala
7e4e0d8bdd
Add user guide documentation 2020-02-05 18:20:52 +02:00
Joona Hoikkala
caf2ad2cb1
Add overview documentation of the functionality to .py 2020-02-05 17:00:08 +02:00
m0namon
1a2189f4df
Merge pull request #7729 from certbot/fix-nginx-typo
Fix a typo in Nginx
2020-02-04 17:00:13 -08:00
Erica Portnoy
6a4b610269 Bump version to 1.3.0 2020-02-04 14:01:04 -08:00
Erica Portnoy
97ae63efa6 Add contents to certbot/CHANGELOG.md for next version 2020-02-04 14:01:03 -08:00
Erica Portnoy
3907b53b4b
Release 1.2.0 2020-02-04 14:01:02 -08:00
Erica Portnoy
6c5959d892 Update changelog for 1.2.0 release 2020-02-04 13:46:57 -08:00
Joona Hoikkala
17af868f62
Update certbot-apache/certbot_apache/_internal/apache_util.py
Co-Authored-By: Brad Warren <bmw@users.noreply.github.com>
2020-02-04 22:04:01 +02:00
Joona Hoikkala
4b3dea8be6
Update certbot-apache/certbot_apache/_internal/configurator.py
Co-Authored-By: Brad Warren <bmw@users.noreply.github.com>
2020-02-04 21:58:42 +02:00
Joona Hoikkala
719142e28d
Update certbot/certbot/plugins/enhancements.py
Co-Authored-By: Brad Warren <bmw@users.noreply.github.com>
2020-02-04 21:57:56 +02:00
Joona Hoikkala
d7778b0f5e
Update certbot/certbot/crypto_util.py
Co-Authored-By: Brad Warren <bmw@users.noreply.github.com>
2020-02-04 21:56:42 +02:00
Joona Hoikkala
590d81c3ae
Update certbot/certbot/crypto_util.py
Co-Authored-By: Brad Warren <bmw@users.noreply.github.com>
2020-02-04 21:56:24 +02:00
Joona Hoikkala
6395cc2b48
Copy dbm file to work directory before writing 2020-02-04 20:13:28 +02:00
Joona Hoikkala
1ad23f9db0
Move DBM handling to a context manager 2020-02-04 13:13:04 +02:00
Joona Hoikkala
a5d739f8ff
Update certbot/certbot/_internal/ocsp.py
Co-Authored-By: Brad Warren <bmw@users.noreply.github.com>
2020-02-04 10:44:59 +02:00
Joona Hoikkala
d785f8c534
Update certbot/certbot/_internal/ocsp.py
Co-Authored-By: Brad Warren <bmw@users.noreply.github.com>
2020-02-04 10:44:25 +02:00
Joona Hoikkala
975025207f
Update certbot/certbot/_internal/ocsp.py
Co-Authored-By: Brad Warren <bmw@users.noreply.github.com>
2020-02-04 10:43:53 +02:00
Joona Hoikkala
a02b092620
Update certbot/certbot/_internal/ocsp.py
Co-Authored-By: Brad Warren <bmw@users.noreply.github.com>
2020-02-04 10:43:12 +02:00
Joona Hoikkala
fd74aba422
Address review comments 2020-02-03 22:18:52 +02:00