Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⭐ support querypacks + filter supported queries (#908)
* ⭐ support querypacks + filter supported queries Requires mondoohq/cnquery#2389 1. Add support for querypacks - With cnspec building on top of cnquery, it was one of those features we have wanted to add for a while to make it more consistent - Querypacks will be executed and results printed to CLI. Note that we are in the process of improving the default output to be more compact, which will come in a follow-up soon. 2. Remove unsupported queries/checks - Users may not have all providers installed, which has caused wide-reaching policies (e.g. system-detection, or cloud+terraform hybrid policies) to throw errors - If a query or check cannot be compiled on local execution, it is now removed from the execution - Upstream policies continue to be handled in the usual way, since we only receive the subset that is applicable to a system 3. Add converter for querypacks to policies - This is more of an internal feature, but we wanted to make the code open to show how these two types are converted and then executed This brings us in line with cnquery behavior of bundles. Signed-off-by: Dominik Richter <dominik.richter@gmail.com> * 🟢 fix linter issues Signed-off-by: Dominik Richter <dominik.richter@gmail.com> --------- Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
- Loading branch information