mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-24 18:55:55 +03:00
[GH-ISSUE #3456] hickory-proto parsing all dnssec algorithms #1185
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#1185
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 @esensar on GitHub (Feb 11, 2026).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/3456
Is your feature request related to a problem? Please describe.
Vector uses hickory-proto for parsing dnstap frames. When unsupported DNSSEC algorithm numbers are encountered a warning is emitted and they are ignored: https://github.com/vectordotdev/vector/issues/24632
It is also difficult to use hickory-proto for parsing the whole message and then parsing just this specific section manually - it would be easier to just do all of the parsing then.
Describe the solution you'd like
Would it be possible to parse out all of the algorithms, even if they are not supported by hickory-dns? In
github.com/hickory-dns/hickory-dns@b2a4707b1a/crates/proto/src/dnssec/supported_algorithm.rs (L80-L93)I can see that only supported algorithms are added to theSupportedAlgorithms(which is expected considering its name), but that is the only structure that we get out of parsed message. Even though there are some algorithms listed ingithub.com/hickory-dns/hickory-dns@b2a4707b1a/crates/proto/src/dnssec/algorithm.rs (L105-L139), they are not supported by this structure.My idea for this would be to just add some of the missing algorithms to the
Algorithmenum, keeping them unused except for parsing and then to also keep unknown algorithms that were encountered in theSupportedAlgorithms, without affecting the existing uses (so not changing theSupportedAlgorithmsIterorhasand similar methods, probably providing separate methods for unsupported algorithms. I am not sure if that would be acceptable, considering theSupportedAlgorithmsuses a small bit map for all algorithms and this would require additional field, that would probably end up being aVec<Algorithm>orVec<u8>.@djc commented on GitHub (Feb 11, 2026):
I'd be willing to review a PR in this direction, but no promises on merging anything. It would be nice to retain some type safety for supported algorithms (not sure if these types are also used via configuration, example, where we'd prefer to have them fail at compile time).