fleet/server/fleet
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
..
policytest Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
activities.go Added activity item for fleetd enrollment with host serial and display name. (#23790) 2024-11-18 15:51:36 -06:00
agent_options.go Script Timeout Agent Options Part 1 of 2 (#20266) 2024-07-10 14:33:39 -06:00
agent_options_generated.go Add capability to serve YARA rules via authenticated Fleet endpoints (#23343) 2024-11-13 09:01:08 -08:00
agent_options_test.go Script Timeout Agent Options Part 1 of 2 (#20266) 2024-07-10 14:33:39 -06:00
aggregated_stats.go Performance stats for live queries (#15440) 2023-12-13 14:46:59 -06:00
app.go Merge branch 'main' into feat-include-any-label 2024-11-14 08:33:03 -06:00
app_test.go Add config for custom MDM URL (#22878) 2024-10-22 11:05:35 -06:00
apple_mdm.go Profile Labels Include Any CLI (#23434) 2024-11-05 15:13:44 -05:00
apple_mdm_test.go Update API for MDM profiles with "include any" labels option (#23456) 2024-11-05 12:12:22 -06:00
authz.go Merge conflicts 2024-04-16 10:20:59 -05:00
calendar.go Downloading a software installer package now shows the browser's built-in progress bar (#21341) 2024-08-20 12:37:29 -05:00
calendar_events.go Fixed issue where callback was clearing event body tag. (#20997) 2024-08-05 13:44:30 -03:00
calendar_events_test.go Fixed issue where callback was clearing event body tag. (#20997) 2024-08-05 13:44:30 -03:00
campaigns.go Added a new synchronous live query endpoint: POST /api/v1/fleet/queries/:id/run (#15860) 2024-01-03 09:39:16 -06:00
capabilities.go Add LUKS escrow trigger and orbit config endpoints, persist/retrieve LUKS passphrase (#23763) 2024-11-18 16:44:25 -06:00
capabilities_test.go fix panic if concurrent requests write capabilities (#13278) 2023-08-10 19:49:07 -03:00
carves.go report errors that can occur during file carving (#8972) 2022-12-09 13:21:30 -03:00
cron_schedules.go Add gosimple linter (#23250) 2024-10-29 14:17:51 -05:00
datastore.go Revise LUKS API to expect key slot and salt when escrowing successfully (#23952) 2024-11-20 07:03:02 -06:00
db.go Add the fleetctl debug {errors,db-locks} sub-commands (#3168) 2021-12-06 09:26:01 -05:00
device.go Hide "Self-service" in Fleet Desktop and My device page (#20047) 2024-07-02 11:32:49 -05:00
emails.go Custom email device-mapping: implement the CLI (fleetd + fleetctl) changes (#15763) 2023-12-21 11:22:59 -06:00
emails_test.go Custom email device-mapping: implement the CLI (fleetd + fleetctl) changes (#15763) 2023-12-21 11:22:59 -06:00
errors.go Improved label(s) validation when running queries (#23834) 2024-11-21 16:13:30 -06:00
errors_test.go Adding telemetry for specific Fleet Desktop errors (#23349) 2024-10-31 14:24:42 -05:00
fleetctl.go Remove kolide types and packages from backend (#974) 2021-06-06 15:07:29 -07:00
gen_activity_doc.go Update docs: Webhooks for global activity (#19863) 2024-06-26 16:48:58 -04:00
geoip.go 🧹 friday cleanup party: substitute deprecated import of go-kit (#19774) 2024-06-17 10:27:31 -03:00
global_schedule.go Remove unneeded interfaces (#1779) 2021-08-24 18:49:56 -03:00
hostresponse.go /api/_version_/fleet/hosts to return bad request instead of server error when passing invalid mdm_enrollment_status (#11242) 2023-04-19 18:43:15 -03:00
hosts.go Add Linux encryption states to APIs (#23806) 2024-11-19 13:11:59 -07:00
hosts_test.go feat: pre sonoma migration features (#21266) 2024-08-13 16:14:35 -04:00
installer.go add a new tool to upload installers to blob storage (#6661) 2022-07-14 16:11:52 -03:00
integrations.go NDES SCEP proxy backend (#22542) 2024-10-09 13:47:27 -05:00
invites.go Add update invite API (#2837) 2021-11-11 17:33:06 -03:00
jobs.go Allow "not_before" timestamp for worker jobs, schedule more quickly (#11512) 2023-05-03 16:25:36 -04:00
labels.go Improved label(s) validation when running queries (#23834) 2024-11-21 16:13:30 -06:00
labels_test.go Improved label(s) validation when running queries (#23834) 2024-11-21 16:13:30 -06:00
linux_mdm.go Add Linux encryption states to APIs (#23806) 2024-11-19 13:11:59 -07:00
live_query_store.go Address multiple redis-related issues observed with live queries (#16855) 2024-02-27 19:35:27 -06:00
logging.go Remove kolide types and packages from backend (#974) 2021-06-06 15:07:29 -07:00
maintained_apps.go Add count and apps_updated_at data to GET /fleet_maintained_apps and UI (#22778) 2024-10-09 15:49:06 +01:00
mdm.go Add Linux encryption states to APIs (#23806) 2024-11-19 13:11:59 -07:00
mdm_test.go Fix unreleased bugs with labels_include_any feature (#23734) 2024-11-14 08:30:32 -06:00
meta.go Add count to host upcoming activities API response (#16511) 2024-02-06 10:02:38 -06:00
microsoft_mdm.go Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
microsoft_mdm_test.go fix: process Add commands in Windows MDM profiles (#17570) 2024-03-12 15:21:17 -04:00
network_interfaces.go Remove kolide types and packages from backend (#974) 2021-06-06 15:07:29 -07:00
nudge.go Retime Nudge to 20:00 UTC (#23373) 2024-10-30 09:08:43 -05:00
operating_systems.go Strip RSR suffixes prior to handing off OS version from Nudge check to Semver comparison (#22830) 2024-10-10 12:15:53 -05:00
operating_systems_test.go Strip RSR suffixes prior to handing off OS version from Nudge check to Semver comparison (#22830) 2024-10-10 12:15:53 -05:00
orbit.go Add LUKS escrow trigger and orbit config endpoints, persist/retrieve LUKS passphrase (#23763) 2024-11-18 16:44:25 -06:00
orbit_test.go Fix extension delivery bug fix Windows extension paths to .ext.ext (#13986) 2023-09-22 05:17:27 -03:00
osquery.go Added server_settings.query_report_cap (#19692) 2024-06-14 12:24:01 -03:00
packs.go Add gosimple linter (#23250) 2024-10-29 14:17:51 -05:00
packs_test.go Fix incorrect integer conversion (#10188) 2023-02-28 18:01:25 -08:00
policies.go Include the policy ID and name in the "script ran" activity of a script run queued by a policy failure (#22690) 2024-10-08 15:45:31 -05:00
policies_test.go Add validation for policy specs (#13294) 2023-08-21 10:22:07 -06:00
queries.go Add gosimple linter (#23250) 2024-10-29 14:17:51 -05:00
queries_test.go 15381 host query report api (#15441) 2023-12-11 15:33:31 -07:00
query_results.go Remove kolide types and packages from backend (#974) 2021-06-06 15:07:29 -07:00
redis_pool.go Use a redis cluster-friendly store for rate limit (#2577) 2021-10-19 16:24:13 -04:00
scheduled_queries.go Add gosimple linter (#23250) 2024-10-29 14:17:51 -05:00
scripts.go fix: show script name in activity for setup experience script (#23944) 2024-11-19 17:38:09 -05:00
scripts_test.go HotFix err on script timeouts for legacy orbit versions (#20462) 2024-07-15 11:17:20 -06:00
service.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
sessions.go Change role of existing users only if SSO attributes are present in the SAMLResponse (#11966) 2023-05-30 17:49:59 -03:00
sessions_test.go Change role of existing users only if SSO attributes are present in the SAMLResponse (#11966) 2023-05-30 17:49:59 -03:00
setup_experience.go feat: swift dialog UI for setup experience (#22972) 2024-10-21 16:58:12 -04:00
setup_experience_test.go Setup experience state machine (#22845) 2024-10-18 12:01:53 -04:00
software.go Add team_identifier to macOS software (#23766) 2024-11-15 14:17:04 -03:00
software_installer.go Add team_identifier to macOS software (#23766) 2024-11-15 14:17:04 -03:00
software_installer_test.go Improve memory usage of software installers parsing (#23596) 2024-11-12 09:28:08 -05:00
software_test.go Updated host_software_installs table. 2024-09-06 09:49:27 -05:00
statistics.go Add AI features, maintenance window, and Fleet Desktop to usage statistics Story #19693 (#21131) 2024-08-12 15:12:28 -04:00
targets.go Update live query selector logic (OR -> AND) (#9559) 2023-01-30 18:35:56 -03:00
targets_test.go Optimize requests on packs page (#3327) 2021-12-13 21:50:24 -08:00
teams.go Add gosimple linter (#23250) 2024-10-29 14:17:51 -05:00
teams_test.go Backend support for iOS/iPadOS OS updates (#20649) 2024-07-24 14:34:23 -03:00
traits.go Add support for downloading a list of hosts in CSV format (#4596) 2022-03-15 15:14:42 -04:00
translator.go Remove unneeded interfaces (#1779) 2021-08-24 18:49:56 -03:00
user_roles.go Remove unneeded interfaces (#1779) 2021-08-24 18:49:56 -03:00
users.go Cap salt length before concatenating with plaintext for password updates (#17068) 2024-02-28 11:16:02 -08:00
users_test.go Cap salt length before concatenating with plaintext for password updates (#17068) 2024-02-28 11:16:02 -08:00
utils.go Add LUKS escrow trigger and orbit config endpoints, persist/retrieve LUKS passphrase (#23763) 2024-11-18 16:44:25 -06:00
vpp.go SE: CLI setup experience changes (#22956) 2024-10-23 14:51:02 -04:00
vulnerabilities.go Pull xz'd goval-dictionary sqlite files to evaluate vulnerabilities on Amazon Linux hosts (#21506) 2024-08-26 14:07:42 -05:00
windows_mdm.go Update API for MDM profiles with "include any" labels option (#23456) 2024-11-05 12:12:22 -06:00
windows_mdm_test.go feat: allow <Add> node in Windows MDM profiles (#17234) 2024-02-28 15:05:13 -05:00
windows_updates.go Feature 7076: Ingest installed windows updates (#7138) 2022-08-26 14:55:03 -04:00
windows_updates_tests.go Feature 7076: Ingest installed windows updates (#7138) 2022-08-26 14:55:03 -04:00