mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 03:05:51 +03:00
[PR #2763] [MERGED] DNSSEC validation cleanup #3295
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#3295
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/2763
Author: @divergentdave
Created: 2/10/2025
Status: ✅ Merged
Merged: 2/11/2025
Merged by: @divergentdave
Base:
main← Head:david/dnssec-validation-cleanup📝 Commits (3)
5277c7eRemove dead codef5cdad0Replace uses of Indeterminate with Bogus74d58f4Don't check if all DNSKEYs use unsupported algorithms📊 Changes
1 file changed (+25 additions, -77 deletions)
View changed files
📝
crates/proto/src/dnssec/dnssec_dns_handle/mod.rs(+25 -77)📄 Description
This cleans up the DNSSEC validation logic after recent fixes.
The first commit removes dead code in three places. These branches are never taken because an
Rrsetis never empty, andfind_ds_records()never returnsOkwith an empty vector.The second commit replaces all remaining uses of
Proof::IndeterminatewithProof::Bogus. I don't fully understand the RFC 4035 definition of Indeterminate, but the RFC 4033 definition says "There is no trust anchor that woud indicate that a specific portion of the tree is secure. This is the default operation mode." These days, the root zone is signed, so islands of security are much less common. Hickory DNS only has support for specifying a trust anchor for the root zone, so we shouldn't be using this status when operating in a validating mode. This has no impact onverify_dnskey_rrset()which was only checkingis_secure()on the proofs. This may change the behavior ofverify_default_rrset()if all DNSKEY lookups return an error.The third commit removes logic checking whether all DNSKEY records use unsupported signature algorithms. We separately check if all DS records use unsupported signature algorithms, and only the DS records are authenticated at this point. Thus, looking at the DNSKEY RRset is redundant and not sound.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.