Propagate SOA response failures into catalog refresh retries
perfloop-oss/coredns · Ignored Failure
https://perfloop.ai/t/oss/case_wkjsbcp1pp
Verdict
VERIFIED · settled 2026-11-16 · pull request opened as coredns/coredns#8821
What happened: The check fails before this change and passes with it.
Hypothesis
A catalog refresh can treat a refused SOA query as a successful freshness check. With consistently refused replies, the loop keeps its retry state inactive and restarts its timers instead of accounting for failed refreshes. That can keep obsolete catalog data live; the elapsed lifecycle effect and deployment frequency have not been measured.
The proof subject is the refresh lifecycle started by the assigned `Secondary.transferAndUpdate` entry at line 116. Its local result owner is `Zone.shouldTransfer` in `plugin/file/secondary.go:92-124`. That function checks both transport errors and non-success DNS response codes, but stores only the transport error. A REFUSED reply has a nil transport error, so after all primaries fail this way it returns `(false, nil)`. Empty successful replies also leave no usable SOA and no failure result.
`Zone.UpdateWithTransfer` uses the error to activate retry at lines 210-214. A false, nil result instead reaches lines 225-228, clears retry state and restarts all three timers. Expiration at lines 167-173 is conditional on retry being active. The comment above `Zone.Update` promises retries and expiration when refresh checks fail. The trigger is an ordinary configured primary returning a DNS error after an earlier accepted catalog transfer, not a new input format or security policy.
Property `prop_0jt4zq9ae6` models lists of one or two primaries over same serial, newer serial, TCP closure, REFUSED, SERVFAIL and empty answers, with local serial 100 and newer serial 101. `checkProperty` run `call_YEOXpmOQKynKBkNtCcB7N3zu`, using `go test ./plugin/file -run '^TestPerfloopSOACheckFailuresBounded$' -count=1 -timeout=90s -v`, stopped at configuration four of 42. The same-serial, newer-serial and TCP-closure controls passed. The reduced one-primary REFUSED witness returned `change=false error=<nil>`. Its replay input was returned for retention. This checks the failure signal directly; it does not claim an observed expiration duration.
The independent Case proof should follow failed SOA replies through the catalog update lifecycle and establish retry/expiration behavior, with unchanged-SOA and usable-fallback controls. The current native checker and layout are provisional. This is distinct from `hyp_9gyr0yje7j`, whose repair rejects outgoing transfers after expiration is already established; that existing finding does not repair failures that prevent expiration from being established.
The inspected `shouldTransfer` implementation changes in https://github.com/coredns/coredns/pull/7693 add TSIG, not DNS-result propagation; its linked https://github.com/coredns/coredns/issues/5606 asks for signing and verification. The scoped open-PR scan and fetched 96-commit recent-history window exposed no ownership of this repair. Older history remains outside that bounded check. This preserves the existing refresh contract without a public configuration change.
Change to test: Return a failure when no configured primary supplies a usable successful SOA response, including DNS error replies over healthy transport. Let the existing refresh lifecycle activate retry and expiration while preserving successful unchanged checks and healthy-primary fallback.
Where it lives
perfloop-oss/coredns · plugin/secondary/setup.go
Evidence
The check fails before this change and passes with it: `With refresh/retry/expire intervals of 100/10/120 seconds, after accepting a catalog at serial 100, all one- or two-primary combinations of unchanged/newer SOA (100/101), TCP closure, REFUSED, SERVFAIL and empty answers retry and expire when no successful SOA is available; otherwise the first usable SOA preserves freshness and triggers transfer only for serial 101.`
Checks: 3 of 3 passed. Verification: no defect found.
Timeline
2026-11-09· Case opened2026-11-23· PR opened