Dynamic updates follow the zone's security mode: HMAC TSIG, GSS-TSIG with name ownership, or unsigned from listed networks for unowned names #82

Open
opened 2026-10-31 12:42:03 -04:00 by claude · 0 comments
Owner
  • Draft: INT-13
  • Priority: high
  • Agent: protocol-coder
  • Depends on: #80, #81
  • Decisions: Q-INT-1, Q-INT-2

Why

Today every unsigned update is refused (DynamicUpdateQueryResolver.cs:126-132). That REFUSED is the signal that makes a Windows client retry with GSS-TSIG, so it must stay the default.

What changes

In DynamicUpdateQueryResolver.cs:

  • An HMAC key path, unchanged.
  • A gss-tsig path, when GssUpdateEnabled is set and Principal matches one of the zone's GssUpdatePrincipals patterns (a principal matching none is REFUSED):
    • For each owner name the update touches: if the name has no owner, the principal becomes its owner on success. If another principal owns it, the update is REFUSED as a whole (RFC 2136 §3.4.2.1 atomicity).
    • A proxy principal may change any name.
    • Deleting the last RRset at a name removes its owner row.
  • An unsigned path, when the remote address is in UnsignedUpdateNetworks: it may create names and change or delete names that have no owner row. If any name the update touches has an owner, the whole update is REFUSED, so a machine that registered securely cannot be hijacked by a neighbour. Unsigned updates never create owner rows.
  • Owner checks run after the permission check and before prerequisites, in the same order the class documents today.
  • The changes and the owner rows are written in one unit of work through IZoneUpdateService.
  • ZoneModels.cs and ZonesController.cs expose the four new zone fields, with Swashbuckle examples. The REST API changes; regeneration is #86.

Acceptance

Tests in src/dotnet/tests/Ninlil.Dns.Server.Authoritative.Tests, with a fake GSS context:

  • Fails first: principal A creates host1; principal B's update to host1 gets REFUSED; principal A's second update succeeds.
  • A proxy principal may change host1.
  • A principal matching no pattern of the zone is REFUSED.
  • An unsigned update from an allowed network creates host2 (no owner row). From another network it is REFUSED.
  • An unsigned update from an allowed network to host1 (owned by principal A) is REFUSED and changes nothing.
  • A zone with GSS off REFUSES a gss-tsig update.
  • src/dotnet/tests/Ninlil.Web.Tests passes for the zone fields.
  • README dynamic-update section (README.md:953-1120) updated.

Source

  • RFC 2136 §3.3 and §3.4.2.1; Microsoft's public secure dynamic update documentation; owner scope.
  • Owner decision 2026-10-31 (Q-INT-1): "unowned names only".
  • Owner decision 2026-10-31 (Q-INT-2): "pattern list per zone".
- **Draft:** INT-13 - **Priority:** high - **Agent:** protocol-coder - **Depends on:** #80, #81 - **Decisions:** Q-INT-1, Q-INT-2 ### Why Today every unsigned update is refused (`DynamicUpdateQueryResolver.cs:126-132`). That REFUSED is the signal that makes a Windows client retry with GSS-TSIG, so it must stay the default. ### What changes In `DynamicUpdateQueryResolver.cs`: - An HMAC key path, unchanged. - A gss-tsig path, when `GssUpdateEnabled` is set and `Principal` matches one of the zone's `GssUpdatePrincipals` patterns (a principal matching none is REFUSED): - For each owner name the update touches: if the name has no owner, the principal becomes its owner on success. If another principal owns it, the update is REFUSED as a whole (RFC 2136 §3.4.2.1 atomicity). - A proxy principal may change any name. - Deleting the last RRset at a name removes its owner row. - An unsigned path, when the remote address is in `UnsignedUpdateNetworks`: it may create names and change or delete names that have no owner row. If any name the update touches has an owner, the whole update is REFUSED, so a machine that registered securely cannot be hijacked by a neighbour. Unsigned updates never create owner rows. - Owner checks run after the permission check and before prerequisites, in the same order the class documents today. - The changes and the owner rows are written in one unit of work through `IZoneUpdateService`. - `ZoneModels.cs` and `ZonesController.cs` expose the four new zone fields, with Swashbuckle examples. The REST API changes; regeneration is #86. ### Acceptance Tests in `src/dotnet/tests/Ninlil.Dns.Server.Authoritative.Tests`, with a fake GSS context: - [ ] Fails first: principal A creates `host1`; principal B's update to `host1` gets REFUSED; principal A's second update succeeds. - [ ] A proxy principal may change `host1`. - [ ] A principal matching no pattern of the zone is REFUSED. - [ ] An unsigned update from an allowed network creates `host2` (no owner row). From another network it is REFUSED. - [ ] An unsigned update from an allowed network to `host1` (owned by principal A) is REFUSED and changes nothing. - [ ] A zone with GSS off REFUSES a gss-tsig update. - [ ] `src/dotnet/tests/Ninlil.Web.Tests` passes for the zone fields. - [ ] README dynamic-update section (README.md:953-1120) updated. ### Source - RFC 2136 §3.3 and §3.4.2.1; Microsoft's public secure dynamic update documentation; owner scope. - Owner decision 2026-10-31 (Q-INT-1): "unowned names only". - Owner decision 2026-10-31 (Q-INT-2): "pattern list per zone".
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#82
No description provided.