mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 11:15:54 +03:00
[PR #2685] [MERGED] proto: hash lowercase names for DS and NSEC3 #3238
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#3238
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/2685
Author: @divergentdave
Created: 12/18/2024
Status: ✅ Merged
Merged: 12/18/2024
Merged by: @djc
Base:
main← Head:david/dnssec-hash-lowercase📝 Commits (2)
e5ea939proto: hash lowercase name for DS66c7ec3proto: hash lowercase name for nsec3📊 Changes
3 files changed (+40 additions, -4 deletions)
View changed files
📝
crates/proto/src/dnssec/nsec3.rs(+6 -2)📝
crates/proto/src/dnssec/rdata/dnskey.rs(+1 -0)📝
crates/proto/src/dnssec/rdata/ds.rs(+33 -2)📄 Description
This changes hash calculations for DS and NSEC3 to be over lowercase names, and adds a couple unit tests to confirm.
RFC 4034 section 5.1.4 and RFC 5155 section 5 both say that the canonical form of the name is hashed. RFC 4034 section 6.2 and RFC 5155 section 5 both say the canonical form has all ASCII uppercase letters replaced by corresponding lowercase letters.
I ran into this while working on #2683. Signature validation is fine already, see
github.com/hickory-dns/hickory-dns@ccf00381dc/crates/proto/src/dnssec/tbs.rs (L199).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.