From 788f8474310c5fff1103c5faa65960bb728f0470 Mon Sep 17 00:00:00 2001 From: Jordan Wright Date: Wed, 15 Nov 2023 16:18:35 -0600 Subject: [PATCH] Bump minimum osquery versions (#15101) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### Checklist for submitter - [x] Changes file added for user-visible changes in `changes/` or `orbit/changes/`. See [Changes files](https://fleetdm.com/docs/contributing/committing-changes#changes-files) for more information. - [x] Manual QA for all new/changed functionality ### Summary This PR adds the [latest osquery versions](https://github.com/osquery/osquery/releases) to the list of versions suitable for use in a query's "minimum osquery version" setting. As far as I could tell, this was solely a frontend bug and did not require any backend changes. ref: https://github.com/fleetdm/fleet/issues/14991 ### Test Plan I updated a standard query to include: ```yaml min_osquery_version: 5.10.2 ``` And then applied the query with `fleetctl apply`. I then saw the version reflected in the UI: Screenshot 2023-11-12 at 10 01 32 PM I also manually set the minimum osquery version in the UI and confirmed it was reflected in the API response and when refreshing the page. Longer term, I'd encourage considering whether setting up some kind of GH Action or, easier but more manual, an engineering ritual might make sense here to update this list as osquery releases happen. 🤷 --- changes/14991-bump-minimum-osquery-versions | 1 + frontend/utilities/constants.ts | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 changes/14991-bump-minimum-osquery-versions diff --git a/changes/14991-bump-minimum-osquery-versions b/changes/14991-bump-minimum-osquery-versions new file mode 100644 index 0000000000..1ac0da95ef --- /dev/null +++ b/changes/14991-bump-minimum-osquery-versions @@ -0,0 +1 @@ +- - Updated the list of minimum osquery versions to include the latest releases up to 5.10.2 diff --git a/frontend/utilities/constants.ts b/frontend/utilities/constants.ts index b911d225a6..61fb0bc4e1 100644 --- a/frontend/utilities/constants.ts +++ b/frontend/utilities/constants.ts @@ -55,6 +55,8 @@ export const MAX_OSQUERY_SCHEDULED_QUERY_INTERVAL = 604800; export const MIN_OSQUERY_VERSION_OPTIONS = [ { label: "All", value: "" }, + { label: "5.10.2 +", value: "5.10.2" }, + { label: "5.9.1 +", value: "5.9.1" }, { label: "5.8.2 +", value: "5.8.2" }, { label: "5.8.1 +", value: "5.8.1" }, { label: "5.7.0 +", value: "5.7.0" },