Presence tracking creates a discovered device for every new hardware address it sees #145
Labels
No labels
agent
api-regen
agent
architect
agent
coder
agent
console-coder
agent
docs-writer
agent
mechanic
agent
protocol-coder
agent
storage-coder
area/api
area/ci
area/console
area/dhcp
area/dns
area/docs
area/packaging
area/process
area/storage
area/windows
kind
bug
kind
chore
kind
docs
kind
epic
kind
feature
kind
performance
kind
security
kind
test
priority
high
priority
low
priority
medium
resolution
duplicate
resolution
not-a-bug
resolution
wontfix
status
blocked
status
in-progress
status
needs-decision
status
needs-design
status
ready
theme
ad-samba-dns
theme
alternatives-benchmark
theme
console-toolchain
theme
later
theme
parity-devices
theme
parity-query
theme
post-release-fixes
theme
tracker-setup
theme
valkey
theme
windows-installer
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
#146 The clients API lists discovered devices, counts them, lets an operator acknowledge them and prunes stale ones
lantea-one/ninlil
Reference
lantea-one/ninlil#145
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
ClientPresenceFlushService.FlushAsync(src/dotnet/src/Ninlil.Dns.Server.ClientIdentity/Presence/ClientPresenceFlushService.cs:163-278) updates only stored address rows. Sightings with no match are dropped (lines 244-245).What changes
ClientPresenceFlushService.FlushAsync: after the matching loop, take every identity or hardware sighting that matched no stored address and carries a MAC. Create oneDnsClientEntity(Origin = Discovered,IsAcknowledged = false,DisplayNameempty) plus oneDnsClientAddressEntity(IPv4 identity keyed by the colon-separated MAC,FirstSeenUtc/LastSeenUtc= sighting time,Address= sighted address).DnsClientEntity.cs:8-12), and these sightings can be spoofed (ClientPresenceTracker.cs:19-24).MaxSourceAddressesPerFlush.DhcpClientIdentifierLinkKeys, asDhcpClientRegistryAutoPopulationServicedoes (src/dotnet/src/Ninlil.Dhcp.Server.DnsIntegration/DhcpClientRegistryAutoPopulationService.cs:29-39).DnsClientDirectoryreloads.ClientPresenceOptions.cs: addbool EnableDeviceDiscovery, defaulttrue. Update ENVIRONMENT.md (row, default, totals counted fromOptionsEnvironmentVariableMap.BuildMappings). Rewrite the "presence never registers devices" sentences in the class summaries.Acceptance
src/dotnet/tests/Ninlil.Dns.Server.ClientIdentity.Tests,FlushAsync_ForAnUnknownHardwareSighting_CreatesADiscoveredClientasserts one client withOrigin == Discoveredand one address with the MAC.true.dotnet test src/dotnet/tests/Ninlil.Dns.Server.ClientIdentity.Tests,dotnet test src/dotnet/tests/Ninlil.Web.Tests.Source
audit-feature-parity.md§2A #10;ClientPresenceFlushService.cs:31-33.Owner decision 2026-10-31: "discovery on by default" (Q-PN-1).