certbot/certbot-dns-google
Lorenzo Fundaró 1146f35519
Fix TTL mismatch leading to HTTP 412 (#8549)
* Fix TTL mismatch leading to HTTP 412

This PR is a follow up from #8521 where we address the
issue of potentially having a mismatch of TTL when executing
a DNS change (transaction = deletion + additions). Let's say
we have a record `foo.org 30 IN TXT foo-content` with TTL 30s,
when creating challenge or cleaning we might need to perform
a deletion operation in the transaction. Currently certbot
would ask Google API to delete the foo record like this:
`foo.org 60 in TXT foo-content` ignoring the record's original
TTL and using 60s instead. This leads to HTTP 412 as Google would
expect a perfect match of what we want to delete with what it is
on the DNS. See also #8523

* remove ttl from default data to avoid confusions

* Refactor tests and add a missing case

This commit adds a test that covers the case when we are
deleting a TXT record which contains a single rrdatas. Also,
refactoring a couple of tests.

* Make get_existing_txt_rrset documentation more precise about return value

* Add missing assertions in tests.

* fix linting issues

* Mention fix on changelog

* Explain fix around user impact

* Explain what happens when no records are returned

* Update certbot/CHANGELOG.md

* Update certbot/CHANGELOG.md
2020-12-21 17:17:29 +11:00
..
certbot_dns_google Fix TTL mismatch leading to HTTP 412 (#8549) 2020-12-21 17:17:29 +11:00
docs Convert http links to https (#8287) 2020-09-23 19:36:55 +02:00
tests Fix TTL mismatch leading to HTTP 412 (#8549) 2020-12-21 17:17:29 +11:00
LICENSE.txt Google Cloud DNS Authenticator (#4581) 2017-05-17 11:26:26 -07:00
local-oldest-requirements.txt Release 1.1.0 2020-01-14 10:52:03 -08:00
MANIFEST.in Refactor tests out of packaged module for dns plugins (#7599) 2019-11-26 15:25:28 -08:00
README.rst Google Cloud DNS Authenticator (#4581) 2017-05-17 11:26:26 -07:00
readthedocs.org.requirements.txt Refactor certbot/ and certbot/tests/ to use the same structure as the other packages (#7544) 2019-11-25 14:28:05 -08:00
setup.cfg Google Cloud DNS Authenticator (#4581) 2017-05-17 11:26:26 -07:00
setup.py Bump version to 1.11.0 2020-12-01 10:35:58 -08:00

Google Cloud DNS Authenticator plugin for Certbot