fleet/server/service
Victor Lyuboslavsky b3462770fe
Added Apple Rapid Security Response version to host details. (#14597)
#12888 

Updated code so that macOS version returns RSR, if available. For
example: `14.3.1 (a)` as opposed to simply `14.3.1`
This feature is supported by osquery with the `extra` column in
`os_version` table.

Since I could not get a real macOS running a version with RSR, I did the
following manual checks:
- ensured that `extra` column from osquery `os_version` table was being
received for processing
- hard coded the `extra` column result on the server and verified the OS
version was correct in GUI and REST APIs

Main testing was done by Zach following these
[instructions](https://docs.google.com/document/d/18xsCEFlpcBL-5EbQhvmUNuJz3XM0Ak-NfCCwxEQXVic/edit)
- I confirmed that the one incorrect query result was due to a bad query

# Checklist for submitter
- [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] Added/updated tests
- [x] Manual QA for all new/changed functionality
2023-10-26 16:57:54 -05:00
..
async upgrade Go version to 1.21.1 (#13877) 2023-09-13 15:59:35 -03:00
externalsvc remove unused logic specific to DEP+Okta+ROP (#11261) 2023-04-21 14:57:52 -03:00
middleware maintenance merge of main into feature branch (#14393) 2023-10-09 14:28:35 -07:00
mock update mockimpl version to allow concurrent mock calls (#9989) 2023-02-21 16:36:06 -03:00
osquery_utils Added Apple Rapid Security Response version to host details. (#14597) 2023-10-26 16:57:54 -05:00
redis_policy_set Migrate team-related endpoints to new pattern (#3740) 2022-01-19 10:52:14 -05:00
schedule Run cleanup of cron_stats outside of the schedule package to prevent outages from breaking cron jobs (#10439) 2023-03-13 16:15:30 -03:00
testdata Add mTLS support to fleetd (#11319) 2023-04-27 08:44:39 -03:00
activities_test.go New observer_plus role (#10675) 2023-04-05 15:23:49 -03:00
activities.go Allow setting user roles during JIT provisioning (#10193) 2023-03-01 20:18:40 -03:00
appconfig_test.go maintenance merge of main into feature branch (#14393) 2023-10-09 14:28:35 -07:00
appconfig.go Fix validations for applying MDM config changes (#14517) 2023-10-26 15:48:32 -05:00
apple_mdm_test.go Bring MDM hotfixes to main (#14494) 2023-10-13 08:49:11 -03:00
apple_mdm.go adjust response status code for mdm/apple/enqueue (#14666) 2023-10-26 18:20:11 -03:00
base_client_errors.go Finalize MDM commands part 2: implement fleetctl mdm run-command (#10866) 2023-04-03 14:25:49 -04:00
base_client_test.go Add mTLS support to fleetd (#11319) 2023-04-27 08:44:39 -03:00
base_client.go Combine Schedules and Queries: API changes (#12778) 2023-07-24 20:17:20 -04:00
campaigns_test.go Make activities typed and auto-generate docs for each type (#9069) 2022-12-23 13:05:16 -03:00
campaigns.go Prevent empty logging_type when creating and editing queries (#14575) 2023-10-16 19:33:39 -03:00
carves_test.go report errors that can occur during file carving (#8972) 2022-12-09 13:21:30 -03:00
carves.go Add UUID to Fleet errors and clean up error msgs (#10411) 2023-03-13 13:44:06 -03:00
client_appconfig.go Add macos custom profiles support via fleetctl apply (#9824) 2023-02-15 13:01:44 -05:00
client_apple_mdm.go Improve error handling for fleetctl mdm run-comand (#11588) 2023-05-09 13:43:15 -05:00
client_carves.go Introduce API version 2022-04, deprecate use of /global in paths (#4731) 2022-04-05 11:35:53 -04:00
client_debug.go don't clear errors automatically when reading them from Redis (#5623) 2022-05-10 11:44:43 -03:00
client_hosts.go Add load test script for the fleetd labels feature (#14289) 2023-10-11 15:37:10 -03:00
client_labels.go Introduce API version 2022-04, deprecate use of /global in paths (#4731) 2022-04-05 11:35:53 -04:00
client_live_query_test.go Warnings in fleetctl should use Stderr not Stdout (#12316) 2023-06-15 13:13:41 -04:00
client_live_query.go Send custom headers for live queries (#8991) 2022-12-12 07:56:35 -08:00
client_mdm.go 7766 backmerge main (#14324) 2023-10-05 11:39:48 -06:00
client_packs.go Add fleetctl upgrade-packs command to migrate 2017 packs to queries (#13078) 2023-08-08 08:21:57 -04:00
client_policies.go Introduce API version 2022-04, deprecate use of /global in paths (#4731) 2022-04-05 11:35:53 -04:00
client_profiles.go Warnings in fleetctl should use Stderr not Stdout (#12316) 2023-06-15 13:13:41 -04:00
client_queries.go Combine Schedules and Queries: API changes (#12778) 2023-07-24 20:17:20 -04:00
client_scripts.go Feat: saved scripts (#14409) 2023-10-10 19:00:45 -03:00
client_sessions.go Introduce API version 2022-04, deprecate use of /global in paths (#4731) 2022-04-05 11:35:53 -04:00
client_setup.go fleetctl preview to use v1 setup path, to support previous versions of fleet (#5331) 2022-04-25 10:02:21 -03:00
client_software.go add upgrade tests (#6596) 2022-07-19 15:11:51 -06:00
client_targets.go Add display_name to more results (#8204) 2022-10-14 11:14:18 -03:00
client_teams.go Feat: saved scripts (#14409) 2023-10-10 19:00:45 -03:00
client_test.go cli: try to infer the bootstrap package name from the URL too (#11571) 2023-05-11 10:36:28 -03:00
client_trigger.go Add fleetctl trigger command (#8877) 2022-12-06 09:56:54 -06:00
client_users.go Filter out non-observer_can_run queries for observers in fleetctl get queries command to match the UI. (#11251) 2023-04-26 11:38:20 -03:00
client.go Feat: saved scripts (#14409) 2023-10-10 19:00:45 -03:00
cron_schedules_test.go Add instanceID to schedule logging (#10413) 2023-03-13 15:37:03 -03:00
cron_schedules.go Implement schedule triggers (#8747) 2022-11-28 13:28:06 -06:00
debug_handler_test.go Add fleetctl debug migrations command to get missing migrations (#2967) 2021-11-22 14:06:12 -03:00
debug_handler.go Enable errcheck linter for golangci-lint (#8899) 2022-12-05 16:50:49 -06:00
device_client_test.go 7766 backmerge main (#14324) 2023-10-05 11:39:48 -06:00
device_client.go 7766 backmerge main (#14324) 2023-10-05 11:39:48 -06:00
devices_test.go upgrade Go version to 1.21.1 (#13877) 2023-09-13 15:59:35 -03:00
devices.go allow clients to report errors back to the server (#13478) 2023-08-24 13:04:27 -03:00
endpoint_campaigns.go override the websocket upgrader checkorigin func to return true (#10841) 2023-03-30 08:09:47 -04:00
endpoint_middleware_test.go Add UUID to Fleet errors and clean up error msgs (#10411) 2023-03-13 13:44:06 -03:00
endpoint_middleware.go Add UUID to Fleet errors and clean up error msgs (#10411) 2023-03-13 13:44:06 -03:00
endpoint_setup.go Add read replica testing helpers and fix non-sso login bug (#4908) 2022-04-04 16:52:05 -07:00
endpoint_utils_test.go Set interface for response types (#9121) 2022-12-27 11:26:59 -03:00
endpoint_utils.go paginate the policies API (#13459) 2023-08-30 16:30:17 -06:00
frontend.go add browser-related security headers to HTML responses (#8180) 2022-10-12 10:19:21 -03:00
global_policies_test.go paginate the policies API (#13459) 2023-08-30 16:30:17 -06:00
global_policies.go paginate the policies API (#13459) 2023-08-30 16:30:17 -06:00
global_schedule_test.go feat: deletion for query results (#14302) 2023-10-09 17:43:17 -04:00
global_schedule.go Combine Schedules and Queries: API changes (#12778) 2023-07-24 20:17:20 -04:00
handler_test.go remove feature flags to enable MDM (#10746) 2023-03-27 16:30:29 -03:00
handler.go Merge branch 'main' into 7766-main-merge 2023-10-11 12:56:52 -07:00
hosts_test.go Add host mdm disk encryption detail to host details API response (#14623) 2023-10-18 15:39:23 -05:00
hosts.go Add integration tests for host disk encryption details (#14636) 2023-10-19 09:23:42 -05:00
http_auth_test.go Add UUID to Fleet errors and clean up error msgs (#10411) 2023-03-13 13:44:06 -03:00
http_auth.go Remove unused request-id in context (#3632) 2022-01-13 14:12:56 -08:00
http_publicip.go Log all successful logins as activity and all attempts with ip in stderr. (#9095) 2022-12-21 18:29:51 +01:00
installer_test.go Add UUID to Fleet errors and clean up error msgs (#10411) 2023-03-13 13:44:06 -03:00
installer.go Add UUID to Fleet errors and clean up error msgs (#10411) 2023-03-13 13:44:06 -03:00
integration_core_test.go Prevent empty logging_type when creating and editing queries (#14575) 2023-10-16 19:33:39 -03:00
integration_desktop_test.go allow clients to report errors back to the server (#13478) 2023-08-24 13:04:27 -03:00
integration_ds_only_test.go Support async saving of hosts' last seen time (#5640) 2022-05-10 11:29:17 -04:00
integration_enterprise_test.go Prevent empty logging_type when creating and editing queries (#14575) 2023-10-16 19:33:39 -03:00
integration_live_queries_test.go Prevent empty logging_type when creating and editing queries (#14575) 2023-10-16 19:33:39 -03:00
integration_logger_test.go Add UUID to Fleet errors and clean up error msgs (#10411) 2023-03-13 13:44:06 -03:00
integration_mdm_test.go adjust response status code for mdm/apple/enqueue (#14666) 2023-10-26 18:20:11 -03:00
integration_sandbox_test.go Bug 10767: Don't return 500s if enroll secret not found (#11121) 2023-04-13 16:16:40 -04:00
integration_smtp_test.go Return proper status code if SMTP conf is invalid (#12389) 2023-06-21 14:40:26 -04:00
integration_sso_test.go Return 403 instead of 500 when conditions are not met to perform a required pwd reset (#13244) 2023-08-09 15:28:04 -04:00
invites_test.go Add UUID to Fleet errors and clean up error msgs (#10411) 2023-03-13 13:44:06 -03:00
invites.go Do not return empty SSO and SMTP settings for non-global-admins (#12180) 2023-06-07 16:06:36 -03:00
jitter_test.go Migrate special-case endpoints to new pattern (#4511) 2022-03-08 11:27:38 -05:00
jitter.go Migrate special-case endpoints to new pattern (#4511) 2022-03-08 11:27:38 -05:00
labels_test.go ChromeOS support for Fleet dashboard (#11953) 2023-05-26 14:32:01 -04:00
labels.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
live_queries.go Set interface for response types (#9121) 2022-12-27 11:26:59 -03:00
mail_test.go Do not return empty SSO and SMTP settings for non-global-admins (#12180) 2023-06-07 16:06:36 -03:00
mdm_test.go maintenance merge of main into feature branch (#14393) 2023-10-09 14:28:35 -07:00
mdm.go maintenance merge of main into feature branch (#14393) 2023-10-09 14:28:35 -07:00
mem_failing_policies_set_test.go Fix failing policy sets for redis cluster mode (#3725) 2022-01-17 15:16:54 -05:00
metrics_appconfig.go Fix SMTP e-mail send when SMTP server has credentials (#10758) 2023-03-28 15:23:15 -03:00
metrics_change_email.go Update go-kit to 0.4.0 (#1411) 2017-03-15 08:55:30 -07:00
metrics_invites.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
metrics_labels.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
metrics_sessions.go add back-end implementation for SSO JIT provisioning (#7182) 2022-08-15 14:42:33 -03:00
metrics_users.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
metrics.go Issue 1362 fleetctl user roles (#1397) 2021-07-16 15:28:13 -03:00
microsoft_mdm_test.go Adding support for RequestSecurityToken messages - Windows MDM enroll endpoint (#12555) 2023-07-05 10:06:37 -03:00
microsoft_mdm.go maintenance merge of main into feature branch (#14393) 2023-10-09 14:28:35 -07:00
orbit_client.go maintenance merge of main into feature branch (#14393) 2023-10-09 14:28:35 -07:00
orbit_test.go Add orbit notification and API endpoints to send/receive scripts to hosts (part 2 of ticket) (#13447) 2023-08-23 16:47:47 -04:00
orbit.go don't preemptively set disk encryption as on (#14533) 2023-10-13 18:05:03 -03:00
osquery_test.go Add optimizations for query reports at scale (#14710) 2023-10-25 19:20:27 -03:00
osquery.go Add optimizations for query reports at scale (#14710) 2023-10-25 19:20:27 -03:00
packs_test.go Combine Schedules and Queries: API changes (#12778) 2023-07-24 20:17:20 -04:00
packs.go Fix permissions on GitOps user for searching hosts or count targets (#11448) 2023-05-01 12:57:28 -03:00
queries_test.go Add optimizations for query reports at scale (#14710) 2023-10-25 19:20:27 -03:00
queries.go Add optimizations for query reports at scale (#14710) 2023-10-25 19:20:27 -03:00
scheduled_queries_test.go Combine Schedules and Queries: API changes (#12778) 2023-07-24 20:17:20 -04:00
scheduled_queries.go Combine Schedules and Queries: API changes (#12778) 2023-07-24 20:17:20 -04:00
scripts_test.go Always return empty host scripts details for unsupported platforms (#14451) 2023-10-12 13:25:05 -05:00
scripts.go Feat: saved scripts (#14409) 2023-10-10 19:00:45 -03:00
service_appconfig_test.go New gitops role (#10850) 2023-04-12 16:11:04 -03:00
service_appconfig.go Do not return empty SSO and SMTP settings for non-global-admins (#12180) 2023-06-07 16:06:36 -03:00
service_campaign_test.go add configuration to disable origin header check (#10779) 2023-03-28 01:23:29 -04:00
service_campaigns.go Provide more feedback to the user when there's a Redis connection issue when running live queries (#11947) 2023-06-01 16:11:55 -03:00
service_errors.go Add UUID to Fleet errors and clean up error msgs (#10411) 2023-03-13 13:44:06 -03:00
service_users.go New gitops role (#10850) 2023-04-12 16:11:04 -03:00
service.go Add certificate management for Microsoft MDM (WSTEP) (#12543) 2023-06-29 19:31:53 -03:00
sessions_test.go Do not return empty SSO and SMTP settings for non-global-admins (#12180) 2023-06-07 16:06:36 -03:00
sessions.go Do not return empty SSO and SMTP settings for non-global-admins (#12180) 2023-06-07 16:06:36 -03:00
software_test.go Refactor license so it is stored in the context (#8544) 2022-11-15 09:08:05 -05:00
software.go Update aggregated_stats to support "no team" in addition to "all teams" (#10466) 2023-03-14 17:01:16 -04:00
status.go Set interface for response types (#9121) 2022-12-27 11:26:59 -03:00
targets_test.go Refactor license so it is stored in the context (#8544) 2022-11-15 09:08:05 -05:00
targets.go Set interface for response types (#9121) 2022-12-27 11:26:59 -03:00
team_policies_test.go paginate the policies API (#13459) 2023-08-30 16:30:17 -06:00
team_policies.go paginate the policies API (#13459) 2023-08-30 16:30:17 -06:00
team_schedule_test.go feat: deletion for query results (#14302) 2023-10-09 17:43:17 -04:00
team_schedule.go Combine Schedules and Queries: API changes (#12778) 2023-07-24 20:17:20 -04:00
teams_test.go implement fleetctl apply new team with secret (#13062) 2023-08-02 17:42:01 +01:00
teams.go 12613 Azure AD JWT Auth token support (#12817) 2023-07-19 13:30:24 -03:00
testing_client.go Feat: saved scripts (#14409) 2023-10-10 19:00:45 -03:00
testing_utils.go Schedule queries on hosts even if automations off (given we now store results) (#14411) 2023-10-11 15:20:06 -03:00
translator.go Set interface for response types (#9121) 2022-12-27 11:26:59 -03:00
transport_error_test.go Add UUID to Fleet errors and clean up error msgs (#10411) 2023-03-13 13:44:06 -03:00
transport_error.go Add UUID to Fleet errors and clean up error msgs (#10411) 2023-03-13 13:44:06 -03:00
transport_setup.go Update go-kit to 0.4.0 (#1411) 2017-03-15 08:55:30 -07:00
transport_test.go For requests with invalid list options, return 400 instead of 500 (#11632) 2023-05-17 13:41:30 -07:00
transport.go maintenance merge of main into feature branch (#14393) 2023-10-09 14:28:35 -07:00
trigger.go Set interface for response types (#9121) 2022-12-27 11:26:59 -03:00
user_roles.go ensure ds.TeamByName returns a 4xx response if no team is found (#12620) 2023-07-13 11:55:05 -03:00
users_test.go upgrade Go version to 1.21.1 (#13877) 2023-09-13 15:59:35 -03:00
users.go 7766 backmerge main (#14324) 2023-10-05 11:39:48 -06:00
validation_setup.go Use new error handling approach in other packages (#2954) 2021-11-22 09:13:26 -05:00