mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 03:05:51 +03:00
[GH-ISSUE #2812] Change semantics of Proof for empty DS RRsets #1065
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#1065
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?
Originally created by @divergentdave on GitHub (Feb 27, 2025).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/2812
Describe the bug
verify_nsec()andnsec3_validation::validate_nodata_response()each have a special case to returnProof::Insecureinstead ofProof::Securewhen they authenticate that a DS RRset is empty. Bothverify_dnskey_rrset()andfind_ds_records()expect this, and use?to propagate the encapsulatingProofError, so that any responses in unsigned child zones correctly get treated as insecure, not bogus. However, this design wrinkle leaks out when handling queries for DS records, since users ofDnssecClientalso see thisProof::Insecure.To Reproduce
See integration test
invalid_nsec3_tests::ds_child_zone_no_data_error.Expected behavior
We should defer this special handling for empty DS RRsets, and return
Proof::Securefor the DS query itself if it is successfully validated. This would also mean that we could consolidate all cases that result inProof::Insecurein one place. (secure empty DS RRset, secure non-empty DS RRset with no supported signature/digest algorithms, or insecure parent zone)Version:
Crate: hickory-proto
Version: main
Additional context
See #2807.