fleetdm / fleet

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

Audit Log - mdm_enrolled event should send the hostId #22532

Open valentinpezon-primo opened 1 day ago

valentinpezon-primo commented 1 day ago

Gong snippet: TODO

Problem

Screenshot 2024-10-01 at 12 00 10

Doc here

As an api user, I only have the serial_number in the mdm-enrolled event, it's not usable since the serial number for some device contains invalid string, like empty string "", not applicable, * ..

This make the serial number a bad choice as a "unique key"

Potential solutions

Fleet has a unique remote Id and should also send it inside the payload