mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-26 03:35:52 +03:00
[PR #3103] [MERGED] Add negative tests for NSEC validation #3563
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#3563
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/3103
Author: @divergentdave
Created: 7/8/2025
Status: ✅ Merged
Merged: 7/9/2025
Merged by: @divergentdave
Base:
main← Head:david/invalid-nsec-tests📝 Commits (6)
fa756d5Change variable names for BTreeSet875d655Include RRSIG in NSEC type bit mapsa3a0bf6Extract common NSEC RR finalization to functiona32ab0cExclude non-authoritative records from NSEC chain6efe3f4Extract reusable parts of invalid NSEC3 test77ea3b1Add negative tests of NSEC validation📊 Changes
9 files changed (+957 additions, -195 deletions)
View changed files
📝
Cargo.lock(+23 -0)📝
crates/proto/src/dnssec/rdata/nsec.rs(+5 -3)📝
crates/server/src/store/in_memory/inner.rs(+39 -14)📝
tests/integration-tests/Cargo.toml(+1 -0)📝
tests/integration-tests/src/lib.rs(+67 -1)➕
tests/integration-tests/src/mock_request_handler.rs(+132 -0)📝
tests/integration-tests/tests/integration/invalid_nsec3_tests.rs(+18 -177)➕
tests/integration-tests/tests/integration/invalid_nsec_tests.rs(+671 -0)📝
tests/integration-tests/tests/integration/main.rs(+1 -0)📄 Description
This adds negative tests for NSEC validation, parallel to the existing
invalid_nsec3_testsmodule. As before, we have known issues both on the authoritative side and validation side when dealing with wildcard records. This PR also includes some easy fixes to make NSEC chains match examples from RFC 4035: including RRSIG in the type bit map, and excluding names with no authoritative records.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.