fleet/cmd/fleetctl
Konstantin Sykulev 46f10b85cd
Improved label(s) validation when running queries (#23834)
Previously when passing labels to the query run endpoints that do not
exist, the labels would simply be ignored. Now the endpoint will return
an error indicating which labels are invalid. This change also affects
the `fleetctl query` command `--labels` flag.

https://github.com/fleetdm/fleet/issues/23015

# Checklist for submitter

If some of the following don't apply, delete the relevant line.

<!-- Note that API documentation changes are now addressed by the
product design team. -->

- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/Committing-Changes.md#changes-files)
for more information.
- [x] Added/updated tests
- [x] Manual QA for all new/changed functionality

---------

Co-authored-by: Ian Littman <iansltx@gmail.com>
2024-11-21 16:13:30 -06:00
..
testdata Merge branch 'main' into feat-include-any-label 2024-11-14 08:33:03 -06:00
api.go add CLI for the new MDM cert flow (#19240) 2024-05-27 11:14:37 -03:00
api_test.go Initial fleetctl api command works with GETS and fields (#17971) 2024-05-07 11:22:05 -05:00
apply.go SE: CLI setup experience changes (#22956) 2024-10-23 14:51:02 -04:00
apply_test.go Linux disk encryption: frontend changes, backend missing private key errors, remove disk encryption endpoints dependence on MDM being enabled (#23714) 2024-11-20 11:58:47 -08:00
config.go chore: remove refs to deprecated io/ioutil (#14485) 2023-10-27 15:28:54 -03:00
config_test.go Enable errcheck linter for golangci-lint (#8899) 2022-12-05 16:50:49 -06:00
convert.go chore: remove refs to deprecated io/ioutil (#14485) 2023-10-27 15:28:54 -03:00
convert_test.go Enable staticcheck Go linter. (#23487) 2024-11-05 11:16:24 -06:00
debug.go Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
debug_test.go Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
delete.go Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
delete_test.go Activity feed webhooks backend (#19261) 2024-05-24 11:25:27 -05:00
flags.go Get MDM Command Filters (#20154) 2024-07-09 11:06:06 -06:00
fleetctl.go Initial fleetctl api command works with GETS and fields (#17971) 2024-05-07 11:22:05 -05:00
generate.go Minor fixes from analyzing test results (#23260) 2024-10-25 15:57:51 -05:00
generate_test.go fix fleetctl generate mdm-apple-bm (#19507) 2024-06-04 18:19:09 -03:00
get.go Get MDM Command Filters (#20154) 2024-07-09 11:06:06 -06:00
get_test.go Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
gitops.go fix: return error in gitops if using deprecated field and there are more than 1 abm tokens (#23768) 2024-11-13 14:07:59 -05:00
gitops_enterprise_integration_test.go NDES SCEP proxy backend (#22542) 2024-10-09 13:47:27 -05:00
gitops_integration_test.go NDES SCEP proxy backend (#22542) 2024-10-09 13:47:27 -05:00
gitops_test.go Merge branch 'main' into feat-include-any-label 2024-11-14 08:33:03 -06:00
goquery.go fleetctl now runs saved queries (#15667) 2023-12-15 12:55:39 -06:00
hosts.go fleetctl, API, copy updates around host identifiers (#20220) 2024-07-09 10:25:01 -07:00
hosts_test.go Profiles batch activity (#21604) 2024-08-30 16:00:35 -05:00
kill_process.go Download and launch orbit for the current device when starting preview (#2437) 2021-10-15 18:23:06 -03:00
kill_process_windows.go Download and launch orbit for the current device when starting preview (#2437) 2021-10-15 18:23:06 -03:00
login.go Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
logout.go Use new error handling approach in other packages (#2954) 2021-11-22 09:13:26 -05:00
logout_test.go Simplify fleetctl implementation and improve testing (#3830) 2022-01-24 16:40:51 -03:00
mdm.go fleetctl, API, copy updates around host identifiers (#20220) 2024-07-09 10:25:01 -07:00
mdm_test.go Add gosimple linter (#23250) 2024-10-29 14:17:51 -05:00
package.go Add support for Linux ARM64 (#19931) 2024-07-17 16:07:59 -04:00
package_test.go Add mTLS support to fleetd (#11319) 2023-04-27 08:44:39 -03:00
preview.go fleetd to start up when TUF signatures are expired (#23102) 2024-10-28 20:40:19 -03:00
preview_test.go Improvements to go tests in CI (#21545) 2024-08-26 08:55:53 -05:00
query.go Improved label(s) validation when running queries (#23834) 2024-11-21 16:13:30 -06:00
query_output.go add host_display_name to live query rows (#8251) 2022-10-17 15:52:25 +02:00
query_test.go Improved label(s) validation when running queries (#23834) 2024-11-21 16:13:30 -06:00
scripts.go Bugfix: Orbit run-script copy update (#20473) 2024-07-15 12:59:32 -06:00
scripts_test.go Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
session_test.go chore: remove refs to deprecated io/ioutil (#14485) 2023-10-27 15:28:54 -03:00
setup.go Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
testing_utils.go Add capability to serve YARA rules via authenticated Fleet endpoints (#23343) 2024-11-13 09:01:08 -08:00
trigger.go Add gosimple linter (#23250) 2024-10-29 14:17:51 -05:00
trigger_test.go 🧹 friday cleanup party: substitute deprecated import of go-kit (#19774) 2024-06-17 10:27:31 -03:00
upgrade_packs.go fleetctl now runs saved queries (#15667) 2023-12-15 12:55:39 -06:00
upgrade_packs_test.go Save Query Results to DB (#14335) 2023-10-10 09:44:03 -03:00
user.go Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
users_test.go Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
vulnerability_data_stream.go Fix backoff in vuln stream logging (#19148) 2024-05-28 08:13:46 -06:00
vulnerability_data_stream_test.go Improvements to go tests in CI (#21545) 2024-08-26 08:55:53 -05:00