One bad stored record no longer breaks queries or zone transfers for its zone #28

Closed
opened 2026-10-31 12:41:52 -04:00 by claude · 0 comments
Owner
  • Draft: REL-19
  • Priority: medium (a single unwritable row makes AXFR/IXFR of the whole zone fail)
  • Agent: protocol-coder
  • Depends on: none
  • Decisions: none

Why

The signer skips a record whose data cannot be written and logs a Warning (3a7eb6f). The unsigned
query path and zone transfers still call RecordEntityCodec.ToWireRecord unguarded, for example
src/dotnet/src/Ninlil.Dns.Server.Authoritative/Transfer/ZoneTransferService.cs:111,312,648 and
Cache/RecordEntityCodec.cs:27. Writes are validated since D-13x, but rows can still arrive by a
restore, a storage switch, a cluster sync or a hand edit.

What changes

Apply the signer's rule (skip the record, one Warning naming zone, type, name, id and reason) in
the record cache load (RecordEntityCodec) and in ZoneTransferService; reuse the signer's
helper rather than copy it. A transfer must still be consistent: the skipped record is absent
from both the signed and unsigned view.

Acceptance

  • Authoritative.Tests: a zone with one row whose data cannot be written answers queries for
    other names and completes an AXFR without that record; one Warning each. Exception reds
    first.
  • Whole solution if a shared library changes.

Source

d-design.md:1207,1219 (D-13x note, "Post-release issues").

- **Draft:** REL-19 - **Priority:** medium (a single unwritable row makes AXFR/IXFR of the whole zone fail) - **Agent:** protocol-coder - **Depends on:** none - **Decisions:** none ### Why The signer skips a record whose data cannot be written and logs a Warning (3a7eb6f). The unsigned query path and zone transfers still call `RecordEntityCodec.ToWireRecord` unguarded, for example `src/dotnet/src/Ninlil.Dns.Server.Authoritative/Transfer/ZoneTransferService.cs:111,312,648` and `Cache/RecordEntityCodec.cs:27`. Writes are validated since D-13x, but rows can still arrive by a restore, a storage switch, a cluster sync or a hand edit. ### What changes Apply the signer's rule (skip the record, one Warning naming zone, type, name, id and reason) in the record cache load (`RecordEntityCodec`) and in `ZoneTransferService`; reuse the signer's helper rather than copy it. A transfer must still be consistent: the skipped record is absent from both the signed and unsigned view. ### Acceptance - [ ] Authoritative.Tests: a zone with one row whose data cannot be written answers queries for other names and completes an AXFR without that record; one Warning each. Exception reds first. - [ ] Whole solution if a shared library changes. ### Source `d-design.md:1207,1219` (D-13x note, "Post-release issues").
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
lantea-one/ninlil#28
No description provided.