]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
iterate: fix NSEC3 records missing from answer in an edge case docs-develop-nsec-3srvyj/deployments/4211
authorVladimír Čunát <vladimir.cunat@nic.cz>
Wed, 29 May 2024 13:07:46 +0000 (15:07 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Wed, 29 May 2024 13:13:49 +0000 (15:13 +0200)
commit9f82dd096a47f5c8ce6f8158a2892a139083fc8a
treea215d56fe9bf2dce614c5b77c9136b98e38c0e11
parentccf7d686ed226aeb678e8e390f0be1c865eec31e
iterate: fix NSEC3 records missing from answer in an edge case

When positive wildcard expansion happens, NSEC(3) records are needed
to prove that the expansion was allowed.  If the NSEC3 had too many
iterations, we downgrade the answer to insecure status, but
unintentionally we also dropped the NSEC3 record from the answer.

That was breaking DNSSEC validation of that answer, e.g. when
forwarding to Knot Resolver.  The validator needs the NSEC3 -
either to validate the expansion or to determine that it's too expensive.
NEWS
lib/layer/iterate.c