mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 03:05:51 +03:00
[PR #2298] [MERGED] Test invalid signature timestamps in DNSSEC validation #2930
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#2930
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/2298
Author: @justahero
Created: 7/9/2024
Status: ✅ Merged
Merged: 7/10/2024
Merged by: @japaric
Base:
main← Head:gh-2275-test-rrsig-signature📝 Commits (5)
a07d250Pass trust anchor from previous 'State'2b28cceExtract logic to sign zone file15178b2Add test to check signature inception timestampe4ce41cAdd test to check expiration timestamp12fcc3cSkip assertion when using unbound📊 Changes
17 files changed (+354 additions, -109 deletions)
View changed files
📝
conformance/packages/conformance-tests/src/name_server/rfc4035/section_3/section_3_1/section_3_1_1.rs(+2 -1)📝
conformance/packages/conformance-tests/src/name_server/rfc5155.rs(+2 -1)📝
conformance/packages/conformance-tests/src/resolver/dnssec/fixtures.rs(+2 -1)📝
conformance/packages/conformance-tests/src/resolver/dnssec/rfc4035.rs(+1 -0)📝
conformance/packages/conformance-tests/src/resolver/dnssec/rfc4035/section_3/section_3_1/section_3_1_4.rs(+2 -1)📝
conformance/packages/conformance-tests/src/resolver/dnssec/rfc4035/section_3/section_3_2.rs(+2 -1)📝
conformance/packages/conformance-tests/src/resolver/dnssec/rfc4035/section_4/section_4_5.rs(+2 -1)➕
conformance/packages/conformance-tests/src/resolver/dnssec/rfc4035/section_5.rs(+1 -0)➕
conformance/packages/conformance-tests/src/resolver/dnssec/rfc4035/section_5/section_5_3.rs(+82 -0)📝
conformance/packages/conformance-tests/src/resolver/dnssec/scenarios/ede.rs(+2 -1)📝
conformance/packages/conformance-tests/src/resolver/dnssec/scenarios/secure.rs(+2 -1)📝
conformance/packages/dns-test/examples/explore.rs(+2 -1)📝
conformance/packages/dns-test/src/implementation.rs(+5 -0)📝
conformance/packages/dns-test/src/name_server.rs(+35 -99)📝
conformance/packages/dns-test/src/zone_file/mod.rs(+4 -0)➕
conformance/packages/dns-test/src/zone_file/signer.rs(+206 -0)📝
tests/e2e-tests/src/resolver/dnssec/regression.rs(+2 -1)📄 Description
This PR adds support to sign zone files with invalid signature timestamps, e.g. inception or expiration, to produce signed invalid records (using
ldns-signzoneinternally).The
Signertype moved to its own file, using the expandedSignSettingstype to set the properties. A small refactoring allows theSignedstate to return aTrustAnchor. ANameServercan return a setTrustAnchor. If it's a nonSignedname server this will returnNone, otherwise it's expected to return a validTrustAnchor. This should improve usability of setting up a trust anchor for Resolvers in tests slightly.Closes #2275
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.