mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 11:15:54 +03:00
[PR #2084] [MERGED] Better DNSSEC proofs #2797
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#2797
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/2084
Author: @bluejekyll
Created: 10/30/2023
Status: ✅ Merged
Merged: 3/2/2024
Merged by: @bluejekyll
Base:
main← Head:better-dnssec-proofs📝 Commits (10+)
73c9ef7Add Proof type for DNSSEC6868895Add Proof to NSEC results098611emake dnssec methods more type safed5d82a6change internal usage from set_rr_type to set_record_typed0a7b92remove with deprecation609f87aNotes on changes to dnssec proof, and unwrap RRSIG from Record9aff9d5remove unnecessary clones of rrsig in dnssec91d2746add Proof to resource::Record12ff904add a test for Secure recordsf7c3a70add in additionals for validation📊 Changes
32 files changed (+1198 additions, -645 deletions)
View changed files
📝
Cargo.lock(+2 -0)📝
Cargo.toml(+1 -0)📝
crates/proto/Cargo.toml(+3 -2)📝
crates/proto/src/error.rs(+16 -21)📝
crates/proto/src/op/edns.rs(+1 -1)📝
crates/proto/src/rr/dnssec/mod.rs(+8 -15)➕
crates/proto/src/rr/dnssec/proof.rs(+405 -0)📝
crates/proto/src/rr/dnssec/signer.rs(+23 -26)📝
crates/proto/src/rr/dnssec/tbs.rs(+11 -5)📝
crates/proto/src/rr/dnssec/verifier.rs(+1 -1)📝
crates/proto/src/rr/mod.rs(+2 -2)📝
crates/proto/src/rr/resource.rs(+132 -52)📝
crates/proto/src/rr/rr_set.rs(+17 -17)📝
crates/proto/src/serialize/txt/zone.rs(+1 -1)📝
crates/proto/src/xfer/dns_multiplexer.rs(+6 -6)📝
crates/proto/src/xfer/dns_response.rs(+7 -1)📝
crates/proto/src/xfer/dnssec_dns_handle.rs(+361 -364)📝
crates/resolver/src/async_resolver.rs(+7 -20)📝
crates/resolver/src/lookup.rs(+83 -9)📝
crates/resolver/src/lookup_ip.rs(+2 -4)...and 12 more files
📄 Description
I've taken an initial stab at cleaning up the DNSSEC validation and move to associating a Proof to each record. This differs a little bit from what was discussed in #1708 as I think this might be the best option.
This adds a
Proofenum that has theSecure,Bogus,Insecure, andIndeterminateas members.Once validated it associates that proof to the
Record, there's more cleanup here as we only supportSecurerecords being returned at the moment, and even though we can detectBogus, it's returned as anErrorright now, which I think we decided we want to move away from.I still need to add the
Insecurepath, but before I do that I wanted to see if anyone wanted to offer early feedback. Also, I want to reduce more cloning. I was able to remove quite a bit that was still there from before async/await was finalized. I think there's more yet that can be done.Fixes: #1708
Fixes: #2095
Fixes: #1650
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.