fleetdm / fleet

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

Support Apple Global Service Exchange (GSX) #18093

Open dherder opened 4 months ago

dherder commented 4 months ago

Problem

As an IT admin, I need to know when my Apple devices have expired warranty coverage and purchase date.

Here is some documentation on how other solutions do this:

noahtalerman commented 4 months ago

@dherder can we get the data w/ osquery?

Also, is this a customers/prospect request?

dherder commented 4 months ago

@noahtalerman I don't think so, I did a search for "warranty" and "purchase" in the data tables and came up with nothing. It seems that there are ways to get the data from https://checkcoverage.apple.com/coverage but this is captcha gated. It seems that if the end user visits that site, a warranty.plist file could be generated that we could parse with osquery, but that isn't a solution. I added the prospect label.

noahtalerman commented 4 months ago

there are ways to get the data from https://checkcoverage.apple.com/coverage but this is captcha gated

Nice find. I wonder if there's an API...I did a quick Google search and couldn't find one.

That said, it seems like pointing users to this page could be a short term solution. They have the serial numbers in Fleet.

The page shows both purchase date and whether the device has any coverage. Is the prospect after any additional information?

RyanMorash commented 4 months ago

The GSX Web Services (GSXWS) API supplies this information. Individual customers (that meet Apple's requirements) need to sign up for a GSX account and can then request API access.