mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 03:05:51 +03:00
[PR #2199] [CLOSED] move server file configuration parameter to relevant stores #2871
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#2871
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/2199
Author: @divagant-martian
Created: 4/29/2024
Status: ❌ Closed
Base:
main← Head:remove-file-config-shortcut📝 Commits (10+)
7364810move file paramter to relevant stores91faeafmake stores mandatory since all None paths are error pathse2e7531update configuration testsdd1a0d0make clippy happy4de0fd8remove declaration of deprecated test file that was removed5b9add0Merge branch 'main' into remove-file-config-shortcut34b5c49address review: rename ZoneConfig::new to ZoneConfig::new_with_file_zonea155da3Merge branch 'main' into remove-file-config-shortcutc8cb2fbMerge branch 'main' into remove-file-config-shortcute2dddabMerge branch 'main' into remove-file-config-shortcut📊 Changes
23 files changed (+90 additions, -244 deletions)
View changed files
📝
bin/src/hickory-dns.rs(+7 -68)📝
bin/tests/named_test_rsa_dnssec.rs(+0 -36)📝
crates/server/src/config/mod.rs(+17 -11)📝
crates/server/src/store/file/config.rs(+9 -0)📝
crates/server/tests/config_tests.rs(+7 -8)📝
tests/test-data/test_configs/all_supported_dnssec.toml(+6 -6)📝
tests/test-data/test_configs/dns_over_https.toml(+1 -1)📝
tests/test-data/test_configs/dns_over_quic.toml(+1 -1)📝
tests/test-data/test_configs/dns_over_tls.toml(+1 -1)📝
tests/test-data/test_configs/dns_over_tls_rustls_and_openssl.toml(+1 -1)📝
tests/test-data/test_configs/dnssec_with_update.toml(+5 -5)➖
tests/test-data/test_configs/dnssec_with_update_deprecated.toml(+0 -71)📝
tests/test-data/test_configs/example.toml(+6 -6)📝
tests/test-data/test_configs/example_allow_networks.toml(+1 -1)📝
tests/test-data/test_configs/example_deny_allow_networks.toml(+1 -1)📝
tests/test-data/test_configs/example_deny_networks.toml(+1 -1)📝
tests/test-data/test_configs/example_forwarder.toml(+5 -5)📝
tests/test-data/test_configs/example_recursor.toml(+5 -5)📝
tests/test-data/test_configs/ipv4_and_ipv6.toml(+1 -1)📝
tests/test-data/test_configs/ipv4_only.toml(+1 -1)...and 3 more files
📄 Description
Small part of #2195
As stated in the issue, the file parameter as a shortcut allows to create configurations that are not quite valid and generate warnings in logs. This PR removes the higher level path parameter down to the two store configurations where it's valid. This has some consequences triggering other changes:
sqlitefeature and settingis_update_allowed. This was previously logged as deprecated.get_filereturns anOption<PathBuf>. It seems to me this should have always been the case. Also note this method is not used anywhere in this repository and to external users it previously generated a panic in validNonecases.Nonecases map to an error.basic-tomldoes not support externally tagged enums which makes me wonder why is the more wildly usedtomlcrate not used instead.@japaric I hope this isn't colliding with any started work and helps instead. The great description in the issue made it an attractive way to do a first contribution. Would appreciate a review as well
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.