fleetdm / fleet

Open-source platform for IT, security, and infrastructure teams. (Linux, macOS, Chrome, Windows, cloud, data center)
https://fleetdm.com
Other
3.15k stars 432 forks source link

Activity feed for `mdm_enrolled` is missing items when hosts enroll to fleet #23982

Open PezHub opened 1 day ago

PezHub commented 1 day ago

Fleet version: 4.59.0

Web browser and operating system: ANY


💥  Actual behavior

When enrolling a host to fleet, mdm_enrolled needs to grab the correct host_display_name (which would be hostname if computer name is empty) and populate serial number if possible (both of these should be available when fleetd was installed, since they were recently added here #22810 )

🧑‍💻  Steps to reproduce

  1. Enroll a host
  2. Navigate to Global Activity feed
  3. Open Inspector and note the response for mdm_enrolled is missing serial number and the host_display_name is not accurate

🕯️ More info (optional)

Screenshot 2024-11-20 at 8 34 41 AM