certbot/certbot-nginx/tests
alexzorin fab9bfd878
nginx: authenticate all matching vhosts for HTTP01 (#8663)
* nginx: authenticate all matching vhosts for HTTP01

Previously, the nginx authenticator would set up the HTTP-01 challenge
response on a single HTTP vhost which matched the challenge domain.

The nginx authenticator will now set the challenge response on every
vhost which matches the challenge domain, including duplicates and HTTPS
vhosts.

This makes the authenticator usable behind a CDN where all origin
traffic is performed over HTTPS and also makes the authenticator work
more reliably against "invalid" nginx configurations, such as those
where there are duplicate vhosts.

* some typos

* dont authenticate the same vhost twice

One vhost may appear in both the HTTP and HTTPS vhost lists. Use a set()
to avoid trying to mod the same vhost twice.

* fix type annotations

* rewrite changelog entry
2021-02-26 13:43:22 -08:00
..
testdata/etc_nginx nginx: authenticate all matching vhosts for HTTP01 (#8663) 2021-02-26 13:43:22 -08:00
boulder-integration.conf.sh Remove tls sni in nginx plugin (#6857) 2019-03-18 10:22:19 -07:00
configurator_test.py nginx: authenticate all matching vhosts for HTTP01 (#8663) 2021-02-26 13:43:22 -08:00
display_ops_test.py Reorganize imports (#7616) 2019-12-09 15:50:20 -05:00
http_01_test.py nginx: authenticate all matching vhosts for HTTP01 (#8663) 2021-02-26 13:43:22 -08:00
nginxparser_test.py Reorganize imports (#7616) 2019-12-09 15:50:20 -05:00
obj_test.py Use better asserts. Added notes to style guide. (#8451) 2020-11-12 23:33:02 +01:00
parser_obj_test.py Do not require mock in Python 3 in nginx module (#7898) 2020-04-15 11:39:44 -07:00
parser_test.py nginx: authenticate all matching vhosts for HTTP01 (#8663) 2021-02-26 13:43:22 -08:00
test_util.py Removed backport of unittest.assertLogs (#8673) 2021-02-22 09:34:56 +11:00