kolide / launcher

Osquery launcher, autoupdater, and packager
https://kolide.com/launcher
Other
506 stars 103 forks source link

We should capture launcher metadata in flares #1752

Closed directionless closed 3 weeks ago

directionless commented 5 months ago

eg: /var/kolide-k2/k2device.kolide.com/metadata.json and the various platform specific paths.

RebeccaMahany commented 1 month ago

metadata.json will always live in the configured root directory -- you can call knapsack.RootDirectory() to get the root directory.

metadata.json contains the same info that's provided in the serverDataCheckup, so I think we should add this file to that checkup rather than creating a new checkup. You can update ExtraFileName in that checkup to "metadata.json" and then writing the file to the extraFH.