fleet/server/service
Zach Wasserman 48c413a254
Split host additional into separate table (#875)
- Move host `additional` into a separate table.
- Join when that data is needed.
- API change: `/api/v1/fleet/hosts` now returns only the requested
  `additional` columns, unless `*` is provided as the sole argument.

Background:

A customer reported that MySQL binlogs grew huge and replication lag
went way up when data was stored in the `additional` column. In this
deployment MySQL was running with ROW replication. This would cause the
entire `additional` data to be copied on each update of the host checkin
time. While switching to STATEMENT or MIXED replication would likely
mitigate the issue, this was not an option in their environment.
2021-05-26 16:24:12 -07:00
..
middleware/ratelimit Add rate-limiting to login and password reset (#543) 2021-03-26 11:23:29 -07:00
testdata add endpoint to serve the kolide certificate back to the user (#1025) 2017-01-20 14:32:10 -05:00
client.go Format and clean code (#774) 2021-05-17 10:29:50 -07:00
client_appconfig.go Deprecate /api/v1/kolide routes (#297) 2021-02-10 12:13:11 -08:00
client_carves.go Deprecate /api/v1/kolide routes (#297) 2021-02-10 12:13:11 -08:00
client_debug.go Add debug endpoints and associated fleetctl commands (#45) 2020-11-17 17:12:37 -08:00
client_errors.go Prevent user enumeration (#533) 2021-03-24 19:36:30 -07:00
client_hosts.go Deprecate /api/v1/kolide routes (#297) 2021-02-10 12:13:11 -08:00
client_labels.go Deprecate /api/v1/kolide routes (#297) 2021-02-10 12:13:11 -08:00
client_live_query.go Deprecate /api/v1/kolide routes (#297) 2021-02-10 12:13:11 -08:00
client_options.go Deprecate /api/v1/kolide routes (#297) 2021-02-10 12:13:11 -08:00
client_packs.go Deprecate /api/v1/kolide routes (#297) 2021-02-10 12:13:11 -08:00
client_queries.go Deprecate /api/v1/kolide routes (#297) 2021-02-10 12:13:11 -08:00
client_sessions.go Prevent user enumeration (#533) 2021-03-24 19:36:30 -07:00
client_setup.go Update Kolide to Fleet as appropriate in documentation (#263) 2021-02-02 12:16:59 -08:00
client_targets.go Deprecate /api/v1/kolide routes (#297) 2021-02-10 12:13:11 -08:00
client_users.go Deprecate /api/v1/kolide routes (#297) 2021-02-10 12:13:11 -08:00
debug_handler.go Add debug endpoints and associated fleetctl commands (#45) 2020-11-17 17:12:37 -08:00
debug_handler_test.go Clean up Go dependencies (#619) 2021-04-08 16:45:04 -07:00
endpoint_appconfig.go Add support for IdP-initiated SSO login (#556) 2021-03-30 12:56:20 -07:00
endpoint_appconfig_test.go Deprecate /api/v1/kolide routes (#297) 2021-02-10 12:13:11 -08:00
endpoint_campaigns.go Deprecate /api/v1/kolide routes (#297) 2021-02-10 12:13:11 -08:00
endpoint_carves.go Format and clean code (#774) 2021-05-17 10:29:50 -07:00
endpoint_certificate.go Format and clean code (#774) 2021-05-17 10:29:50 -07:00
endpoint_change_email.go Format and clean code (#774) 2021-05-17 10:29:50 -07:00
endpoint_hosts.go Add refetch host API (#767) 2021-05-13 13:09:22 -07:00
endpoint_invites.go Format and clean code (#774) 2021-05-17 10:29:50 -07:00
endpoint_labels.go Add support for filtering hosts in label (#335) 2021-02-18 12:52:43 -08:00
endpoint_middleware.go Prevent user enumeration (#533) 2021-03-24 19:36:30 -07:00
endpoint_middleware_test.go Format and clean code (#774) 2021-05-17 10:29:50 -07:00
endpoint_osquery.go Expose live query error messages via API (#205) 2021-01-19 14:52:29 -08:00
endpoint_osquery_options.go Format and clean code (#774) 2021-05-17 10:29:50 -07:00
endpoint_packs.go Add support for denylist parameter in scheduled queries (#209) 2021-01-25 16:26:14 -08:00
endpoint_queries.go Format and clean code (#774) 2021-05-17 10:29:50 -07:00
endpoint_scheduled_queries.go Format and clean code (#774) 2021-05-17 10:29:50 -07:00
endpoint_sessions.go Add support for IdP-initiated SSO login (#556) 2021-03-30 12:56:20 -07:00
endpoint_setup.go Format and clean code (#774) 2021-05-17 10:29:50 -07:00
endpoint_status.go Format and clean code (#774) 2021-05-17 10:29:50 -07:00
endpoint_targets.go Format and clean code (#774) 2021-05-17 10:29:50 -07:00
endpoint_test.go Add rate-limiting to login and password reset (#543) 2021-03-26 11:23:29 -07:00
endpoint_users.go Prevent user enumeration (#533) 2021-03-24 19:36:30 -07:00
endpoint_users_test.go Deprecate /api/v1/kolide routes (#297) 2021-02-10 12:13:11 -08:00
frontend.go Format and clean code (#774) 2021-05-17 10:29:50 -07:00
handler.go Add refetch host API (#767) 2021-05-13 13:09:22 -07:00
handler_test.go Add rate-limiting to login and password reset (#543) 2021-03-26 11:23:29 -07:00
http_auth.go Format and clean code (#774) 2021-05-17 10:29:50 -07:00
http_auth_test.go Add rate-limiting to login and password reset (#543) 2021-03-26 11:23:29 -07:00
logging.go Prevent user enumeration (#533) 2021-03-24 19:36:30 -07:00
logging_appconfig.go Update the Go import paths to new repo name (#27) 2020-11-11 09:59:12 -08:00
logging_campaigns.go Update the Go import paths to new repo name (#27) 2020-11-11 09:59:12 -08:00
logging_email_change.go Reduce verbosity of default logging (#2225) 2020-04-22 14:01:34 -07:00
logging_hosts.go Add host details in API responses (#223) 2021-01-25 13:05:02 -08:00
logging_invites.go Update the Go import paths to new repo name (#27) 2020-11-11 09:59:12 -08:00
logging_labels.go Update the Go import paths to new repo name (#27) 2020-11-11 09:59:12 -08:00
logging_osquery.go Expose live query error messages via API (#205) 2021-01-19 14:52:29 -08:00
logging_osquery_options.go Update the Go import paths to new repo name (#27) 2020-11-11 09:59:12 -08:00
logging_packs.go Update the Go import paths to new repo name (#27) 2020-11-11 09:59:12 -08:00
logging_queries.go Fix logging for query creation on error (#132) 2020-12-14 18:45:03 -08:00
logging_scheduled_queries.go Update the Go import paths to new repo name (#27) 2020-11-11 09:59:12 -08:00
logging_sessions.go Update the Go import paths to new repo name (#27) 2020-11-11 09:59:12 -08:00
logging_users.go Update the Go import paths to new repo name (#27) 2020-11-11 09:59:12 -08:00
metrics.go Format and clean code (#774) 2021-05-17 10:29:50 -07:00
metrics_appconfig.go Update the Go import paths to new repo name (#27) 2020-11-11 09:59:12 -08:00
metrics_change_email.go Update go-kit to 0.4.0 (#1411) 2017-03-15 08:55:30 -07:00
metrics_invites.go Update the Go import paths to new repo name (#27) 2020-11-11 09:59:12 -08:00
metrics_labels.go Update the Go import paths to new repo name (#27) 2020-11-11 09:59:12 -08:00
metrics_sessions.go Update the Go import paths to new repo name (#27) 2020-11-11 09:59:12 -08:00
metrics_users.go Update the Go import paths to new repo name (#27) 2020-11-11 09:59:12 -08:00
service.go Format and clean code (#774) 2021-05-17 10:29:50 -07:00
service_appconfig.go Add support for IdP-initiated SSO login (#556) 2021-03-30 12:56:20 -07:00
service_appconfig_test.go Make name and secret required for enroll secrets (#207) 2021-01-19 14:49:53 -08:00
service_campaigns.go Include more detailed error messages in query result stream (#835) 2021-05-25 09:15:39 -07:00
service_carves.go Add AWS S3 as file carving backend (#126) 2020-12-16 09:16:55 -08:00
service_carves_test.go Add AWS S3 as file carving backend (#126) 2020-12-16 09:16:55 -08:00
service_certificate.go Update go-kit to 0.4.0 (#1411) 2017-03-15 08:55:30 -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_errors.go Add rate-limiting to login and password reset (#543) 2021-03-26 11:23:29 -07:00
service_hosts.go Add refetch host API (#767) 2021-05-13 13:09:22 -07:00
service_hosts_test.go Add refetch host API (#767) 2021-05-13 13:09:22 -07:00
service_invites.go Update the Go import paths to new repo name (#27) 2020-11-11 09:59:12 -08:00
service_invites_test.go Batch updates to host seen time (#633) 2021-04-12 16:22:22 -07:00
service_labels.go Add support for filtering hosts in label (#335) 2021-02-18 12:52:43 -08:00
service_labels_test.go Update the Go import paths to new repo name (#27) 2020-11-11 09:59:12 -08:00
service_osquery.go Split host additional into separate table (#875) 2021-05-26 16:24:12 -07:00
service_osquery_options.go Update the Go import paths to new repo name (#27) 2020-11-11 09:59:12 -08:00
service_osquery_test.go Split host additional into separate table (#875) 2021-05-26 16:24:12 -07:00
service_packs.go Update the Go import paths to new repo name (#27) 2020-11-11 09:59:12 -08:00
service_packs_test.go Update the Go import paths to new repo name (#27) 2020-11-11 09:59:12 -08:00
service_queries.go Prevent SQLite ATTACH from being used in queries (#129) 2020-12-14 18:13:34 -08:00
service_queries_test.go Prevent SQLite ATTACH from being used in queries (#129) 2020-12-14 18:13:34 -08:00
service_scheduled_queries.go Allow scheduling same query more than once in UI (#96) 2020-12-04 09:50:39 -08:00
service_scheduled_queries_test.go Allow scheduling same query more than once in UI (#96) 2020-12-04 09:50:39 -08:00
service_sessions.go Add support for IdP-initiated SSO login (#556) 2021-03-30 12:56:20 -07:00
service_sessions_test.go server: prune unused constants and functions (#477) 2021-03-15 17:08:25 -07:00
service_status.go Add ability to disable live queries (#2167) 2020-01-13 16:53:04 -08:00
service_targets.go Update the Go import paths to new repo name (#27) 2020-11-11 09:59:12 -08:00
service_targets_test.go Update the Go import paths to new repo name (#27) 2020-11-11 09:59:12 -08:00
service_users.go Format and clean code (#774) 2021-05-17 10:29:50 -07:00
service_users_test.go Allow @ character in usernames (#37) 2020-11-13 15:52:20 -08:00
transport.go Add "Last fetched" to Hosts page and Host details page (#540) 2021-03-25 12:47:00 -07:00
transport_appconfig.go Update the Go import paths to new repo name (#27) 2020-11-11 09:59:12 -08:00
transport_campaigns.go Add fleetctl query command (#1784) 2018-05-17 15:54:34 -07:00
transport_carves.go Format and clean code (#774) 2021-05-17 10:29:50 -07:00
transport_change_email.go Update go-kit to 0.4.0 (#1411) 2017-03-15 08:55:30 -07:00
transport_error.go Add rate-limiting to login and password reset (#543) 2021-03-26 11:23:29 -07:00
transport_hosts.go Add refetch host API (#767) 2021-05-13 13:09:22 -07:00
transport_invites.go Update go-kit to 0.4.0 (#1411) 2017-03-15 08:55:30 -07:00
transport_invites_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_labels_test.go Deprecate /api/v1/kolide routes (#297) 2021-02-10 12:13:11 -08:00
transport_osquery.go Expose live query error messages via API (#205) 2021-01-19 14:52:29 -08:00
transport_osquery_options.go Add endpoints for apply/get of each spec type (#1752) 2018-05-03 18:01:57 -07:00
transport_osquery_test.go Format and clean code (#774) 2021-05-17 10:29:50 -07:00
transport_packs.go Fix pack and query UI issues in Fleet 2.0 (#1829) 2018-06-15 10:13:11 -04:00
transport_packs_test.go Deprecate /api/v1/kolide routes (#297) 2021-02-10 12:13:11 -08:00
transport_queries.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_scheduled_queries.go Fix pack and query UI issues in Fleet 2.0 (#1829) 2018-06-15 10:13:11 -04:00
transport_scheduled_queries_test.go Deprecate /api/v1/kolide routes (#297) 2021-02-10 12:13:11 -08:00
transport_sessions.go Update the Go import paths to new repo name (#27) 2020-11-11 09:59:12 -08:00
transport_sessions_test.go Deprecate /api/v1/kolide routes (#297) 2021-02-10 12:13:11 -08:00
transport_setup.go Update go-kit to 0.4.0 (#1411) 2017-03-15 08:55:30 -07:00
transport_targets.go Update go-kit to 0.4.0 (#1411) 2017-03-15 08:55:30 -07:00
transport_targets_test.go Deprecate /api/v1/kolide routes (#297) 2021-02-10 12:13:11 -08:00
transport_test.go Update the Go import paths to new repo name (#27) 2020-11-11 09:59:12 -08:00
transport_users.go Update go-kit to 0.4.0 (#1411) 2017-03-15 08:55:30 -07:00
transport_users_test.go Deprecate /api/v1/kolide routes (#297) 2021-02-10 12:13:11 -08:00
util_test.go Format and clean code (#774) 2021-05-17 10:29:50 -07:00
validation_app_config.go Update the Go import paths to new repo name (#27) 2020-11-11 09:59:12 -08:00
validation_app_config_test.go Update the Go import paths to new repo name (#27) 2020-11-11 09:59:12 -08:00
validation_invites.go Update the Go import paths to new repo name (#27) 2020-11-11 09:59:12 -08:00
validation_setup.go Update the Go import paths to new repo name (#27) 2020-11-11 09:59:12 -08:00
validation_users.go Allow @ character in usernames (#37) 2020-11-13 15:52:20 -08:00