mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 11:15:54 +03:00
[PR #2534] [MERGED] Start cleaning up DNSSEC API #3116
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#3116
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/2534
Author: @djc
Created: 10/29/2024
Status: ✅ Merged
Merged: 10/30/2024
Merged by: @djc
Base:
main← Head:signer📝 Commits (7)
7c7301fproto: remove old type aliasfa2d081proto: move key_tag() method into PublicKey trait5dfc495proto: simplify to_ds() implementation0e76322proto: move to_dnskey() into PublicKey trait833c504proto: remove unnecessary dnssec guardsb3963e9proto: move to_ds() into PublicKey trait38eccdfproto: move to_sigkey*() methods into PublicKey trait📊 Changes
13 files changed (+197 additions, -230 deletions)
View changed files
📝
bin/src/dnssec.rs(+4 -3)📝
bin/src/hickory-dns.rs(+5 -2)📝
bin/tests/integration/authority_battery/dynamic_update.rs(+7 -5)📝
crates/proto/src/rr/dnssec/digest_type.rs(+0 -1)📝
crates/proto/src/rr/dnssec/keypair.rs(+6 -167)📝
crates/proto/src/rr/dnssec/mod.rs(+1 -2)📝
crates/proto/src/rr/dnssec/nsec3.rs(+0 -3)📝
crates/proto/src/rr/dnssec/public_key.rs(+149 -7)📝
crates/proto/src/rr/dnssec/signer.rs(+18 -34)📝
crates/server/src/store/in_memory/authority.rs(+2 -2)📝
tests/integration-tests/src/example_authority.rs(+1 -1)📝
tests/integration-tests/tests/integration/client_future_tests.rs(+3 -2)📝
tests/integration-tests/tests/integration/client_tests.rs(+1 -1)📄 Description
As part of integrating support for aws-lc-rs (as a ring alternative) and untangling the dependency on OpenSSL in ring signing tests, I've started cleaning up the
KeyPairAPI. As a starting point, I've moved all the API that was actually only dependent on the public key to thePublicKeytrait, which seems like a more obvious way to expose the API.It seems like the abstraction originally tried to leverage openssl traits like
HasPublicandPrivate, but (a) it makes very little sense to have aKeyPairtype that does not have access to the private key and (b) we would definitely prefer for the high-level API not to depend on OpenSSL.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.