mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 03:05:51 +03:00
[PR #2031] [CLOSED] Separate default rustls::ClientConfig for each protocol (take 2) #2767
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#2767
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/2031
Author: @daxpedda
Created: 9/21/2023
Status: ❌ Closed
Base:
main← Head:alpn-config-2📝 Commits (1)
f705ec7Separate defaultrustls::ClientConfigfor each protocol📊 Changes
6 files changed (+225 additions, -107 deletions)
View changed files
📝
crates/resolver/src/config.rs(+15 -0)📝
crates/resolver/src/https.rs(+21 -24)📝
crates/resolver/src/name_server/connection_provider.rs(+66 -29)📝
crates/resolver/src/quic.rs(+109 -23)📝
crates/resolver/src/tls/dns_over_rustls.rs(+12 -29)📝
crates/resolver/src/tls/mod.rs(+2 -2)📄 Description
WIP!
Options to allowDefaultto work.Probably the simplest solution is to remove the.Defaultimplementation and add aResolverOpts::new()ClientConfiginstead of aArc<ClientConfig>, as far as I can see the only reason for that is that it adds the correct ALPN, which is obviously unnecessary when using a default supplied one. I would propose to actually remove this ALPN correction completely.Originally in #2001 I have added those configs to
GenericConnectorinstead ofResolverOpts, maybe this is also an alternative to consider. I was trying to keep in mind that somewhere we will want to dynamically be able to select between native or WebPKI roots, which will be weird if done inResolverOpts, because it's holding these configs but it doesn't have a builder or something to select it before constructing those configs.I hope I'm making sense here, I'm happy to talk this out in realtime on Discord or wherever if it's easier.
This is take two of #2001.
Fixes #1990.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.