diff --git a/CHANGELOG.md b/CHANGELOG.md index 79c5d92192..1ba584f34c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,19 @@ +## Fleet 4.46.1 (Feb 27, 2024) + +### Bug fixes + +* Fixed a bug in running queries via API. + - Query campaign not clearing from Redis after timeout +* Added logging when a Redis connection is blocked for a long time waiting for live query results. +* Added support for the `redis.conn_wait_timeout` configuration setting for Redis standalone (it was previously only supported on Redis cluster). +* Added Redis cleanup of inactive queries in a cron job, so temporary Redis failures to stop a live query doesn't leave such queries around for a long time. +* Fixed orphaned live queries in Redis when client terminates connection + - `POST /api/latest/fleet/queries/{id}/run` + - `GET /api/latest/fleet/queries/run` + - `POST /api/latest/fleet/hosts/identifier/{identifier}/query` + - `POST /api/latest/fleet/hosts/{id}/query` +* Added --server_frequent_cleanups_enabled (FLEET_SERVER_FREQUENT_CLEANUPS_ENABLED) flag to enable cron job to clean up stale data running every 15 minutes. Currently disabled by default. + ## Fleet 4.46.0 (Feb 26, 2024) ### Changes diff --git a/changes/16331-address-redis-issues-live-query b/changes/16331-address-redis-issues-live-query deleted file mode 100644 index d5796f8967..0000000000 --- a/changes/16331-address-redis-issues-live-query +++ /dev/null @@ -1,3 +0,0 @@ -* Added logging when a Redis connection is blocked for a long time waiting for live query results. -* Added support for the `redis.conn_wait_timeout` configuration setting for Redis standalone (it was previously only supported on Redis cluster). -* Added Redis cleanup of inactive queries in a cron job, so temporary Redis failures to stop a live query doesn't leave such queries around for a long time. diff --git a/changes/17197-cleanup-campaign-when-ctx-canceled b/changes/17197-cleanup-campaign-when-ctx-canceled deleted file mode 100644 index 7ff75f5515..0000000000 --- a/changes/17197-cleanup-campaign-when-ctx-canceled +++ /dev/null @@ -1 +0,0 @@ -* Fix orphaned live queries in Redis when client terminates connection (`POST /api/latest/fleet/queries/{id}/run`, `GET /api/latest/fleet/queries/run`, `POST /api/latest/fleet/hosts/identifier/{identifier}/query` and `POST /api/latest/fleet/hosts/{id}/query`). diff --git a/changes/17197-frequent-cleanups-enabled b/changes/17197-frequent-cleanups-enabled deleted file mode 100644 index 7707456392..0000000000 --- a/changes/17197-frequent-cleanups-enabled +++ /dev/null @@ -1 +0,0 @@ -Added --server_frequent_cleanups_enabled (FLEET_SERVER_FREQUENT_CLEANUPS_ENABLED) flag to enable cron job to clean up stale data running every 15 minutes. Currently disabled by default. diff --git a/charts/fleet/Chart.yaml b/charts/fleet/Chart.yaml index 973a096049..9935473716 100644 --- a/charts/fleet/Chart.yaml +++ b/charts/fleet/Chart.yaml @@ -8,7 +8,7 @@ version: v6.0.2 home: https://github.com/fleetdm/fleet sources: - https://github.com/fleetdm/fleet.git -appVersion: v4.45.0 +appVersion: v4.46.1 dependencies: - name: mysql condition: mysql.enabled diff --git a/charts/fleet/values.yaml b/charts/fleet/values.yaml index d4e7f8ec24..8a8d55b5b9 100644 --- a/charts/fleet/values.yaml +++ b/charts/fleet/values.yaml @@ -2,7 +2,7 @@ # All settings related to how Fleet is deployed in Kubernetes hostName: fleet.localhost replicas: 3 # The number of Fleet instances to deploy -imageTag: v4.45.0 # Version of Fleet to deploy +imageTag: v4.46.1 # Version of Fleet to deploy podAnnotations: {} # Additional annotations to add to the Fleet pod serviceAccountAnnotations: {} # Additional annotations to add to the Fleet service account resources: diff --git a/infrastructure/dogfood/terraform/aws/variables.tf b/infrastructure/dogfood/terraform/aws/variables.tf index dc5e1f6af9..629417a5bb 100644 --- a/infrastructure/dogfood/terraform/aws/variables.tf +++ b/infrastructure/dogfood/terraform/aws/variables.tf @@ -56,7 +56,7 @@ variable "database_name" { variable "fleet_image" { description = "the name of the container image to run" - default = "fleetdm/fleet:v4.45.0" + default = "fleetdm/fleet:v4.46.1" } variable "software_inventory" { diff --git a/infrastructure/dogfood/terraform/gcp/variables.tf b/infrastructure/dogfood/terraform/gcp/variables.tf index c859c1a39a..fd2c64f6e4 100644 --- a/infrastructure/dogfood/terraform/gcp/variables.tf +++ b/infrastructure/dogfood/terraform/gcp/variables.tf @@ -68,5 +68,5 @@ variable "redis_mem" { } variable "image" { - default = "fleet:v4.45.0" + default = "fleet:v4.46.1" } diff --git a/terraform/byo-vpc/byo-db/byo-ecs/variables.tf b/terraform/byo-vpc/byo-db/byo-ecs/variables.tf index bf017d4a2b..f058c93072 100644 --- a/terraform/byo-vpc/byo-db/byo-ecs/variables.tf +++ b/terraform/byo-vpc/byo-db/byo-ecs/variables.tf @@ -13,7 +13,7 @@ variable "fleet_config" { type = object({ mem = optional(number, 4096) cpu = optional(number, 512) - image = optional(string, "fleetdm/fleet:v4.45.0") + image = optional(string, "fleetdm/fleet:v4.46.1") family = optional(string, "fleet") sidecars = optional(list(any), []) depends_on = optional(list(any), []) diff --git a/terraform/byo-vpc/byo-db/variables.tf b/terraform/byo-vpc/byo-db/variables.tf index 04ec0c443f..c14ade1061 100644 --- a/terraform/byo-vpc/byo-db/variables.tf +++ b/terraform/byo-vpc/byo-db/variables.tf @@ -74,7 +74,7 @@ variable "fleet_config" { type = object({ mem = optional(number, 4096) cpu = optional(number, 512) - image = optional(string, "fleetdm/fleet:v4.45.0") + image = optional(string, "fleetdm/fleet:v4.46.1") family = optional(string, "fleet") sidecars = optional(list(any), []) depends_on = optional(list(any), []) diff --git a/terraform/byo-vpc/example/main.tf b/terraform/byo-vpc/example/main.tf index 6b607c1fa8..ffc5b4845b 100644 --- a/terraform/byo-vpc/example/main.tf +++ b/terraform/byo-vpc/example/main.tf @@ -17,7 +17,7 @@ provider "aws" { } locals { - fleet_image = "fleetdm/fleet:v4.45.0" + fleet_image = "fleetdm/fleet:v4.46.1" domain_name = "example.com" } diff --git a/terraform/byo-vpc/variables.tf b/terraform/byo-vpc/variables.tf index 1e1434e4cb..3c1c5ee863 100644 --- a/terraform/byo-vpc/variables.tf +++ b/terraform/byo-vpc/variables.tf @@ -165,7 +165,7 @@ variable "fleet_config" { type = object({ mem = optional(number, 4096) cpu = optional(number, 512) - image = optional(string, "fleetdm/fleet:v4.45.0") + image = optional(string, "fleetdm/fleet:v4.46.1") family = optional(string, "fleet") sidecars = optional(list(any), []) depends_on = optional(list(any), []) diff --git a/terraform/variables.tf b/terraform/variables.tf index ebd0fb4c2b..1b05dc8aa3 100644 --- a/terraform/variables.tf +++ b/terraform/variables.tf @@ -215,7 +215,7 @@ variable "fleet_config" { type = object({ mem = optional(number, 4096) cpu = optional(number, 512) - image = optional(string, "fleetdm/fleet:v4.45.0") + image = optional(string, "fleetdm/fleet:v4.46.1") family = optional(string, "fleet") sidecars = optional(list(any), []) depends_on = optional(list(any), []) diff --git a/tools/fleetctl-npm/package.json b/tools/fleetctl-npm/package.json index 3ad54a3e9c..e9e5e8b840 100644 --- a/tools/fleetctl-npm/package.json +++ b/tools/fleetctl-npm/package.json @@ -1,6 +1,6 @@ { "name": "fleetctl", - "version": "v4.45.0", + "version": "v4.46.1", "description": "Installer for the fleetctl CLI tool", "bin": { "fleetctl": "./run.js"