fleetdm / fleet

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

Macs in Apple Business Manager don't appear #12958

Closed noahtalerman closed 1 year ago

noahtalerman commented 1 year ago

Fleet version: Customer's Fleet is deployed this branch: pre-release-july-17


🧑‍💻  Expected behavior

I automatically enrolled a Mac in Apple Business Manager (ABM) to Fleet.

The host shows up in Fleet as expected.

Then, I locally reset the Mac and delete the Mac in Fleet.

After the apple_dep_sync_periodicity elapses (default: 1m) I expect to see the Mac show up in Fleet with MDM status set to "Pending."

💥  Actual behavior

After locally resetting the Mac and deleting the Mac in Fleet, the Mac never shows up in Fleet with MDM status set to "Pending."

More info

This was discovered by a Fleet customer. More discussion can be found here in Slack (internal)

Workaround: After resetting device and deleting in Fleet, assign the host to a different MDM server in ABM and then reassign it back to the Fleet MDM server.

lukeheath commented 1 year ago

@georgekarrv Please triage.

sabrinabuckets commented 1 year ago

I had previously noted this behavior, as recently as yesterday. After pulling the latest main & following the repro steps, I am able to verify that an ABM-assigned macOS host now correctly appears in the Hosts table as pending.Screenshot 2023-08-11 at 10.51.49 AM.png

fleet-release commented 1 year ago

Reset, reconnect, wait, In the cloud city, Macs sync, Fleet ensures no strait.