Some users may want to pin a particular version of osqueryd or launcher. This PR enables that functionality via the TUF autoupdater.
If a pinned version is set, the autoupdater will select that version first. If it cannot find that version, then it will fall back to using the release version for the configured update channel.
While working on this PR, I noticed I had a couple related functions about parsing and comparing versions, so I've moved them into their own file and separated out their tests as well.
Also -- updated to handle control server actions during the initial delay in a clearer and more opinionated way:
Flag changes should be noted and stored during the initial delay, but --
Autoupdates should never occur during the initial delay
Relates to https://github.com/kolide/launcher/issues/1577
Some users may want to pin a particular version of osqueryd or launcher. This PR enables that functionality via the TUF autoupdater.
If a pinned version is set, the autoupdater will select that version first. If it cannot find that version, then it will fall back to using the release version for the configured update channel.
While working on this PR, I noticed I had a couple related functions about parsing and comparing versions, so I've moved them into their own file and separated out their tests as well.
Also -- updated to handle control server actions during the initial delay in a clearer and more opinionated way: