bind9/lib
Mark Andrews 2db5a2539a dnssec: do not publish CDS records when -Psync is in the future
This is a bug I encountered when trying to schedule an algorithm
rollover. My plan, for a zone whose maximum TTL is 48h, was to sign
with the new algorithm and schedule a change of CDS records for more
than 48 hours in the future, roughly like this:

    $ dnssec-keygen -a 13 -fk -Psync now+50h $zone
    $ dnssec-keygen -a 13 $zone
    $ dnssec-settime -Dsync now+50h $zone_ksk_old

However the algorithm 13 CDS was published immediately, which could
have made the zone bogus.

To reveal the bug using the `smartsign` test, this change just adds a
KSK with all its times in the future, so it should not affect the
existing checks at all. But the final check (that there are no CDS or
CDSNSKEY records after -Dsync) fails with the old `syncpublish()`
logic, because the future key's sync records appear early. With the
new `syncpublish()` logic the future key does not affect the test, as
expected, and it now passes.

(cherry picked from commit 4227b7969b)
2020-01-21 23:04:16 +00:00
..
bind9 prep 9.14.8 2019-11-06 21:29:08 +00:00
dns dnssec: do not publish CDS records when -Psync is in the future 2020-01-21 23:04:16 +00:00
irs Make VS solution upgrading unnecessary 2019-09-27 09:16:02 +02:00
isc prep 9.14.9 2019-12-12 06:09:19 +00:00
isccc Make VS solution upgrading unnecessary 2019-09-27 09:16:02 +02:00
isccfg Change the (acl)->node_count macro to dns_acl_node_count(acl) macro to clean the global namespace 2019-12-18 11:11:31 +11:00
ns Bind to random port numbers in unit tests 2020-01-09 10:44:28 +01:00
samples Replace RUNTIME_CHECK(dns_name_copy(..., NULL)) with dns_name_copynf() 2019-10-04 14:08:26 +10:00
win32/bindevt Make VS solution upgrading unnecessary 2019-09-27 09:16:02 +02:00
.gitignore added gitignore, removed cvsignore 2012-03-03 23:10:05 -08:00
Kyuafile link in lib/isccc/tests/Kyuafile 2018-11-13 07:23:36 +11:00
Makefile.in remove lib/tests as nothing uses it anymore 2018-03-09 14:12:50 -08:00