]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix bug introduced by #763 related to offline keys
authorMatthijs Mekking <matthijs@isc.org>
Tue, 7 Dec 2021 12:59:42 +0000 (13:59 +0100)
committerMatthijs Mekking <matthijs@isc.org>
Thu, 6 Jan 2022 08:32:32 +0000 (09:32 +0100)
commitbeeefe35c4a05bb69e9730190039fdf3e9fea1ba
treee4633c31f2ca9ec2969cc68bf39df23cc0e4c742
parent2d2858841a8a749792f50ff077d03cf50f730981
Fix bug introduced by #763 related to offline keys

In some cases we want to keep expired signatures. For example, if the
KSK is offline, we don't want to fall back to signing with the ZSK.
We could remove the signatures, but in any case we end up with a broken
zone.

The change made for GL #763 prevented the behavior to sign the DNSKEY
RRset with the ZSK if the KSK was offline (and signatures were expired).

The change causes the definition of "having both keys": if one key is
offline, we still consider having both keys, so we don't fallback
signing with the ZSK if KSK is offline.

That change also works the other way, if the ZSK is offline, we don't
fallback signing with the KSK.

This commit fixes that, so we only fallback signing zone RRsets with
the KSK, not signing key RRsets with the ZSK.
lib/dns/update.c
lib/dns/zone.c