fleet/server/service
keepwn b42d213689
Support close the websocket of LiveQueryResultsHandler (#1006)
* Support close `LiveQueryResultsHandler`

* Start adding test

* Make LiveQuery exit when the context is Done

* Fix lint and remove debug print

* Update server/service/client_live_query.go

Co-authored-by: Zach Wasserman <zach@fleetdm.com>

* Revert "Update server/service/client_live_query.go"

This reverts commit be67ca1512fe502503e821393c2b9e84f5e6e82e.

Co-authored-by: Tomas Touceda <chiiph@gmail.com>
Co-authored-by: Zach Wasserman <zach@fleetdm.com>
2021-09-10 16:26:39 -03:00
..
middleware Return a distinct error when the auth header is not available vs when it's bad (#1294) 2021-07-05 10:17:31 -03:00
mock Debug log per host (#1978) 2021-09-10 14:48:33 -03:00
osquery_utils Issue 1601 disk space (#1735) 2021-08-20 14:57:37 -03:00
testdata add endpoint to serve the kolide certificate back to the user (#1025) 2017-01-20 14:32:10 -05:00
client_appconfig.go Refactor app config (POC, for now) (#1685) 2021-08-20 12:27:41 -03:00
client_carves.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
client_debug.go Add debug endpoints and associated fleetctl commands (#45) 2020-11-17 17:12:37 -08:00
client_errors.go Configure golangci-lint for the whole repository 2021-08-24 13:35:03 -04:00
client_hosts.go add team_id filter to fleetctl & api (#1596) 2021-08-11 10:40:56 -04:00
client_labels.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
client_live_query_test.go Support close the websocket of LiveQueryResultsHandler (#1006) 2021-09-10 16:26:39 -03:00
client_live_query.go Support close the websocket of LiveQueryResultsHandler (#1006) 2021-09-10 16:26:39 -03:00
client_packs.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
client_queries.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
client_sessions.go Remove username from UI (#1168) 2021-06-24 13:42:29 -07:00
client_setup.go Refactor app config (POC, for now) (#1685) 2021-08-20 12:27:41 -03:00
client_targets.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
client_teams.go Issue 1361 fleetctl teams (#1405) 2021-07-19 16:48:49 -03:00
client_users.go Issue 1359 fleetctl team transfer (#1413) 2021-07-21 14:03:10 -03:00
client.go Issue 1600 fleetctl license expiration (#1800) 2021-08-26 10:28:53 -03:00
debug_handler_test.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
debug_handler.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
endpoint_activities.go Issue 1324 add activity feed (#1343) 2021-07-13 16:54:22 -03:00
endpoint_appconfig.go Issue 1599 offline webhook (#1777) 2021-08-27 11:15:36 -03:00
endpoint_campaigns.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
endpoint_carves.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
endpoint_certificate.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
endpoint_change_email.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
endpoint_global_schedule.go Issue 1231 add global schedule (#1383) 2021-07-16 10:15:15 -03:00
endpoint_hosts.go fix get hosts command to properly output json/yaml (#1774) 2021-08-31 11:37:03 -04:00
endpoint_invites.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
endpoint_labels.go Issue 1362 fleetctl user roles (#1397) 2021-07-16 15:28:13 -03:00
endpoint_middleware_test.go Debug log per host (#1978) 2021-09-10 14:48:33 -03:00
endpoint_middleware.go Debug log per host (#1978) 2021-09-10 14:48:33 -03:00
endpoint_osquery.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
endpoint_packs.go modify packs api to filter non-empty pack_type from response (#1558) 2021-08-10 09:43:27 -04:00
endpoint_queries.go Issue 1362 fleetctl user roles (#1397) 2021-07-16 15:28:13 -03:00
endpoint_scheduled_queries.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
endpoint_sessions.go Refactor app config (POC, for now) (#1685) 2021-08-20 12:27:41 -03:00
endpoint_setup.go Refactor app config (POC, for now) (#1685) 2021-08-20 12:27:41 -03:00
endpoint_status.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
endpoint_targets.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
endpoint_teams.go Configure golangci-lint for the whole repository 2021-08-24 13:35:03 -04:00
endpoint_users.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
endpoint_utils_test.go Make decoder completely generic and simplify things (#1542) 2021-08-03 16:56:54 -03:00
endpoint_utils.go Make adding routes a bit simpler (#1771) 2021-08-25 10:08:14 -03:00
frontend.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
global_policies.go Make adding routes a bit simpler (#1771) 2021-08-25 10:08:14 -03:00
handler_test.go Debug log per host (#1978) 2021-09-10 14:48:33 -03:00
handler.go Debug log per host (#1978) 2021-09-10 14:48:33 -03:00
http_auth_test.go Issue 1600 fleetctl license expiration (#1800) 2021-08-26 10:28:53 -03:00
http_auth.go Move logger up to the HTTP layer and make it generic (#1439) 2021-08-02 19:06:27 -03:00
integration_test.go Rename core->free and basic->premium (#1870) 2021-09-03 13:05:23 -03:00
metrics_appconfig.go Refactor app config (POC, for now) (#1685) 2021-08-20 12:27:41 -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 Refactor app config (POC, for now) (#1685) 2021-08-20 12:27:41 -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
service_activities.go Issue 1324 add activity feed (#1343) 2021-07-13 16:54:22 -03:00
service_agent_options_test.go Refactor app config (POC, for now) (#1685) 2021-08-20 12:27:41 -03:00
service_agent_options.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
service_appconfig_test.go Refactor app config (POC, for now) (#1685) 2021-08-20 12:27:41 -03:00
service_appconfig.go Add global policies (#1750) 2021-08-24 17:24:52 -03:00
service_campaign_test.go Address issues related to Redis Cluster support (#1885) 2021-09-01 16:32:57 -04:00
service_campaigns.go Configure golangci-lint for the whole repository 2021-08-24 13:35:03 -04:00
service_carves_test.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
service_carves.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
service_certificate_test.go add endpoint to serve the kolide certificate back to the user (#1025) 2017-01-20 14:32:10 -05:00
service_certificate.go Refactor app config (POC, for now) (#1685) 2021-08-20 12:27:41 -03:00
service_errors.go Refactor teams service methods (#910) 2021-05-31 17:07:51 -07:00
service_global_schedule.go Issue 1231 add global schedule (#1383) 2021-07-16 10:15:15 -03:00
service_hosts_test.go Allow to refetch hosts if you are an observer/maintainer for the team for that host (#1649) 2021-08-11 19:01:37 -03:00
service_hosts.go Allow to refetch hosts if you are an observer/maintainer for the team for that host (#1649) 2021-08-11 19:01:37 -03:00
service_invites_test.go Remove unneeded interfaces (#1779) 2021-08-24 18:49:56 -03:00
service_invites.go Refactor app config (POC, for now) (#1685) 2021-08-20 12:27:41 -03:00
service_labels_test.go Add All Linux label (#1582) 2021-08-18 15:55:48 -03:00
service_labels.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
service_osquery_test.go Debug log per host (#1978) 2021-09-10 14:48:33 -03:00
service_osquery.go Debug log per host (#1978) 2021-09-10 14:48:33 -03:00
service_packs_test.go Refactor app config (POC, for now) (#1685) 2021-08-20 12:27:41 -03:00
service_packs.go modify packs api to filter non-empty pack_type from response (#1558) 2021-08-10 09:43:27 -04:00
service_queries_test.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
service_queries.go Move logger up to the HTTP layer and make it generic (#1439) 2021-08-02 19:06:27 -03:00
service_scheduled_queries_test.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
service_scheduled_queries.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
service_sessions_test.go Configure golangci-lint for the whole repository 2021-08-24 13:35:03 -04:00
service_sessions.go Configure golangci-lint for the whole repository 2021-08-24 13:35:03 -04:00
service_status.go Refactor app config (POC, for now) (#1685) 2021-08-20 12:27:41 -03:00
service_targets_test.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
service_targets.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
service_teams.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
service_users_test.go Configure golangci-lint for the whole repository 2021-08-24 13:35:03 -04:00
service_users.go Refactor app config (POC, for now) (#1685) 2021-08-20 12:27:41 -03:00
service.go Update email template image links (#1938) 2021-09-03 17:00:30 -05:00
team_schedule.go Make adding routes a bit simpler (#1771) 2021-08-25 10:08:14 -03:00
teams.go Make adding routes a bit simpler (#1771) 2021-08-25 10:08:14 -03:00
testing_utils.go Support close the websocket of LiveQueryResultsHandler (#1006) 2021-09-10 16:26:39 -03:00
translator.go Make adding routes a bit simpler (#1771) 2021-08-25 10:08:14 -03:00
transport_activities.go Issue 1324 add activity feed (#1343) 2021-07-13 16:54:22 -03:00
transport_appconfig.go Refactor app config (POC, for now) (#1685) 2021-08-20 12:27:41 -03:00
transport_campaigns.go Add fleetctl query command (#1784) 2018-05-17 15:54:34 -07:00
transport_carves.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
transport_change_email.go Update go-kit to 0.4.0 (#1411) 2017-03-15 08:55:30 -07:00
transport_error_test.go Issue 1286 improve errors (#1322) 2021-07-08 12:50:43 -03:00
transport_error.go Configure golangci-lint for the whole repository 2021-08-24 13:35:03 -04:00
transport_global_schedule.go Issue 1231 add global schedule (#1383) 2021-07-16 10:15:15 -03:00
transport_hosts.go Implement add hosts to team by filters API (#866) 2021-05-25 21:29:52 -07:00
transport_invites_test.go Remove kolide types and packages from backend (#974) 2021-06-06 15:07:29 -07:00
transport_invites.go Update go-kit to 0.4.0 (#1411) 2017-03-15 08:55:30 -07:00
transport_labels_test.go Deprecate /api/v1/kolide routes (#297) 2021-02-10 12:13:11 -08:00
transport_labels.go Add support for filtering hosts in label (#335) 2021-02-18 12:52:43 -08:00
transport_osquery_test.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
transport_osquery.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
transport_packs_test.go Deprecate /api/v1/kolide routes (#297) 2021-02-10 12:13:11 -08:00
transport_packs.go Fix pack and query UI issues in Fleet 2.0 (#1829) 2018-06-15 10:13:11 -04:00
transport_queries_test.go Deprecate /api/v1/kolide routes (#297) 2021-02-10 12:13:11 -08:00
transport_queries.go Issue 1362 fleetctl user roles (#1397) 2021-07-16 15:28:13 -03:00
transport_scheduled_queries_test.go Deprecate /api/v1/kolide routes (#297) 2021-02-10 12:13:11 -08:00
transport_scheduled_queries.go Fix pack and query UI issues in Fleet 2.0 (#1829) 2018-06-15 10:13:11 -04:00
transport_sessions_test.go Remove username from UI (#1168) 2021-06-24 13:42:29 -07:00
transport_sessions.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
transport_setup.go Update go-kit to 0.4.0 (#1411) 2017-03-15 08:55:30 -07:00
transport_targets_test.go Add support for Teams in targets and live queries (#880) 2021-05-27 13:18:00 -07:00
transport_targets.go Update go-kit to 0.4.0 (#1411) 2017-03-15 08:55:30 -07:00
transport_teams.go Refactor enroll secrets to support Teams (#903) 2021-05-31 09:02:05 -07:00
transport_test.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
transport_users_test.go Remove kolide types and packages from backend (#974) 2021-06-06 15:07:29 -07:00
transport_users.go Add authorization checks in service (#938) 2021-06-03 16:24:15 -07:00
transport.go Add global policies (#1750) 2021-08-24 17:24:52 -03:00
user_roles.go Make adding routes a bit simpler (#1771) 2021-08-25 10:08:14 -03:00
validation_app_config_test.go Refactor app config (POC, for now) (#1685) 2021-08-20 12:27:41 -03:00
validation_app_config.go Configure golangci-lint for the whole repository 2021-08-24 13:35:03 -04:00
validation_invites.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
validation_setup.go Refactor app config (POC, for now) (#1685) 2021-08-20 12:27:41 -03:00
validation_users.go Update create user validation and documentation (#1285) 2021-07-02 08:35:26 -07:00