mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 19:25:56 +03:00
[PR #3437] [MERGED] remove SIG(0) message authentication #3840
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#3840
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/3437
Author: @cpu
Created: 1/14/2026
Status: ✅ Merged
Merged: 1/21/2026
Merged by: @cpu
Base:
main← Head:cpu-sig0-update-rm_dev📝 Commits (4)
dd5b5f2server: add RFC 8945 comment for TSIG key filtering144a73aconvert SIG(0) tests to use TSIG, DNSSECd21b155remove SIG(0) message authentication6236a07rework SigSigner to focus only on DNSSEC case📊 Changes
37 files changed (+253 additions, -966 deletions)
View changed files
📝
bin/src/config/tests.rs(+0 -11)📝
bin/src/dnssec.rs(+11 -55)📝
bin/tests/integration/named_metrics_tests.rs(+9 -11)📝
bin/tests/integration/zone_handler_battery/dnssec.rs(+5 -9)📝
bin/tests/integration/zone_handler_battery/dynamic_update.rs(+47 -99)📝
conformance/dns-test/src/templates/hickory.name-server.toml.jinja(+0 -1)📝
crates/proto/src/dnssec/mod.rs(+1 -1)📝
crates/proto/src/dnssec/rdata/key.rs(+0 -37)📝
crates/proto/src/dnssec/rdata/rrsig.rs(+2 -2)📝
crates/proto/src/dnssec/rdata/sig.rs(+2 -2)📝
crates/proto/src/dnssec/rdata/tsig.rs(+3 -3)📝
crates/proto/src/dnssec/signer.rs(+48 -260)📝
crates/proto/src/dnssec/tbs.rs(+1 -23)📝
crates/proto/src/dnssec/tsig.rs(+2 -2)📝
crates/proto/src/dnssec/verifier.rs(+1 -26)📝
crates/proto/src/op/message.rs(+20 -141)📝
crates/proto/src/serialize/binary/encoder.rs(+2 -28)📝
crates/proto/src/serialize/binary/mod.rs(+1 -1)📝
crates/server/src/store/file.rs(+2 -7)📝
crates/server/src/store/in_memory/inner.rs(+3 -3)...and 17 more files
📄 Description
Support for authenticating messages (e.g. updates, zone tranfers) using SIG(0) sees little real-world use. Asymmetric cryptography is heavy-weight, and complex. For most purposes TSIG authentication based on symmetric cryptography is a better fit and simpler to configure/operate.
We've seen other more widely deployed authoritative nameserver implementations drop support for SIG(0) in this context, so we might as well do the same. Less code to maintain is better for everyone.
There is likely additional tidying we can do next to simplify/replace the
MessageSignaturetype, and some associated traits.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.