mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 11:15:54 +03:00
[PR #1943] [CLOSED] Add webpki-roots and native-certs crate features #2713
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#2713
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/1943
Author: @daxpedda
Created: 5/22/2023
Status: ❌ Closed
Base:
main← Head:native-certs📝 Commits (6)
14f6833Addwebpki-rootsandnative-certsfeatures59aeb66Falliblerustls-native-certsinitializatione9ca987StoreClientConfigper connection provider8a75049UseRootCertStore::add_parsable_certificates()de614dbFix example requiring root certificates140966bMakeQuicClientStreamBuilderconstruction non-fallible📊 Changes
18 files changed (+287 additions, -107 deletions)
View changed files
📝
Cargo.lock(+15 -3)📝
Cargo.toml(+2 -2)📝
crates/client/Cargo.toml(+3 -1)📝
crates/proto/Cargo.toml(+7 -4)📝
crates/proto/src/error.rs(+7 -0)📝
crates/proto/src/https/https_client_stream.rs(+28 -6)📝
crates/proto/src/quic/mod.rs(+1 -1)📝
crates/proto/src/quic/quic_client_stream.rs(+36 -11)📝
crates/resolver/Cargo.toml(+5 -1)📝
crates/resolver/examples/custom_provider.rs(+24 -6)📝
crates/resolver/src/config.rs(+2 -0)📝
crates/resolver/src/https.rs(+12 -22)📝
crates/resolver/src/name_server/connection_provider.rs(+60 -9)📝
crates/resolver/src/quic.rs(+4 -15)📝
crates/resolver/src/tls/dns_over_rustls.rs(+43 -13)📝
crates/resolver/src/tls/mod.rs(+2 -3)📝
util/Cargo.toml(+5 -2)📝
util/src/dns.rs(+31 -8)📄 Description
I will need some guidance on how to proceed from here. Currently when both crate features are enabled, certificates from both
webpki-rootsandrustls-native-certsare loaded, which is probably not what we want.Suggestions:
I'm leaning towards option 3., because a follow-up from me would be to expose some API to disable/enable them during runtime anyway. This is also how
reqwestdoes it, but when both features are active they will just load both.I didn't touch the integration tests crate and CI yet.
Follow-up to https://github.com/bluejekyll/trust-dns/issues/1940.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.