Skip to content

Ingest pending MDM hosts #8876

@lukeheath

Description

@lukeheath

Goal

As a user, in the Fleet UI, I want to be able to see macOS hosts that are waiting to be automatically enrolled a macOS host to Fleet so that I can change this host's team before the device user unboxes the host.

Related

Requirements

  • Ingest new pending MDM hosts from Apple Business Manager API. Likely Get a list of devices or Sync the list of devices.
  • We'll likely want to do this check hourly.
  • Store pending hosts in the new hosts_pending table.
  • Create a related record in hosts table with zero values for any non-nullable columns we don't have data for.
  • Populate any related host tables possible (host_mdm, host_operating_system, etc.)
  • When the host is unboxed, it will automatically enroll in Fleet. When that happens, we need to remove it from hosts_pending and update the hosts record with the full data set.

Things to consider while working on this:

  • Removing the host from hosts_pending at enroll time will make the enrollment operation a bit more complex, so we should bear that in mind.
    • Luke: Note this is not a hard requirement. I added it as a house keeping item, but if updating the record or handling it differently is easier to implement please consider other approaches.
  • Check the UI referenced in the parent epic to see where we might want to add indexes to, as this will be yet another column we'll want to filter/order by.

Metadata

Metadata

Assignees

Labels

#g-mdmMDM product group#legacy-platform-groupLegacy: platform group:releaseReady to write code. Scheduled in a release. See "Making changes" in handbook.

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions