TODO
Fleet includes a small library of queries to create policies from.
The Fleet website also includes a library of queries, which includes queries that are not policy queries.
It would be nice to have access to such a library within the Fleet product itself.
[ ] When creating a new query, there should be a way for users to select queries from a library. Maybe a pull down menu similar to the tables pull down menu?
[ ] Filters must work on it to allow users to find what they want fast
[ ] The queries that are currently saved on the Fleet instance should also be shown in the same UI as this, so queries previously created on that instance can be found at the same time. For example, a Fleet user might have 500 queries saved on the instance. When creating a new one, they search for "virus" in the library - they are looking for a sample query to check the state of antivirus on Windows systems. While there might be one available from Fleet itself, they would also find their own query for antivirus, which is tweaked for their own environment.
[ ] Selecting a query in that UI is only used to populate the actual query. That's it!
[ ] Stretch goal: queries on the Fleet website and queries in the product should be in sync and have a single source of truth.
Goal
TODO Fleet includes a small library of queries to create policies from. The Fleet website also includes a library of queries, which includes queries that are not policy queries.
It would be nice to have access to such a library within the Fleet product itself.
This should probably only be considered after https://github.com/fleetdm/fleet/issues/4106
How?