]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
dnssec: rrsig-refresh: warn if too low
authorLibor Peltan <libor.peltan@nic.cz>
Fri, 10 Dec 2021 15:20:15 +0000 (16:20 +0100)
committerLibor Peltan <libor.peltan@nic.cz>
Fri, 10 Dec 2021 15:20:15 +0000 (16:20 +0100)
src/knot/dnssec/zone-events.c

index ab2ca836fa2ac1f48e2b78f53034b59418675a8f..8811099c958c0178d9b3c9f38dea130bbaca3736 100644 (file)
@@ -137,6 +137,10 @@ int knot_dnssec_zone_sign(zone_update_t *update,
        // update policy based on the zone content
        update_policy_from_zone(ctx.policy, update->new_cont);
 
+       if (ctx.policy->rrsig_refresh_before < ctx.policy->zone_maximal_ttl + ctx.policy->propagation_delay) {
+               log_zone_warning(zone_name, "DNSSEC, rrsig-refresh too low to prevent expired RRSIGs in resolver caches");
+       }
+
        // perform key rollover if needed
        result = knot_dnssec_key_rollover(&ctx, roll_flags, reschedule);
        if (result != KNOT_EOK) {