Skip to content

Commit

Permalink
- For #1175, update serve-expired tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
gthess committed Nov 22, 2024
1 parent eefdbb3 commit 9e3c50e
Show file tree
Hide file tree
Showing 23 changed files with 25 additions and 3 deletions.
1 change: 1 addition & 0 deletions doc/Changelog
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
- Fix #1175: serve-expired does not adhere to secure-by-default
principle. The default value of serve-expired-client-timeout
is set to 1800 as suggested by RFC8767.
- For #1175, update serve-expired tests.

20 November 2024: Yorgos
- Fix comparison to help static analyzer.
Expand Down
1 change: 1 addition & 0 deletions testdata/cachedb_expired.crpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ server:
qname-minimisation: no
minimal-responses: no
serve-expired: yes
serve-expired-client-timeout: 0
module-config: "cachedb iterator"

cachedb:
Expand Down
1 change: 1 addition & 0 deletions testdata/cachedb_expired_reply_ttl.crpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ server:
qname-minimisation: no
minimal-responses: no
serve-expired: yes
serve-expired-client-timeout: 0
serve-expired-reply-ttl: 30
module-config: "cachedb iterator"

Expand Down
2 changes: 1 addition & 1 deletion testdata/cachedb_servfail_cname.crpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ server:
target-fetch-policy: "0 0 0 0 0"
qname-minimisation: no
minimal-responses: no
;serve-expired: yes
serve-expired: no
module-config: "cachedb iterator"

cachedb:
Expand Down
1 change: 1 addition & 0 deletions testdata/cachedb_val_expired.crpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ server:
qname-minimisation: no
minimal-responses: yes
serve-expired: yes
serve-expired-client-timeout: 0
;module-config: "subnetcache validator cachedb iterator"
module-config: "validator cachedb iterator"

Expand Down
5 changes: 3 additions & 2 deletions testdata/dnstap.tdir/dnstap.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ server:
do-not-query-localhost: no
local-zone: "example.net." redirect
local-data: "example.net. IN A 10.20.30.41"
serve-expired: yes
serve-expired-reply-ttl: 30
serve-expired: yes
serve-expired-client-timeout: 0
serve-expired-reply-ttl: 30
remote-control:
control-enable: yes
control-interface: 127.0.0.1
Expand Down
1 change: 1 addition & 0 deletions testdata/fwd_0ttlservfail.rpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
; config options go here.
server:
serve-expired: yes
serve-expired-client-timeout: 0
prefetch: yes
forward-zone: name: "." forward-addr: 216.0.0.1
CONFIG_END
Expand Down
1 change: 1 addition & 0 deletions testdata/serve_expired.rpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ server:
qname-minimisation: "no"
minimal-responses: no
serve-expired: yes
serve-expired-client-timeout: 0
access-control: 127.0.0.1/32 allow_snoop
ede: yes
ede-serve-expired: yes
Expand Down
1 change: 1 addition & 0 deletions testdata/serve_expired_0ttl_nodata.rpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ server:
qname-minimisation: "no"
minimal-responses: no
serve-expired: yes
serve-expired-client-timeout: 0
log-servfail: yes
ede: yes
ede-serve-expired: yes
Expand Down
1 change: 1 addition & 0 deletions testdata/serve_expired_0ttl_nxdomain.rpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ server:
qname-minimisation: "no"
minimal-responses: no
serve-expired: yes
serve-expired-client-timeout: 0
log-servfail: yes
ede: yes
ede-serve-expired: yes
Expand Down
1 change: 1 addition & 0 deletions testdata/serve_expired_0ttl_servfail.rpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ server:
qname-minimisation: "no"
minimal-responses: no
serve-expired: yes
serve-expired-client-timeout: 0
log-servfail: yes
ede: yes
ede-serve-expired: yes
Expand Down
1 change: 1 addition & 0 deletions testdata/serve_expired_cached_servfail.rpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ server:
qname-minimisation: "no"
minimal-responses: no
serve-expired: yes
serve-expired-client-timeout: 0
serve-expired-reply-ttl: 123
log-servfail: yes
ede: yes
Expand Down
1 change: 1 addition & 0 deletions testdata/serve_expired_cached_servfail_refresh.rpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ server:
qname-minimisation: "no"
minimal-responses: no
serve-expired: yes
serve-expired-client-timeout: 0
serve-expired-reply-ttl: 123
log-servfail: yes
ede: yes
Expand Down
1 change: 1 addition & 0 deletions testdata/serve_expired_reply_ttl.rpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ server:
minimal-responses: no
serve-expired: yes
serve-expired-reply-ttl: 123
serve-expired-client-timeout: 0
ede: yes
ede-serve-expired: yes

Expand Down
1 change: 1 addition & 0 deletions testdata/serve_expired_ttl.rpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ server:
qname-minimisation: "no"
minimal-responses: no
serve-expired: yes
serve-expired-client-timeout: 0
serve-expired-ttl: 10

stub-zone:
Expand Down
1 change: 1 addition & 0 deletions testdata/serve_expired_ttl_reset.rpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ server:
serve-expired-ttl: 1
serve-expired-ttl-reset: yes
serve-expired-reply-ttl: 123
serve-expired-client-timeout: 0
ede: yes
ede-serve-expired: yes
forward-zone: name: "." forward-addr: 216.0.0.1
Expand Down
1 change: 1 addition & 0 deletions testdata/serve_expired_val_bogus.rpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ server:
minimal-responses: no

serve-expired: yes
serve-expired-client-timeout: 0
serve-expired-reply-ttl: 123
ede: yes
ede-serve-expired: yes
Expand Down
1 change: 1 addition & 0 deletions testdata/serve_expired_zerottl.rpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ server:
qname-minimisation: "no"
minimal-responses: no
serve-expired: yes
serve-expired-client-timeout: 0
serve-expired-reply-ttl: 123
ede: yes
ede-serve-expired: yes
Expand Down
1 change: 1 addition & 0 deletions testdata/serve_original_ttl.rpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ server:
cache-max-ttl: 1000
cache-min-ttl: 20
serve-expired: yes
serve-expired-client-timeout: 0
serve-expired-reply-ttl: 123
ede: yes
ede-serve-expired: yes
Expand Down
1 change: 1 addition & 0 deletions testdata/stat_values.tdir/stat_values.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ server:
outbound-msg-retry: 0
root-key-sentinel: no
trust-anchor-signaling: no
serve-expired-client-timeout: 0

local-zone: local.zone static
local-data: "www.local.zone A 192.0.2.1"
Expand Down
1 change: 1 addition & 0 deletions testdata/subnet_cached_servfail.crpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ server:
qname-minimisation: no
minimal-responses: no
serve-expired: yes
serve-expired-client-timeout: 0
prefetch: yes

stub-zone:
Expand Down
1 change: 1 addition & 0 deletions testdata/subnet_global_prefetch_always_forward.crpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ server:
trust-anchor-signaling: no
target-fetch-policy: "0 0 0 0 0"
serve-expired: yes
serve-expired-client-timeout: 0
client-subnet-always-forward: yes
module-config: "subnetcache iterator"
verbosity: 3
Expand Down
1 change: 1 addition & 0 deletions testdata/subnet_global_prefetch_expired.crpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ server:
qname-minimisation: no
minimal-responses: no
serve-expired: yes
serve-expired-client-timeout: 0
serve-expired-ttl: 1
prefetch: yes

Expand Down

0 comments on commit 9e3c50e

Please sign in to comment.