mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 03:05:51 +03:00
[PR #2213] [MERGED] DnssecDnsHandle: check RRSIG validity as per RFC4035 #2883
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#2883
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/2213
Author: @japaric
Created: 5/15/2024
Status: ✅ Merged
Merged: 7/1/2024
Merged by: @djc
Base:
main← Head:ja-gh2209📝 Commits (3)
7e60b54refactorRrsetinto its own modulebd4d764use RecordRef to simplify dnssec_dns_handlef52e5f8check RRSIG validity📊 Changes
3 files changed (+245 additions, -113 deletions)
View changed files
📝
crates/proto/src/rr/resource.rs(+16 -0)📝
crates/proto/src/xfer/dnssec_dns_handle.rs(+225 -105)📝
crates/server/tests/authority_battery/dnssec.rs(+4 -8)📄 Description
this PR adds the validity checks specified in section 5.3.1 of RFC4035, including the time check that was reported as missing in issue #2209
these new checks overlap with some of the existing ones but I opted for not removing the existing ones because I do not know how well the existing code is covered by tests.
I checked that I did not break this query:
It would be good to check that expired signatures are rejected. There are plans to add those kind of tests to the conformance test suite (https://github.com/ferrous-systems/dnssec-tests/issues/61) but given that
Recursordoes not useDnssecDnsHandlethose tests won't exercise the code paths added here. I'm looking into reusing some of the existing code inDnssecDnsHandleto implement DNSSEC validation inRecursor(then conformance tests will cover some ofDnssecDnsHandlecode) but that's still ways off time-wise.Another way to check the code here end to end would be to modify
util/src/bin/resolve.rsto do DNSSEC validation (e.g. via a new CLI flag) then it would behave just likedelv. That updatedresolvecould be comparatively againstdelvusing thedns-testframework, that is without relying on external services / the internet.I'm leaving this in draft state because the implementation will be cleaner when #2211 is implemented.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.