kolide / launcher

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

Use TUF metadata to determine version to download when packaging #1573

Closed RebeccaMahany closed 7 months ago

RebeccaMahany commented 7 months ago

Eventually, we will stop using the legacy Notary system, which means we will stop duplicating releases at <binary>-<channel>.tar.gz and expect clients to find the releases using the TUF metadata for that binary instead. This PR prepares for that by performing those steps when packaging.

This duplicates root.json (also located at ee/tuf/assets...) to avoid an import cycle. I didn't think this was a big enough deal to warrant pulling it out and moving it to a new shared location, but if others feel differently I'm happy to update.

Relates to https://github.com/kolide/launcher/issues/954, https://github.com/kolide/launcher/issues/1149

directionless commented 7 months ago

Looks good. tiny nits