bind9/bin/tests/system/dnssec/ns2
Matthijs Mekking 4dee3d149c Add test for ZSK rollover while KSK offline
This commit adds a lengthy test where the ZSK is rolled but the
KSK is offline (except for when the DNSKEY RRset is changed).  The
specific scenario has the `dnskey-kskonly` configuration option set
meaning the DNSKEY RRset should only be signed with the KSK.

A new zone `updatecheck-kskonly.secure` is added to test against,
that can be dynamically updated, and that can be controlled with rndc
to load the DNSSEC keys.

There are some pre-checks for this test to make sure everything is
fine before the ZSK roll, after the new ZSK is published, and after
the old ZSK is deleted.  Note there are actually two ZSK rolls in
quick succession.

When the latest added ZSK becomes active and its predecessor becomes
inactive, the KSK is offline.  However, the DNSKEY RRset did not
change and it has a good signature that is valid for long enough.
The expected behavior is that the DNSKEY RRset stays signed with
the KSK only (signature does not need to change).  However, the
test will fail because after reconfiguring the keys for the zone,
it wants to add re-sign tasks for the new active keys (in sign_apex).
Because the KSK is offline, named determines that the only other
active key, the latest ZSK, will be used to resign the DNSKEY RRset,
in addition to keeping the RRSIG of the KSK.

The question is: Why do we need to resign the DNSKEY RRset
immediately when a new key becomes active?  This is not required,
only once the next resign task is triggered the new active key
should replace signatures that are in need of refreshing.

(cherry picked from commit 8bc10bcf59)
2019-04-12 11:33:06 +02:00
..
algroll.db.in Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 13:17:46 +02:00
badparam.db.in Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 13:17:46 +02:00
cdnskey-auto.secure.db.in Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
cdnskey-kskonly.secure.db.in Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
cdnskey-update.secure.db.in Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
cdnskey.secure.db.in Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
cds-auto.secure.db.in Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
cds-kskonly.secure.db.in Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
cds-update.secure.db.in Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
cds.secure.db.in Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
child.nsec3.example.db Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 13:17:46 +02:00
child.optout.example.db Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 13:17:46 +02:00
corp.db add a system test 2018-08-14 13:28:02 -07:00
dlv.db.in Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 13:17:46 +02:00
dst.example.db.in Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 13:17:46 +02:00
example.db.in Add dnssec-signzone tests with unsupported alg 2018-12-19 12:54:31 +01:00
in-addr.arpa.db.in Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
insecure.secure.example.db Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
named.conf.in Add test for ZSK rollover while KSK offline 2019-04-12 11:33:06 +02:00
private.secure.example.db.in Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 13:17:46 +02:00
rfc2335.example.db 1625. [bug] named failed to load/transfer RFC2535 signed zones 2004-05-05 01:32:58 +00:00
sign.sh Add test for ZSK rollover while KSK offline 2019-04-12 11:33:06 +02:00
single-nsec3.db.in Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 13:17:46 +02:00
template.secure.db.in Add test for ZSK rollover while KSK offline 2019-04-12 11:33:06 +02:00