mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 11:15:54 +03:00
[PR #2807] [MERGED] Additional NSEC3 tests and improvements #3339
Labels
No labels
blocked
breaking-change
bug
bug:critical
bug:tests
cleanup
compliance
compliance
compliance
crate:all
crate:client
crate:native-tls
crate:proto
crate:recursor
crate:resolver
crate:resolver
crate:rustls
crate:server
crate:util
dependencies
docs
duplicate
easy
easy
enhance
enhance
enhance
feature:dns-over-https
feature:dns-over-quic
feature:dns-over-tls
feature:dnsssec
feature:global_lb
feature:mdns
feature:tsig
features:edns
has workaround
ops
perf
platform:WASM
platform:android
platform:fuchsia
platform:linux
platform:macos
platform:windows
pull-request
question
test
tools
tools
trust
unclear
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hickory-dns#3339
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hickory-dns/hickory-dns/pull/2807
Author: @divergentdave
Created: 2/26/2025
Status: ✅ Merged
Merged: 2/28/2025
Merged by: @divergentdave
Base:
main← Head:david/nsec3-tests📝 Commits (7)
7b08733Delete old ignored/commented out tests5f77e1eAdd NXDOMAIN scenario tests56e4997Fix Display format of NSEC3 records9b629c0Remove FIXME for NSEC3 collision detection238ee70Exclude non-authoritative records from NSEC3 chain49a973aAdd support for signing Opt-Out zonesb0d4049Add tests for NSEC3 validation w/ omitted records📊 Changes
14 files changed (+965 additions, -84 deletions)
View changed files
📝
Cargo.lock(+1 -0)📝
conformance/packages/conformance-tests/src/resolver/dnssec/fixtures.rs(+2 -6)📝
conformance/packages/conformance-tests/src/resolver/dnssec/rfc4035/section_4/section_4_5.rs(+1 -1)📝
conformance/packages/conformance-tests/src/resolver/dnssec/rfc4035/section_4/section_4_6.rs(+2 -1)📝
conformance/packages/conformance-tests/src/resolver/dnssec/scenarios/secure.rs(+73 -9)📝
crates/proto/src/dnssec/rdata/nsec3.rs(+1 -1)📝
crates/server/src/authority/catalog.rs(+2 -0)📝
crates/server/src/lib.rs(+3 -0)📝
crates/server/src/store/in_memory/authority.rs(+36 -13)📝
tests/integration-tests/Cargo.toml(+1 -0)📝
tests/integration-tests/tests/integration/catalog_tests.rs(+1 -0)📝
tests/integration-tests/tests/integration/client_tests.rs(+0 -53)➕
tests/integration-tests/tests/integration/invalid_nsec3_tests.rs(+841 -0)📝
tests/integration-tests/tests/integration/main.rs(+1 -0)📄 Description
This makes the following improvements:
Two conformance tests are added to fulfill TODOs. A new set of integration tests check that NSEC3 validation fails when any one required NSEC3 record is missing. This is based on the example zone and queries from the appendixes of RFC 5155. I didn't find any NSEC3 validation issues with this, but half of the tests did not produce the correct response before omitting NSEC3 records due to three different issues.
I also cleaned up some commented-out and ignored tests that have since been made redundant, and removed a FIXME regarding NSEC3 collision detection. The probability of a collision between NSEC3 records is astronomically unlikely, so it's not necessary to implement a countermeasure like changing the salt.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.