mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 11:15:54 +03:00
[GH-ISSUE #2811] RRSIG verification failure #1064
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#1064
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/2811
Describe the bug
Two tests in #2807 had to be ignored because the signature over one particular NSEC3 record cannot be verified. This is a repeatable issue. It's possible the NSEC3 or RRSIG record may be mutated between signing, server, client, and verification. It's also possible we may be constructing the to-be-signed data incorrectly during either signing or verification.
To Reproduce
Run
invalid_nsec3_tests::wildcard_expansionorinvalid_nsec3_tests::wildcard_no_data_errorintegration tests.Expected behavior
This signature should verify, and the responses with wildcard expansion should be validated successfully.
Version:
Crate: hickory-proto
Version: see PR
Additional context
N/A
@divergentdave commented on GitHub (Mar 24, 2025):
This is happening because the name server includes one NSEC3 record twice when responding to this query. As a result, the reconstructed TBS data doesn't match for this RRset. The
q04jkcevqvmu85r014c7dkba38o0ji5r.example.record serves double duty as the covering record for the next closer name, and the covering record for the wildcard name at the closest encloser. Thus, we'll need to deduplicate inget_nsec3_records().@divergentdave commented on GitHub (Apr 25, 2025):
This was fixed in #2885. The tests are now failing for different reasons, one of them due to #2882, and one due to #2949.