]> git.ipfire.org Git - thirdparty/bind9.git/commit
Make keymgr state machine more robust
authorMatthijs Mekking <matthijs@isc.org>
Thu, 31 Jul 2025 12:30:20 +0000 (14:30 +0200)
committerMatthijs Mekking <matthijs@isc.org>
Fri, 5 Dec 2025 11:14:14 +0000 (12:14 +0100)
commitb19871f8a23f83ed004d86690cb8de39794e0931
tree6fa49d47273570ecfc855c82a79075661de522e7
parent149ca5d46a96fbe289ba4b7c0e80e9dc6e9c39e9
Make keymgr state machine more robust

If the keymgr state machine is in an invalid state, it tries to move
it self to a valid state. But when you do key rollovers during an
invalid state, and the next state is also an invalid state, the keymgr
will happily do the transition.

It would be good to not do key rollovers if there is not a KSK and ZSK
fully omnipresent. But also it would be good to safeguard against
unexpected transitions.

This commit does that by not moving things to unretentive (which is
the state where we would remove the corresponding record from the zone)
if the state machine is currently in an invalid state.
lib/dns/keymgr.c