Zones store their update-security settings and the owner of each dynamically registered name #81

Open
opened 2026-10-31 12:42:03 -04:00 by claude · 0 comments
Owner
  • Draft: INT-12
  • Priority: high (#82 needs it)
  • Agent: storage-coder
  • Depends on: none
  • Decisions: Q-INT-1, Q-INT-2

Why

ZoneEntity has only DynamicUpdateEnabled and UpdateTsigKeyNames (src/dotnet/src/Ninlil.Dns.Data.Abstractions/Entity/ZoneEntity.cs:122-130). Secure update needs per-name ownership. Windows ties ownership to the name, not to the record.

What changes

  • ZoneEntity gains:
    • GssUpdateEnabled (bool)
    • GssUpdatePrincipals (List, patterns such as *@EXAMPLE.COM; the per-zone access list of who may create and own names)
    • GssUpdateProxyPrincipals (List, may change any name)
    • UnsignedUpdateNetworks (List, CIDR)
      The lists are stored like UpdateTsigKeyNames in src/dotnet/src/Ninlil.Dns.Data.EntityFrameworkCore/Configuration/ZoneConfiguration.cs.
  • New DnsNameOwnerEntity (Id, ZoneId, Name, Principal, CreatedUtc):
    • Unique on (ZoneId, Name), cascade on zone delete.
    • Repository IDnsNameOwnerRepository with GetAsync(zoneId, name), SetAsync, DeleteAsync and DeleteByZoneIdAsync.
    • EF and Mongo implementations.
  • One migration per relational provider (AddSecureDynamicUpdate), then the namespace conversion script.
  • MongoDB: class map and repository. Add a MongoSchemaSteps.Known step if an older build would misread zone documents with the new fields.
  • Add the entity to src/dotnet/src/Ninlil.Dns.Server.Backup/Catalog/BackupEntityCatalog.cs after Records (line 55).

Acceptance

  • Integration tests in src/dotnet/tests/Ninlil.Dns.Data.Integration.Tests (SQLite without a trait; the other engines RequiresDocker):
    • round-trip of the new zone fields
    • unique (ZoneId, Name)
    • delete-by-zone
  • A backup/restore test includes the owner rows.
  • Four migrations exist, file-scoped.
  • src/dotnet/tests/Ninlil.Dns.Server.Backup.Tests passes.
  • No REST change in this issue.

Source

  • Owner scope (secure-update name ownership; unsigned updates from a network ACL).
  • Owner decision 2026-10-31 (Q-INT-2): "pattern list per zone".
- **Draft:** INT-12 - **Priority:** high (#82 needs it) - **Agent:** storage-coder - **Depends on:** none - **Decisions:** Q-INT-1, Q-INT-2 ### Why `ZoneEntity` has only `DynamicUpdateEnabled` and `UpdateTsigKeyNames` (`src/dotnet/src/Ninlil.Dns.Data.Abstractions/Entity/ZoneEntity.cs:122-130`). Secure update needs per-name ownership. Windows ties ownership to the name, not to the record. ### What changes - `ZoneEntity` gains: - `GssUpdateEnabled` (bool) - `GssUpdatePrincipals` (List<string>, patterns such as `*@EXAMPLE.COM`; the per-zone access list of who may create and own names) - `GssUpdateProxyPrincipals` (List<string>, may change any name) - `UnsignedUpdateNetworks` (List<string>, CIDR) The lists are stored like `UpdateTsigKeyNames` in `src/dotnet/src/Ninlil.Dns.Data.EntityFrameworkCore/Configuration/ZoneConfiguration.cs`. - New `DnsNameOwnerEntity` (Id, ZoneId, Name, Principal, CreatedUtc): - Unique on (ZoneId, Name), cascade on zone delete. - Repository `IDnsNameOwnerRepository` with `GetAsync(zoneId, name)`, `SetAsync`, `DeleteAsync` and `DeleteByZoneIdAsync`. - EF and Mongo implementations. - One migration per relational provider (`AddSecureDynamicUpdate`), then the namespace conversion script. - MongoDB: class map and repository. Add a `MongoSchemaSteps.Known` step if an older build would misread zone documents with the new fields. - Add the entity to `src/dotnet/src/Ninlil.Dns.Server.Backup/Catalog/BackupEntityCatalog.cs` after `Records` (line 55). ### Acceptance - [ ] Integration tests in `src/dotnet/tests/Ninlil.Dns.Data.Integration.Tests` (SQLite without a trait; the other engines RequiresDocker): - round-trip of the new zone fields - unique (ZoneId, Name) - delete-by-zone - [ ] A backup/restore test includes the owner rows. - [ ] Four migrations exist, file-scoped. - [ ] `src/dotnet/tests/Ninlil.Dns.Server.Backup.Tests` passes. - [ ] No REST change in this issue. ### Source - Owner scope (secure-update name ownership; unsigned updates from a network ACL). - 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#81
No description provided.