]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix spurious missing key files log messages rt-24694-patch
authorMatthijs Mekking <matthijs@isc.org>
Thu, 22 May 2025 09:23:48 +0000 (11:23 +0200)
committerMatthijs Mekking <matthijs@isc.org>
Thu, 22 May 2025 09:23:48 +0000 (11:23 +0200)
commit563ede23e6ff0390a2607bbee5034fead1ca31d2
tree8e1890d445153aecee0e262fd14d7205249375ae
parentfa9d0b65496e7340252b160be75f6b8a1b6ab288
Fix spurious missing key files log messages

I suspect this happens because old key is purged by one zone view,
then the other is freaking out about it.

Keys that are unused or being purged should not be taken into account.

The keyring is maintained per zone. So in one zone, a key in the
keyring is being purged. The corresponding key file is removed.

The key maintenance is done for the other zone view. The key in that
keyring is not yet set to purge, but its corresponding key file is
removed. This leads to "some keys are missing"

I think we should not check the purge variable at this point, but the
current time and purge-keys duration. That is what this commit does.
lib/dns/include/dns/keymgr.h
lib/dns/keymgr.c
lib/dns/zone.c