Asset Deduplication
The same machine is often reported by several discovery zones: an agent, a network scan, SNMP, a cloud or Kubernetes collector. Cross-zone deduplication merges them into one asset that keeps every source, only on strong and unambiguous evidence.
How It Works
Every asset has a primary source (its own discovery zone and external id) and, once merged, secondary sources: the sightings of the same machine by other zones. The reconcile_asset_identities task runs every 10 minutes: it re-checks existing merges, plans new merges from the active primary sources and, depending on ASSET_MERGE_MODE, records or applies them. Only one pass runs at a time.
- The surviving asset is the one from the source with the highest precedence: agent > cloud and Kubernetes API > SNMP > monitoring > network scan, so the merged asset keeps the richest data
- When a secondary zone reports the machine again, only its source snapshot is updated (a network scan never changes the fields written by the agent); the asset last seen time is bumped and dependencies reported by that zone resolve to the merged asset
- The merged asset is active while any of its sources is active
Matching Rules
A merge needs one of these rules; rules are tried in this order:
- host_ip: an agent host and a network-scan or SNMP asset share an address of a real interface of the host, corroborated by the MAC address or the host name
- host_cloud_id: an agent host whose SMBIOS UUID is the platform UUID of a cloud VM (Azure vm_id). Only with ASSET_MERGE_CLOUD_RULES
- device_ip: an SNMP device and the network-scan asset of its polled address, with the same corroboration
- k8s_cluster_endpoint: a cluster seen through its Kubernetes API and the managed cluster seen by a cloud collector share the API server DNS name (bare IPs never match)
- k8s_node_provider_id: a Kubernetes node and the cloud VM its provider_id names; the node survives. Only with ASSET_MERGE_CLOUD_RULES
Note: An address claimed by two agent hosts (a VIP, NAT) or by two assets of the same kind is ambiguous and never merges. Kubernetes workloads, containers, applications reported by agents and manual assets never merge. Groups larger than ASSET_MERGE_MAX_CLUSTER or holding two agent hosts are skipped.
Settings
Deduplication is configured with environment variables of the backend:
- ASSET_MERGE_MODE: off (nothing), dry_run (default: each new plan is recorded once as a planned merge event, nothing changes) or apply (merge)
- ASSET_MERGE_IP_ONLY (default false): let an unambiguous address alone, without MAC or host name, merge an agent host with a scan or SNMP host. The address must be the interface's own (not a /32 or an extra floating address), the other asset must be a host type, and the address must fall in the ranges of exactly one zone of the scanning kind. Enable it only when private ranges are not reused across sites
- ASSET_MERGE_MAX_CLUSTER (default 4): larger groups of matching assets are never merged
- ASSET_MERGE_CLOUD_RULES (default false): also apply the k8s_node_provider_id and host_cloud_id rules (exact ids); enable it after reviewing a dry run
# Show what would be merged (uids, names, types, zones and evidence)
python manage.py reconcile_asset_identities --dry-run
python manage.py reconcile_asset_identities --dry-run --json
# Merge now
python manage.py reconcile_asset_identities --applyWhat a Merge Moves
Everything attached to the merged-away asset moves to the survivor before it is deleted, in one transaction:
- Its sources become secondary sources of the survivor, with the match rule and evidence
- Dependencies are re-pointed; edges between the two assets are dropped and duplicates are folded into the existing edge
- Health checks, security findings (a human triage status such as false positive, acknowledged, resolved or risk accepted wins over open, and its timeline follows), baselines, children, software components, health history and service memberships follow
- Tags are combined, the environment is kept, locked owner, team, criticality and exposure are respected (a conflict between two locks keeps the survivor's and is recorded)
- Finding priorities are recomputed, and the search index and the graph are refreshed after the merge
Note: The old uid becomes a redirect: opening /dashboard/assets/<old uid> shows "<old uid> was merged into <new uid>" and moves to the surviving asset. The API serves reads through the old uid (with redirected_from in the detail) but answers 404 naming the current uid to writes.
Seeing Merged Assets
In the Asset Inventory the Discovery zone column shows the primary zone and a "+N" badge when other zones also see the machine. The "Seen by zone" filter keeps every asset seen by a zone through any source. On the asset detail page the card "Seen by N sources" lists each source with its zone, kind (Agent, Cloud, Kubernetes, SNMP, Monitoring, Network scan), a Primary badge, "Not seen recently" when it is inactive, its external id, why it was attached (for example "Same address as the agent host (10.0.0.5) — MAC address matches") and its last seen time.

Automatic Splits
In apply mode every pass re-checks the evidence of the sources attached by host_ip, device_ip and k8s_cluster_endpoint. When it fails 3 checks in a row (for example DHCP gave the address to another machine) the source is split off: it becomes its own asset again with the uid it had before the merge, and the pair is blocked from merging for 7 days. Dependencies stay on the merged asset; the zone recreates its own at its next discovery.
Deleting a Zone
Assets are deleted with their primary discovery zone, but a merged asset also seen by other zones survives: before the zone is deleted, its best secondary source elsewhere (active first, then highest precedence) becomes the primary source and the asset moves to that zone. Assets that only lose a secondary source get their activity recomputed.