mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 03:05:51 +03:00
[PR #2289] [MERGED] test caching of chain of trust link #2925
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#2925
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/2289
Author: @japaric
Created: 7/8/2024
Status: ✅ Merged
Merged: 7/9/2024
Merged by: @japaric
Base:
main← Head:ja-test-cache-chain-link📝 Commits (1)
97d6b87test caching of chain of trust link📊 Changes
1 file changed (+53 additions, -0 deletions)
View changed files
📝
conformance/packages/conformance-tests/src/resolver/dnssec/rfc4035/section_4/section_4_5.rs(+53 -0)📄 Description
while investigating #2274 I think I found the problem: the intermediate records that
DnssecDnsHandleidentifies as "Secure" while doing the chain of trust validation are not re-inserted into theDnsLruso they remain as "Proof::Indeterminate" in the cache until they are directly queried.The test here is meant to expose the issue as a test failure but it actually already passes. From the hickory logs I can see that hickory re-validates the chain of trust on the second query (
DS com.) even though thatDS com.record was validated during the first query. The re-validation does not trigger a network operation because the "Indeterminate" records are all cached but it does perform the signature validation once again, which is likely expensive.The test can't observe the unwanted behavior because it's not visible at the network level. Still, I think this is a good test to add.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.