fleet/changes
Victor Lyuboslavsky 1e0fa92428
13998 host options validation (#14539)
#13998 

Cleaned up REST API input validation for hosts, carves, users endpoints.

rest-api.md changes explained:
https://www.loom.com/share/9cd82653bacb4528bdaac117ec85a976

For the following endpoints:
/api/v1/fleet/hosts
/api/v1/fleet/hosts/count
/api/v1/fleet/hosts/report
  - converted validation errors from 500 to 400 HTTP status code
- added validation that policy_id must be present when policy_response
is specified
  - added validation that policy_response must be `passing` or `failing`
  - added validation that `os_name` must be specified with `os_version`

For the following endpoint:
/api/v1/fleet/users
  - converted team_id validation error from 500 to 400 HTTP status code

For the following endpoint:
/api/v1/fleet/carves
- added rest-api.md documentation for `page`, `per_page`, `order_key`,
`order_direction`, and `expired`
- converted `expired` validation error from 500 to 400 HTTP status code

# Checklist for submitter
If some of the following don't apply, delete the relevant line.

- [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] Documented any API changes (docs/Using-Fleet/REST-API.md or
docs/Contributing/API-for-contributors.md)
- [x] Added/updated tests
- [x] Manual QA for all new/changed functionality

---------

Co-authored-by: Rachael Shaw <r@rachael.wtf>
2023-10-27 15:13:20 -05:00
..
.keep Issue 1009 calculate diff software (#1305) 2021-07-08 13:57:43 -03:00
10888-backend-analytics-for-premium feat: make analytics always true for premium customers (#14607) 2023-10-27 11:41:18 -04:00
10888-premium-usage-statistics Fleet UI: Add usage statistics always on for premium users to to app settings page (#14604) 2023-10-27 13:05:06 -04:00
12888-apple-rapid-security-response Added Apple Rapid Security Response version to host details. (#14597) 2023-10-26 16:57:54 -05:00
12997-mdm-config-validations Fix validations for applying MDM config changes (#14517) 2023-10-26 15:48:32 -05:00
13615-ignore-software-without-version Vulnerability processing should ignore software without version (#14612) 2023-10-26 18:28:08 -03:00
13712-context-run-command allow to use --context in fleetctl mdm run-command (#14665) 2023-10-26 19:09:31 -03:00
13998-host-options-validation 13998 host options validation (#14539) 2023-10-27 15:13:20 -05:00
14056-file-ext prevent a bug preventing .mobileconfig uploads in Linux/Windows (#14716) 2023-10-26 18:20:24 -03:00
14170-chromeos-software-bug ChromeOS: [bug] Surface chrome extensions as software for ChromeOS hosts (#14624) 2023-10-27 13:04:07 -04:00
14238-enroll-reference allow macOS hosts that turned on MDM via SSO to renew their enrollment (#14739) 2023-10-27 12:42:30 -03:00
14529-enqueue-apple-error adjust response status code for mdm/apple/enqueue (#14666) 2023-10-26 18:20:11 -03:00
14733-14661-queries-page-fix Fleet UI: Manage queries page uses URL params as source of truth for table and inherited table views (#14750) 2023-10-26 13:35:55 -04:00
bug-14431-surface-resolution-to-observers Fleet UI: Surface policy resolution to observers in UI (#14574) 2023-10-27 13:04:29 -04:00
issue-13012-log-abm-terms-change Log when ABM terms have changed without requiring debug logging (#14712) 2023-10-24 09:51:34 -04:00
issue-13012-update-abm-terms-banner-copy update copy for ABM terms banner message (#14774) 2023-10-27 18:06:10 +01:00