# Cortex v1.22.0

2026-11-20 · [Original release notes](https://github.com/cortexproject/cortex/releases/tag/v1.22.0) · [Full summary](https://ratatosk.io/en/releases/cortex/v1.22.0)

Security 8 · Breaking changes 20 · Deprecations 3 · Important fixes 37 · Enhancements 41 · Dependency updates 9 · Other changes 28

## Security (8)

### gRPC non-canonical path authorization bypass fixed

- Affects: Cortex deployments exposing gRPC servers with path-based authorization, canonical-path deny rules, and a fallback allow rule
- [CVE-2026-33186](https://www.cve.org/CVERecord?id=CVE-2026-33186), [GHSA-p77j-4mvh-x3m3](https://github.com/advisories/GHSA-p77j-4mvh-x3m3)

Before this release, a raw HTTP/2 request with a `:path` missing its leading slash could reach a handler while bypassing the canonical-path deny rule. Such requests are now rejected with a `codes.Unimplemented` error before reaching authorization interceptors or handlers.

> * [ENHANCEMENT] Upgrade gRPC from v1.71.2 to v1.79.3 to address CVE-2026-33186. #7460 #7463
> - **Dependency and runtime updates**: Go 1.27.3, Prometheus v3.9.1, Alertmanager v0.33.0, gRPC v1.79.3, and distroless base images for the container images.

### Go `crypto/x509` verification fix for untrusted intermediates

- Affects: Cortex deployments using `crypto/x509` certificate verification (Inferred)
- [CVE-2026-111943](https://www.cve.org/CVERecord?id=CVE-2026-111943)

When `Verify` is called with a known intermediate certificate no longer considered trustworthy, it now returns an error.

> * [ENHANCEMENT] Update Go version to 1.27.3, which includes security fixes to the `crypto/x509` package (CVE-2026-111943). #7906 #7923

### Cortex rejects empty signing-key entries

- Affects: `-distributor.sign-write-requests-keys` configuration

A stray or trailing comma previously created an empty signing key, downgrading HMAC stream-push authentication to a forgeable signature; now, this misconfiguration fails at process startup.

> * [BUGFIX] Security: Reject empty entries in `-distributor.sign-write-requests-keys` caused by stray or trailing commas (e.g. `newkey,`). Previously these were silently accepted and produced an empty signing key, which downgraded HMAC stream-push authentication to a forgeable signature. Misconfigured flags now fail at process startup; audit your configs before upgrading. #7587

### [Security status unclear] Runtime images switch to `gcr.io/distroless/static-debian12`

- Affects: deployments using the runtime container images for Cortex, query-tee, thanosconvert or test-exporter

The previous `alpine:3.23` images included a shell and package manager. The new images have no shell, package manager or busybox, but retain CA certificates.

> * [ENHANCEMENT] Upgraded container base images from `alpine:3.23` to `gcr.io/distroless/static-debian12`, reducing image size and attack surface. #7637

### [Security status unclear] Query Frontend logs `X-Grafana-User`

- Affects: Grafana data source proxy requests with `[dataproxy] send_user_header` enabled

When a request carries `X-Grafana-User`, its value appears in query stats, slow-query, and query-request logs. No Cortex-side configuration change is needed.

> * [ENHANCEMENT] Query Frontend: Log `X-Grafana-User` header in query stats, slow query, and query request logs when Grafana's `send_user_header` is enabled. #7799

### TSDB appender release on early-return `Push` paths

- Affects: Ingester setups handling out-of-order label sets

When `Push` took an early-return path, such as for an out-of-order label set, each request leaked TSDB head series references, mmap'd chunks and pending state, causing `cortex_ingester_tsdb_head_active_appenders` to grow without bound.

> * [BUGFIX] Ingester: Release the TSDB appender on every early-return path in `Push` (e.g. out-of-order label set) by deferring `Rollback`. Previously such requests leaked TSDB head series references, mmap'd chunks and pending state per request, causing the `cortex_ingester_tsdb_head_active_appenders` gauge to grow unbounded. #7528

### [Security status unclear] Ingester zero-count float histogram panic fixed

- Affects: setups ingesting float native histograms

A zero-count float histogram, such as a staleness marker or empty histogram, was routed to the integer decoder and could crash the ingester during synchronous gRPC `Push`. It now uses the float decoder and can be ingested without that panic.

> * [BUGFIX] Ingester: Fix panic (`HistogramProtoToHistogram called with a float histogram`) when ingesting a float native histogram with a zero count (e.g. a staleness marker or empty histogram). The decoder is now selected by histogram type via `IsFloatHistogram()` instead of by count value. #7645

### Alertmanager blocks file-backed HTTP headers in per-tenant configs

- Affects: Per-tenant Alertmanager configs using `http_config.http_headers.<NAME>.files` with `-alertmanager.enable-api=true`
- GHSA-hq3h-j634-grmc

At notification time, file paths were read and their contents sent to a tenant-controlled URL, allowing a tenant with Alertmanager API access to disclose files readable by the Alertmanager process. `Values` and `Secrets` remain allowed.

> * [BUGFIX] Alertmanager: Tighten per-tenant config validation to reject additional file-based settings. #7767

## Breaking changes (20)

### Ruler evaluation-delay settings removed

- Affects: Cortex configurations using `-ruler.evaluation-delay-duration` or `ruler_evaluation_delay_duration` runtime overrides
- Action required: No deprecated flag or limit, and no `ruler_evaluation_delay_duration` runtime override; replacements use `-ruler.query-offset` / `ruler_query_offset`.

A process started with the removed flag now fails at startup; a leftover runtime override makes startup fail or causes reloads on a running process to fail, retaining the last good overrides and setting `cortex_runtime_config_last_reload_successful` to `0`. The query-offset values no longer use the higher of the two values.

Evidence: “Cortex decodes the runtime config strictly, so a leftover `ruler_evaluation_delay_duration` override makes the runtime config fail to load: Cortex **exits at startup** (`module failed`, `module=runtime-config`), and on an already-running process every reload fails, pinning the last good overrides and dropping `cortex_runtime_config_last_reload_successful` to 0.” https://github.com/cortexproject/cortex/releases/tag/v1.22.0

> - **Removed flags and stricter config checks**: Cortex removes the deprecated `-ruler.evaluation-delay-duration`, `-querier.ingester-metadata-streaming`, and `-<prefix>.fifocache.size` flags, and eight flags that already had no effect, such as `-querier.iterators`. Passing a removed flag stops Cortex at startup, and so does a leftover `ruler_evaluation_delay_duration` in a runtime config. `query_ingesters_within` must now be less than `-blocks-storage.tsdb.close-idle-tsdb-timeout`, and a config that sets them equal stops Cortex at startup. Read the `[CHANGE]` entries below before you upgrade.

### FIFOCache `size` setting removed

- Affects: FIFOCache configurations using `-<prefix>.fifocache.size` or the `size` YAML field
- Action required: Configuration with `-<prefix>.fifocache.max-size-items` or `-<prefix>.fifocache.max-size-bytes` instead of only `size`

Caches configured only through `size` now start with no capacity.

Evidence: “Remove the deprecated `-<prefix>.fifocache.size` flag and its `size` YAML field (deprecated in 1.1.0). Use `-<prefix>.fifocache.max-size-items` or `-<prefix>.fifocache.max-size-bytes`; a cache configured only via `size` now starts with no capacity.” https://github.com/cortexproject/cortex/releases/tag/v1.22.0

> - **Removed flags and stricter config checks**: Cortex removes the deprecated `-ruler.evaluation-delay-duration`, `-querier.ingester-metadata-streaming`, and `-<prefix>.fifocache.size` flags, and eight flags that already had no effect, such as `-querier.iterators`. Passing a removed flag stops Cortex at startup, and so does a leftover `ruler_evaluation_delay_duration` in a runtime config. `query_ingesters_within` must now be less than `-blocks-storage.tsdb.close-idle-tsdb-timeout`, and a config that sets them equal stops Cortex at startup. Read the `[CHANGE]` entries below before you upgrade.

### Ruler evaluation-delay settings replaced by query offset

- Affects: Ruler deployments using the removed flag or per-tenant runtime-config field
- Action required: A `grep -r ruler_evaluation_delay_duration` search across runtime configs before upgrading

Previously, the effective offset was the higher of the two settings; it now comes directly from `RulerQueryOffset`. A leftover `ruler_evaluation_delay_duration` override makes startup fail or each reload fail on a running process, which retains last-good overrides and sets `cortex_runtime_config_last_reload_successful` to `0`.

> * [CHANGE] Ruler: Remove the deprecated `-ruler.evaluation-delay-duration` flag and its `ruler_evaluation_delay_duration` per-tenant limit. Use `-ruler.query-offset` / `ruler_query_offset`, which no longer takes the higher of the two values. Cortex decodes the runtime config strictly, so a leftover `ruler_evaluation_delay_duration` override makes the runtime config fail to load: Cortex **exits at startup** (`module failed`, `module=runtime-config`), and on an already-running process every reload fails, pinning the last good overrides and dropping `cortex_runtime_config_last_reload_successful` to 0. Run `grep -r ruler_evaluation_delay_duration` over your runtime configs before upgrading. #7792

### FIFO cache capacity setting removed

- Affects: caches configured with `-<prefix>.fifocache.size` or the `size` YAML field

Previously, `size` could set cache capacity. After removal, a cache configured only with that setting starts with no capacity and logs `neither max-size-bytes nor max-size-items is set`.

Evidence: “NewFifoCache no longer copies it into `MaxSizeItems`, so a cache configured only through `size` now starts with no capacity (and already logs "neither max-size-bytes nor max-size-items is set").” https://github.com/cortexproject/cortex/pull/7791

> * [CHANGE] Remove the deprecated `-<prefix>.fifocache.size` flag and its `size` YAML field (deprecated in 1.1.0). Use `-<prefix>.fifocache.max-size-items` or `-<prefix>.fifocache.max-size-bytes`; a cache configured only via `size` now starts with no capacity. #7791

### Metadata APIs always use streaming RPCs

- Affects: querier setups using `-querier.ingester-metadata-streaming`, `ingester_metadata_streaming`, or `ingester_streaming`

Previously, `-querier.ingester-metadata-streaming` and `ingester_metadata_streaming` controlled metadata streaming and defaulted to `true`; the hidden `ingester_streaming` field was also accepted.

> * [CHANGE] Querier: Remove the deprecated `-querier.ingester-metadata-streaming` flag and its `ingester_metadata_streaming` YAML field (deprecated in 1.18.0, default `true`). Streaming RPCs are now always used for the metadata APIs. Also removes the dead hidden `ingester_streaming` YAML field left over from `-querier.ingester-streaming`. #7791

### Query Frontend slow-query log field renamed to `time_taken_ms`

- Affects: Query Frontend slow-query logging (Inferred)

Previously, the log used `time_taken` with a duration-string value such as `1s`; it now uses `time_taken_ms` with a millisecond count such as `1000` for one second.

Evidence: “Rename `time_taken` field to `time_taken_ms` and make it output millisecond count, so sorting and filtering on the field could be done.” https://github.com/cortexproject/cortex/pull/7649

> * [ENHANCEMENT] Query Frontend: Rename `time_taken` field to `time_taken_ms` and make it return millisecond count. #7649

### Partitioned group file overwrites on read errors fixed

- Affects: compactor setups using partitioned group information

A transient `ReadPartitionedGroupInfo` error, such as S3 throttling, could be swallowed and allow an existing partitioned group file to be overwritten with a new `CreationTime`. Now, errors other than `ErrorPartitionedGroupInfoNotFound` are logged and abort creation, leaving the existing file untouched until the next compaction cycle retries.

Evidence: “The fix captures the error and, if it is not `ErrorPartitionedGroupInfoNotFound`, logs it and returns — aborting creation so the group will be retried in the next compaction cycle.” https://github.com/cortexproject/cortex/pull/7766

> * [BUGFIX] Compactor: Properly handle error from ReadPartitionedGroupInfo in UpdatePartitionedGroupInfo. #7766

### Regex tenant federation startup discovery fixed

- Affects: setups using regex tenant federation

Queries arriving before the first ticker tick were matched against an empty user list, causing incorrect tenant resolution. Startup now discovers users before serving queries; if initial discovery fails, the service fails to start instead of serving against an empty list.

Evidence: “The service must fail to start rather than serving queries against an empty user list.” https://github.com/cortexproject/cortex/pull/7811

> * [BUGFIX] Tenant Federation: Fix regex tenant federation resolving to an empty user list right after startup. #7811

### Querier metadata streaming options removed

- Affects: querier configurations using `-querier.ingester-metadata-streaming`, `ingester_metadata_streaming`, or `ingester_streaming`

Metadata APIs now always use streaming RPCs; previously, streaming could be configured with an option that defaulted to `true`. Passing the removed flag stops Cortex at startup.

Evidence: “Remove the deprecated `-querier.ingester-metadata-streaming` flag and its `ingester_metadata_streaming` YAML field (deprecated in 1.18.0, default `true`). Streaming RPCs are now always used for the metadata APIs. Also removes the dead hidden `ingester_streaming` YAML field left over from `-querier.ingester-streaming`.” https://github.com/cortexproject/cortex/releases/tag/v1.22.0

> - **Removed flags and stricter config checks**: Cortex removes the deprecated `-ruler.evaluation-delay-duration`, `-querier.ingester-metadata-streaming`, and `-<prefix>.fifocache.size` flags, and eight flags that already had no effect, such as `-querier.iterators`. Passing a removed flag stops Cortex at startup, and so does a leftover `ruler_evaluation_delay_duration` in a runtime config. `query_ingesters_within` must now be less than `-blocks-storage.tsdb.close-idle-tsdb-timeout`, and a config that sets them equal stops Cortex at startup. Read the `[CHANGE]` entries below before you upgrade.

### Cortex removes eight deprecated no-op CLI flags

- Affects: Cortex command lines containing any of `-querier.ingester-streaming`, `-querier.iterators`, `-querier.batch-iterators`, `-querier.query-store-for-labels-enabled`, `-querier.max-outstanding-requests-per-tenant`, `-query-scheduler.max-outstanding-requests-per-tenant`, `-blocks-storage.tsdb.wal-compression-enabled`, or `-ingester.max-series-per-query`
- Action required: Removal of these flags from command lines before upgrading

These flags had no effect for at least two minor releases. Passing any of them now stops Cortex at startup.

Evidence: “All of them were flag-only (no YAML config option) and already had no effect, so the only impact is that passing them now fails at startup.” https://github.com/cortexproject/cortex/releases/tag/v1.22.0

> - **Removed flags and stricter config checks**: Cortex removes the deprecated `-ruler.evaluation-delay-duration`, `-querier.ingester-metadata-streaming`, and `-<prefix>.fifocache.size` flags, and eight flags that already had no effect, such as `-querier.iterators`. Passing a removed flag stops Cortex at startup, and so does a leftover `ruler_evaluation_delay_duration` in a runtime config. `query_ingesters_within` must now be less than `-blocks-storage.tsdb.close-idle-tsdb-timeout`, and a config that sets them equal stops Cortex at startup. Read the `[CHANGE]` entries below before you upgrade.

### Query-ingester timeout must be below the idle-TSDB timeout

- Affects: Querier and runtime configurations with positive `query_ingesters_within` values at or above `close_idle_tsdb_timeout`, including per-tenant overrides
- Action required: `close_idle_tsdb_timeout` above the largest `query_ingesters_within` value, or set to `0` to disable closing idle TSDBs

Earlier releases allowed and documented equal values. Now equal values make Cortex exit at startup; an offending tenant override makes runtime config fail to load, and failed reloads retain the last good overrides and set `cortex_runtime_config_last_reload_successful` to `0`.

Evidence: “The check also runs on every per-tenant override in the runtime config (on the `all`, `distributor`, `querier` and `ruler` targets), so a single tenant override that sets `query_ingesters_within` at or above `close_idle_tsdb_timeout` makes the whole runtime config fail to load” https://github.com/cortexproject/cortex/releases/tag/v1.22.0

> - **Removed flags and stricter config checks**: Cortex removes the deprecated `-ruler.evaluation-delay-duration`, `-querier.ingester-metadata-streaming`, and `-<prefix>.fifocache.size` flags, and eight flags that already had no effect, such as `-querier.iterators`. Passing a removed flag stops Cortex at startup, and so does a leftover `ruler_evaluation_delay_duration` in a runtime config. `query_ingesters_within` must now be less than `-blocks-storage.tsdb.close-idle-tsdb-timeout`, and a config that sets them equal stops Cortex at startup. Read the `[CHANGE]` entries below before you upgrade.

### Query time-range settings moved to per-tenant `limits`

- Affects: setups configuring `query_ingesters_within`, `query_store_after`, or `shuffle_sharding_ingesters_lookback_period` in querier settings, flags, or tenant limits
- Removed in: v1.24.0

Previously, these settings were in the `querier` block and used `-querier.*` flags. The old field and flag names still work but log a warning and increment `deprecated_flags_inuse_total`; durations use `model.Duration` with a 1 ms minimum unit.

Evidence: “The settings move from the `querier` block to `limits`, and their flags from `-querier.*` to `-limits.*`. The old YAML fields and flags still work, but are deprecated and will be removed in v1.24.0: using them logs a warning and increments `deprecated_flags_inuse_total`.” https://github.com/cortexproject/cortex/releases/tag/v1.22.0

> - **Per-tenant query time ranges and HA failover timeout**: `query_ingesters_within`, `query_store_after`, and `shuffle_sharding_ingesters_lookback_period` move from the `querier` block to `limits`, and `-distributor.ha-tracker.failover-timeout` becomes a per-tenant limit. The 1.21 names keep working until v1.24.0 and log a warning.

### Cortex removes deprecated no-op command-line flags

- Affects: deployments whose command lines still pass any of the eight listed flags
- Action required: Remove the listed deprecated flags from command lines before upgrading.

These flags already had no effect, but passing any of them now causes startup to fail.

> * [CHANGE] Remove deprecated CLI flags that have been no-ops for at least two minor releases. All of them were flag-only (no YAML config option) and already had no effect, so the only impact is that passing them now fails at startup. Remove them from your command lines before upgrading. #7790
>   - `-querier.ingester-streaming` (deprecated in 1.17.0)
>   - `-querier.iterators` (deprecated in 1.17.0)
>   - `-querier.batch-iterators` (deprecated in 1.17.0)
>   - `-querier.query-store-for-labels-enabled` (deprecated in 1.18.0)
>   - `-querier.max-outstanding-requests-per-tenant` (deprecated in 1.18.0; use `-frontend.max-outstanding-requests-per-tenant`)
>   - `-query-scheduler.max-outstanding-requests-per-tenant` (deprecated in 1.18.0; use `-frontend.max-outstanding-requests-per-tenant`)
>   - `-blocks-storage.tsdb.wal-compression-enabled` (deprecated in 1.19.0; use `-blocks-storage.tsdb.wal-compression-type`)
>   - `-ingester.max-series-per-query` (a chunks-storage limit, ignored since blocks storage; use `-querier.max-fetched-series-per-query`)

### Query time-range settings move to per-tenant `limits`

- Affects: Querier configurations using `query_ingesters_within`, `query_store_after`, or `shuffle_sharding_ingesters_lookback_period`
- Action required: Old and new names must not have different values in the same YAML file or on the same command line.
- Removed in: v1.24.0

The old `querier` YAML fields and `-querier.*` flags still work, but emit a deprecation warning and increment `deprecated_flags_inuse_total`; command-line flags take precedence over YAML. Durations below 1ms are unsupported.

> * [CHANGE] Querier: Make query time range configurations per-tenant: `query_ingesters_within`, `query_store_after`, and `shuffle_sharding_ingesters_lookback_period`. Uses `model.Duration` instead of `time.Duration` to support serialization but has minimum unit of 1ms (nanoseconds/microseconds not supported). The settings move from the `querier` block to `limits`, and their flags from `-querier.*` to `-limits.*`. The old YAML fields and flags still work, but are deprecated and will be removed in v1.24.0: using them logs a warning and increments `deprecated_flags_inuse_total`. As before, a flag on the command line wins over the YAML file, whether it uses the old or the new name. Setting the old and the new name to different values in the same place, both in the YAML file or both on the command line, fails at startup. #7160 #7323 #7919

### Cortex query and TSDB timeout validation tightened

- Affects: configurations where positive `query_ingesters_within` is not less than `close_idle_tsdb_timeout`, or tenant overrides that violate these or the query-range constraints
- Action required: Set `close_idle_tsdb_timeout` above the largest `query_ingesters_within` in the config and runtime overrides, or set it to `0` to disable closing idle TSDBs.

Previously, equal positive timeout values were accepted, and the query-range checks were not applied to tenant overrides. Now, equal values make startup fail; invalid tenant overrides can also fail startup or runtime-config reloads, leaving the last good overrides in place and setting `cortex_runtime_config_last_reload_successful` to `0`.

> * [CHANGE] Querier: `query_ingesters_within` must now be strictly less than `-blocks-storage.tsdb.close-idle-tsdb-timeout` when both are positive. Earlier releases did not check this, and documented the two being equal as valid, so a config that sets them equal now makes Cortex **exit at startup** with `invalid query routing config: tenant default: query_ingesters_within (6h50m0s) must be less than close_idle_tsdb_timeout (6h50m0s)`. The check also runs on every per-tenant override in the runtime config (on the `all`, `distributor`, `querier` and `ruler` targets), so a single tenant override that sets `query_ingesters_within` at or above `close_idle_tsdb_timeout` makes the whole runtime config fail to load: Cortex exits at startup, and on an already-running process every reload fails, pinning the last good overrides and dropping `cortex_runtime_config_last_reload_successful` to 0. Before upgrading, raise `close_idle_tsdb_timeout` above the largest `query_ingesters_within` in your config and runtime overrides, or set it to 0 to disable closing idle TSDBs. The existing checks that `query_store_after` is less than `query_ingesters_within`, and that `shuffle_sharding_ingesters_lookback_period` is at least `query_store_after`, now also apply to per-tenant overrides. #7323

### Alertmanager startup migration for legacy local state files removed

- Affects: Alertmanager deployments upgrading from before 1.9.0 with a persisted local state directory

Previously, startup moved legacy local state files into per-tenant directories. The migration must now run in an intermediate release before upgrading directly to this release.

> * [CHANGE] Alertmanager: Remove the obsolete startup migration of local state files into per-tenant directories (scheduled for removal in 1.11.0). Upgrading from a release older than 1.9.0 with a persisted local state directory now requires upgrading to an intermediate release first, so the migration can run. #7513

### Silence creation now requires `createdBy`

- Affects: Clients that create silences through the HTTP API

Alertmanager's Swagger-generated API models now split `Silence` into separate types.

Evidence: “- `createdBy` field is now required when creating a silence via the HTTP API” https://github.com/cortexproject/cortex/pull/7462

> * [ENHANCEMENT] Upgrade prometheus alertmanager version to v0.32.1. #7462

### RPM and deb package install paths corrected

- Affects: RPM or deb installations using the package-provided systemd unit

Previously, the binary was installed at `/usr/local/bin/cortex` and the unit at `/etc/systemd/system/cortex.service`. The binary now installs at `/usr/bin/cortex`; the unit installs at `/usr/lib/systemd/system` for RPM packages and `/lib/systemd/system` for deb packages, and executes `/usr/bin/cortex`.

> * [BUGFIX] Packaging: Fix RPM and deb packages to install the binary to `/usr/bin`, install the systemd unit to the correct system path (`/usr/lib/systemd/system` for RPM, `/lib/systemd/system` for deb), and mark the sysconfig/default env file as a config file so it is not overwritten on upgrade. #7445

### Multitenant Alertmanager blocks tenant creation during shutdown

- Affects: Multitenant Alertmanager fallback tenant creation

When a fallback request races with shutdown—including on the sharded gRPC `HandleRequest` path or after passing the service-state check just before shutdown—it could create an Alertmanager after existing instances were stopped, leak goroutines, and return HTTP 200. Now the request receives HTTP 503 instead of creating a new instance.

Evidence: “The shutdown-vs-lazy-create hole is independent: `stopping()` stops only the alertmanagers present in the map when it runs, and `serveRequest` can be reached without `ServeHTTP`'s service-state check (the gRPC `HandleRequest` path when sharding is enabled) or after passing that check just before the state transition. A request losing that race would upload a config, register a new Alertmanager **after** shutdown stopped the others, return 200 from a shutting-down process, and leak the new instance's goroutines.” https://github.com/cortexproject/cortex/pull/7618

> * [BUGFIX] Alertmanager: Fix data race between ApplyConfig's dispatcher/inhibitor startup and Stop during config reload and shutdown, and reject lazy tenant creation after shutdown begins. #7618

### Per-tenant Alertmanager validation rejects global `mattermost_webhook_url_file`

- Affects: per-tenant Alertmanager configs with a global `mattermost_webhook_url_file` setting

Previously, configs without a Mattermost receiver were accepted even though the setting was never read; configs with a Mattermost receiver were already rejected.

Evidence: “Not exploitable today. When a mattermost receiver is present, upstream copies the global value into the receiver's `WebhookURLFile` during unmarshal, which runs before validation, so the per-receiver check already rejected it. With no mattermost receiver the value was accepted but never read.” https://github.com/cortexproject/cortex/pull/7768

> * [BUGFIX] Alertmanager: Reject the global `mattermost_webhook_url_file` setting in per-tenant configs, consistent with every other global `*_file` setting. #7768

## Deprecations (3)

### HA tracker failover timeout becomes configurable per tenant

- Affects: setups configuring the distributor HA tracker failover timeout
- Removed in: v1.24.0

Previously, the timeout was global in `distributor.ha_tracker.ha_tracker_failover_timeout`; it can now vary by tenant through `limits.ha_tracker_failover_timeout`. The `-distributor.ha-tracker.failover-timeout` flag and its 30s default remain unchanged, and the old YAML field is still supported but deprecated.

> - **Per-tenant query time ranges and HA failover timeout**: `query_ingesters_within`, `query_store_after`, and `shuffle_sharding_ingesters_lookback_period` move from the `querier` block to `limits`, and `-distributor.ha-tracker.failover-timeout` becomes a per-tenant limit. The 1.21 names keep working until v1.24.0 and log a warning.

### Ingester `-blocks-storage.tsdb.max-exemplars` deprecated

- Affects: Ingester setups with a non-zero `-blocks-storage.tsdb.max-exemplars` value
- Removed in: v1.24.0

The flag remains the global fallback for tenants whose `max_exemplars` is 0. A non-zero value now logs a startup warning and increments `deprecated_flags_inuse_total`.

> * [CHANGE] Ingester: Formally deprecate `-blocks-storage.tsdb.max-exemplars`, scheduled for removal in v1.24.0. Use the per-tenant `max_exemplars` limit instead. The flag still works as the global fallback when `max_exemplars` is 0, but setting it now logs a warning and increments `deprecated_flags_inuse_total`. #7793

### HA tracker failover timeout gains per-tenant configuration

- Affects: HA Tracker deployments configuring failover timeouts, especially those using `distributor.ha_tracker.ha_tracker_failover_timeout` or needing per-tenant values
- Removed in: v1.24.0

Previously, the timeout was global, with no per-tenant runtime override. The old YAML field still works but logs a warning and increments `deprecated_flags_inuse_total`; setting it and the new field to different values fails at startup.

> * [CHANGE] HA Tracker: Move `-distributor.ha-tracker.failover-timeout` from a global config to a per-tenant runtime config. The flag name and default value (30s) remain the same. The YAML field moves from `distributor.ha_tracker.ha_tracker_failover_timeout` to `limits.ha_tracker_failover_timeout`. The old field still works, but is deprecated and will be removed in v1.24.0: using it logs a warning and increments `deprecated_flags_inuse_total`. As before, the flag on the command line wins over either YAML field. Setting the old and the new YAML field to different values fails at startup. #7481 #7919

## Important fixes (37)

### Querier cancellation errors now propagate

- Affects: Querier requests using `queryWithRetry` or `labelsWithRetry` (Inferred)

When either function was called with a cancelled context, it returned `(nil, nil)` instead of reporting the cancellation. It now returns `ctx.Err()`.

> * [BUGFIX] Querier: Fix queryWithRetry and labelsWithRetry returning (nil, nil) on cancelled context by propagating ctx.Err(). #7370

### Merged histogram buckets sorted by `UpperBound`

- Affects: setups that merge histogram metrics (Inferred)

Before this fix, bucket order varied when merged histogram buckets were built from a map.

> * [BUGFIX] Metrics Helper: Fix non-deterministic bucket order in merged histograms by sorting buckets after map iteration, matching Prometheus client library behavior. #7380

### Cortex package environment files preserved on upgrade

- Affects: RPM installations with `/etc/sysconfig/cortex` or deb installations with `/etc/default/cortex`

Before this fix, an RPM or deb upgrade silently overwrote the corresponding environment file because it was not marked as a configuration file.

> * [BUGFIX] Packaging: Fix RPM and deb packages to install the binary to `/usr/bin`, install the systemd unit to the correct system path (`/usr/lib/systemd/system` for RPM, `/lib/systemd/system` for deb), and mark the sysconfig/default env file as a config file so it is not overwritten on upgrade. #7445

### Compactor cleanup of stale bucket-index metrics fixed

- Affects: compactor setups where ring rebalancing changes tenant ownership

When ring rebalancing moved a tenant between compactors, the old owner's `cortex_bucket_index_last_successful_update_timestamp_seconds` series remained alongside the new one, triggering false alarms on bucket index update rate. Metrics for tenants no longer owned by a compactor are now deleted.

> * [BUGFIX] Compactor: Fix stale `cortex_bucket_index_last_successful_update_timestamp_seconds` metric not being cleaned up when tenant ownership changes due to ring rebalancing. This caused false alarms on bucket index update rate when a tenant moved between compactors. #7485 #7487

### Tenant federation result cache now tracks matched tenants

- Affects: tenant federation with `-tenant-federation.regex-matcher-enabled=true` and the result cache

When a new tenant changed the regex-matched tenant set, cached results could omit that tenant’s data until the cache entry expired. Changes to the matched set now change the cache key and invalidate the cached entry; non-regex users are unaffected.

> * [BUGFIX] Tenant Federation: Fix result cache returning stale data after a new tenant is added when `-tenant-federation.regex-matcher-enabled=true`. The resolved tenant set is now hashed and included in the cache key so that any change to the matched tenant list automatically invalidates cached entries. Non-regex users are unaffected. #7562

### Ring token conflict resolution fixed

- Affects: ring instances in the `JOINING` state (Inferred)

When two instances joined at the same time, the first CAS could miss their conflict, and later calls might not recheck it; conflicting instances missed as newly added or updated could keep stale tokens. During the observe period, each CAS now checks for conflicts and updates all instances involved with resolved tokens.

> * [BUGFIX] Ring: Fix ring token conflict resolution only applied to updated instance and make constantly token conflict check during instance observe period. #7554

### Query Frontend sorting of native-histogram results fixed

- Affects: range queries using `split_by_interval` (Inferred)

When sub-interval responses contained only native histograms, `minTime()` returned `-1` for each, so they could be sorted incorrectly and histogram data could be lost in the merge. It now uses the first histogram's timestamp when no float samples are present, preserving chronological order before merging.

> * [BUGFIX] Query Frontend: Fix native histogram responses not being handled correctly in `minTime()` sort ordering for split_by_interval merge. #7555

### [Silent failure] Ruler registers Thanos xfunctions before loading rules

- Affects: Ruler setups with the Thanos engine xfunctions flag enabled

Previously, loading rule files from S3 or disk silently dropped recording rules containing `xincrease`, `xrate`, or `xdelta` because the rule-file loader's global parser did not include those functions.

> * [BUGFIX] Ruler: Register xfunctions (xincrease, xrate, xdelta) in the global parser before loading rule files. #7621

### Querier parquet fallback now returns query errors

- Affects: Querier setups using the parquet queryable fallback for `LabelValues` or `LabelNames`

When either call encountered a query error through the fallback, it could return nil instead of the actual error. The fallback now returns that query error to the caller.

> * [BUGFIX] Querier: Fix parquet queryable fallback returning a nil error instead of the actual query error in `LabelValues` and `LabelNames`. #7638

### gRPC DNS watcher preserves endpoints when SRV targets fail

- Affects: setups using the gRPC DNS watcher's SRV-record path

When an SRV query succeeds but every target's A-record lookup fails, the watcher previously returned an empty result, deleting known endpoints. It now tries the watched host's A record, using those addresses with the watcher's port if it resolves and retaining cached endpoints if it does not.

> * [BUGFIX] Fix the gRPC DNS watcher's SRV record path deleting all known endpoints when the SRV query succeeds but every target's A record lookup fails. #7745

### CSV-list flags and YAML fields now parse empty values as empty lists

- Affects: CSV-list flags or YAML fields set to an empty string

Previously, an explicitly empty value was parsed as a one-item list containing an empty tenant name. It now parses as an empty list.

> * [BUGFIX] Config: Fix CSV-list flags/YAML fields (e.g. `-compactor.enabled-tenants`) treating an explicitly empty string as a one-element list containing an empty tenant name instead of an empty list. #7714

### [Silent failure] Regex tenant federation cache corruption fixed

- Affects: regex tenant federation with `-blocks-storage.users-scanner.cache-ttl` set

With `-blocks-storage.users-scanner.cache-ttl` set, the resolver's in-place sort corrupted the scanner cache and progressively dropped tenants from federated query results on each sync until the cache expired. The resolver now copies the scanner's user list before sorting.

> * [BUGFIX] Tenant Federation: Fix regex tenant federation dropping tenants when `-blocks-storage.users-scanner.cache-ttl` is set. The regex resolver sorted the user list returned by the users scanner in place, corrupting the scanner cache and progressively losing tenants on every sync until the cache expired. #7812

### Ingester forced head compaction skips no longer counted as failures

- Affects: Ingester setups where blocks shipping can overlap forced head compaction

When blocks shipping was in progress, skipped forced head compactions incremented `cortex_ingester_tsdb_compactions_failed_total`, producing spurious alerts; those skips no longer increment the counter.

> * [BUGFIX] Ingester: Don't count a forced head compaction skipped because blocks shipping is in progress as a failure. Previously such skips incremented `cortex_ingester_tsdb_compactions_failed_total`, producing spurious alerts. #7842

### Parquet conversion failure fixed with automatic sharding

- Affects: Parquet converter setups with `-parquet-converter.max-num-columns` configured

TSDB blocks with more unique label names than the Parquet library's 32767-column limit could fail conversion. With a configured column limit, those blocks are automatically sharded for conversion.

> - **Parquet**: Sharded parquet file conversion and querying, an experimental `-parquet-converter.max-num-columns` flag that shards a block with too many label names, a row ranges cache, and a ring status page for the parquet converter.

### Ingester streaming query buffer retention fixed

- Affects: Querier/Ingester setups using the ingester streaming query path

During long-running queries under heavy ingester query load, label strings and chunk data could keep receive buffers alive, causing heap usage to grow. The query path now copies that data out of the buffers so they can be reclaimed, at the cost of additional short-lived allocations.

> * [ENHANCEMENT] Querier/Ingester: Detach ingester series from gRPC buffers to reduce heap. #7670

### Distributor deduplication of repeated metric metadata in PRW 2.0 conversion

- Affects: Distributor setups receiving Prometheus Remote Write 2.0 requests

Previously, metadata attached to every PRW 2.0 series expanded into one `MetricMetadata` per series. Because metadata counts toward the ingestion limit, tenants could consume roughly twice their configured `-distributor.ingestion-rate-limit` for the same data; the Distributor now deduplicates repeated metadata during conversion.

> * [ENHANCEMENT] Distributor: Deduplicate metric metadata when converting PRW 2.0 requests. PRW 2.0 attaches metadata to every series, so a metric family was previously expanded into one `MetricMetadata` per series. #7760

### Prometheus Remote Write 2.0 handler returns HTTP 401 when tenant ID resolution fails

- Affects: Prometheus Remote Write 2.0 requests

The response includes the tenant ID resolution error as its text.

> * [BUGFIX] Distributor: Return HTTP 401 Unauthorized when tenant ID resolution fails in the Prometheus Remote Write 2.0 path. #7389

### Compactor bucket index cleanup failure fixed

- Affects: Compactor setups using the bucket index updater

If `meta.json` was deleted after a stale cached `Get()`, the resulting `Attributes()` error could fail the entire cleanup cycle. The updater now handles not-found and access-denied errors, so this case no longer fails the cycle.

> * [BUGFIX] Compactor: Handle not-found and access-denied errors from `Attributes()` in bucket index updater, preventing a stale cached `Get()` from causing the entire cleanup cycle to fail when `meta.json` has been deleted from object storage. #7454

### Ingester TSDB cleanup on compaction failure

- Affects: ingesters using TSDB

If compaction failed after `tsdb.Open()`, `createTSDB` returned without closing the database, leaking file descriptors and memory-mapped handles that could destabilize the ingester. It now closes the TSDB before returning the compaction error and logs a warning if closing also fails.

> * [BUGFIX] Ingester: Close TSDB when compaction fails during `createTSDB`, preventing resource leaks (file descriptors, mmap handles) that could lead to ingester instability. #7560

### Tenant-federation regex resolver preserves user state on scan failures

- Affects: tenant-federation regex resolver with user discovery scans (Inferred)

Previously, a failed user scan cleared the known-users list and could reset the matched cache. Now both are preserved, and queries can still resolve from cached state.

> * [BUGFIX] Tenant Federation: Fix regex resolver clearing known users list when user scan fails. #7534

### Ingester inflight query counter leak fixed

- Affects: Ingester setups using resource-based query protection

When resource-based query protection rejected a request, the inflight query counter leaked.

> * [BUGFIX] Ingester: Fix inflight query counter leak when resource-based query protection rejects a request. #7539

### `ActiveQueriedSeriesService` shutdown panic fixed

- Affects: Ingester setups using `ActiveQueriedSeriesService`

During shutdown, `ActiveQueriedSeriesService` could panic with `panic: send on closed channel`. The redundant channel close in `stopping()` is removed, and worker exit is signaled through `ctx.Done()`.

> * [BUGFIX] Ingester: Fix `panic: send on closed channel` in `ActiveQueriedSeriesService` on shutdown by removing the redundant channel close in `stopping()` and relying on `ctx.Done()` to signal worker exit. #7533

### `ring.DoBatch` cleanup fixed for callback panics

- Affects: setups using `ring.DoBatch`

Previously, a panic in a per-instance callback skipped `wg.Done()`, leaving `wg.Wait()` blocked and preventing cleanup, so context timers and request buffers were not reclaimed. `wg.Done()` now runs during panic unwinding, allowing cleanup to release them.

> * [BUGFIX] Ring: Fix `DoBatch` never running its cleanup callback when a per-instance callback panics. `wg.Done()` is now deferred, so `wg.Wait()` no longer blocks forever and the context timers and request buffers owned by the cleanup function are released. #7559

### Querier bucket-scan resource leak fixed

- Affects: Querier deployments using the bucket-scan blocks finder with the bucket index disabled

When tenants were deleted from storage or became inactive, their metadata fetchers, Prometheus registries, and on-disk metadata caches accumulated for the process lifetime. After each scan, resources for inactive tenants are evicted; the `cortex_blocks_meta_synced` gauge series drops to zero, while co-located store-gateway block data is preserved.

> * [BUGFIX] Querier: Fix unbounded resource leak in the bucket-scan blocks finder (used when the bucket index is disabled). Per-tenant metadata fetchers, their Prometheus registries, and on-disk meta caches are now evicted once a tenant is no longer active, instead of being retained for the lifetime of the process. #7573

### Per-tenant Alertmanager startup/stop race fixed

- Affects: per-tenant Alertmanager instances

When an instance was stopped during reload, tenant deactivation, or process shutdown, `ApplyConfig` could return before the inhibitor and dispatcher finished their initial load, allowing a race with dispatcher startup and an inhibitor goroutine leak. Successful calls now wait for the initial in-memory load to finish before returning.

> * [BUGFIX] Alertmanager: Fix data race between ApplyConfig's dispatcher/inhibitor startup and Stop during config reload and shutdown, and reject lazy tenant creation after shutdown begins. #7618

### Distributor push worker goroutines released on shutdown

- Affects: distributors configured with `-distributor.num-push-workers`

The async executor is stopped during the distributor's stopping phase.

> * [BUGFIX] Distributor: Release the push worker pool goroutines on shutdown by stopping the async executor during the stopping phase when `-distributor.num-push-workers` is set. #7602

### Query Frontend query statistics now include data-selection time bounds

- Affects: Cortex Query Frontend `query` and `query_range` requests

When both query priority and query rejection were disabled, `DataSelectMinTime` and `DataSelectMaxTime` were absent from request stats. They are now set for these requests even in that configuration.

> * [BUGFIX] Query Frontend: Track data selection min and max time of query requests in query stats regardless of whether query priority and query rejection are enabled. #7724

### YAML validation accepts explicit zero values in non-empty root sections

- Affects: YAML configurations with explicit zero values in a non-empty root section

Empty root sections remain rejected.

> * [BUGFIX] Config: Fix validation of explicit zero values in non-empty YAML root sections, allowing configs such as `flusher: { exit_after_flush: false }` while continuing to reject empty root sections. #7700

### Querier request-tracker UTF-8 truncation panic fixed

- Affects: querier request tracking

Truncating a multi-byte UTF-8 character could panic, including when the remaining size budget was zero or negative. Such truncations now produce valid UTF-8 JSON without panicking.

> * [BUGFIX] Querier: Fix panic due to request tracker truncating multi-byte UTF-8 character #7640

### Azure storage endpoint suffix defaults to `blob.core.windows.net`

- Affects: Azure storage with `endpoint_suffix` unset (Inferred)

With `endpoint_suffix` unset, components previously hung on startup with DNS errors because Cortex passed an empty suffix and produced an invalid FQDN (`<account>.`).

> * [BUGFIX] Storage: Default the Azure `endpoint_suffix` to `blob.core.windows.net` instead of empty. Cortex builds the Thanos Azure config directly and bypasses Thanos' default, so an unset suffix produced an invalid FQDN (`<account>.`) and components hung on startup with DNS errors. #5449 #7687

### Transient DNS failures no longer drop worker connections

- Affects: query-frontend/scheduler worker connections managed by the Querier/Query Frontend DNS watcher

A failed lookup previously cleared every known address, dropping query-frontend/scheduler worker connections. The watcher now keeps previously resolved addresses cached when DNS resolution fails.

> * [BUGFIX] Querier/Query Frontend: Fix DNS watcher dropping all query-frontend/scheduler worker connections on a transient DNS lookup failure. #7698

### DynamoDB ring CAS now retries transaction conflicts

- Affects: setups using DynamoDB as the ring KV store

Previously, a concurrent ring update conflict—such as many ingesters joining during a rolling update—caused the update to fail immediately. Now, the CAS loop re-reads the latest ring state, reapplies the mutation, and retries the write.

> * [BUGFIX] Ring: Fix DynamoDB KV CAS not retrying on transactional conditional check failures. `TransactWriteItems` reports condition failures as `TransactionCanceledException` with a `ConditionalCheckFailed` cancellation reason, which was not recognized as retryable, so any concurrent ring update conflict (e.g. many ingesters joining during a rolling update) failed immediately instead of re-reading and retrying. `TransactionConflict` cancellation reasons are also treated as retryable. #7706

### Distributor returns HTTP 499 for client-canceled pushes

- Affects: setups receiving remote-write or OTLP push requests

When a client cancels one of these requests—for example, by disconnecting or when a fronting proxy or load balancer times out—it previously returned HTTP 500 and was counted as a server-side error. Canceled requests are no longer counted as server-side errors.

> * [BUGFIX] Distributor: Return HTTP 499 (Client Closed Request) instead of 500 when a remote-write or OTLP push is canceled by the client, so client-side cancellations are no longer counted as server-side errors. #7717

### Querier canceled-query HTTP status mapping fixed

- Affects: Querier handling of client-canceled queries

When a client canceled a query and the Querier received a gRPC `codes.Canceled` error, it returned HTTP 500, causing false `CortexRequestErrors` alerts on `cortex_request_duration_seconds`. It now returns HTTP 499 for that query.

> * [BUGFIX] Querier: Fix gRPC `codes.Canceled` errors being mapped to HTTP 500 instead of 499 when a client cancels a query. #7738

### Alertmanager config validation panic fixed

- Affects: Alertmanager config validation

`validateAlertmanagerConfig` could panic while traversing nil root, map, or slice values. It now completes validation without panicking, and the tested inputs return no validation error.

> * [BUGFIX] Alertmanager: Fix panic in `validateAlertmanagerConfig` when receiver config traversal encounters nil interface values. #7751

### Querier active request tracker panic fixed

- Affects: Querier active request tracking

When it truncated a `match[]`/`query` value made entirely of invalid UTF-8 continuation bytes, the backwards scan underflowed and panicked with `index out of range [-1]`. The scan now stops at index 0 instead, avoiding the panic.

> * [BUGFIX] Querier: Fix panic (`index out of range [-1]`) in the active request tracker when truncating a `match[]`/`query` value made entirely of invalid UTF-8 continuation bytes. The backwards scan for a rune boundary now stops at index 0 instead of underflowing. #7743

### Compactor final cleanup false failure report fixed

- Affects: Compactor setups using GCS, Azure, Swift, or OCI object stores

During final cleanup for a tenant marked for deletion, an error when deleting a missing object caused the cleanup to be reported as failed.

> * [BUGFIX] Compactor: Fix the final cleanup of a tenant marked for deletion being reported as failed on object stores that return an error when deleting a missing object (GCS, Azure, Swift, OCI). #7861

## Enhancements (41)

- Native and classic formats for remaining Cortex production histograms
- Sharded Parquet conversion and querying supported
- Row-ranges cache for Parquet query filtering
- Parquet converter ring status page added
- Resource-based query rejection for queriers (To use: Set `-querier.query-protection.rejection.threshold.cpu-utilization` and/or `-querier.query-protection.rejection.threshold.heap-utilization` to a nonzero value, and include the corresponding resource type in `monitored_resources`.)
- Querier query eviction based on CPU and heap utilization (To use: A value above 0 for `cpu-utilization` and/or `heap-utilization`; disabled when both are 0)
- OCI Object Storage support for blocks, ruler rules, and Alertmanager state (To use: Select `backend: oci` and configure the `-<prefix>.oci.*` flags.)
- Phase-based query timeout classification (To use: Query timeout classification enabled)
- Ingester per-tenant active-series tracking (To use: Configured via `active_series_trackers` in runtime config overrides)
- Worker pool for distributor query fan-out (To use: `-distributor.num-query-workers` flag)
- Store-gateway concurrent `Series()` data byte limit (To use: `blocks-storage.bucket-store.max-concurrent-data-bytes`)
- Distributor ingestion of `StartTimestamp` from Prometheus Remote Write 2.0 (To use: The experimental `-distributor.enable-start-timestamp` flag must be enabled, and requests must use Prometheus Remote Write 2.0.)
- Memberlist cluster-label validation and rollout controls (To use: Configure `-memberlist.cluster-label` to enable the cluster label. `-memberlist.cluster-label-verification-disabled` is also available to support a rolling label rollout.)
- Experimental worker pool for Distributor query fan-out
- Experimental Ingester active-series tracking (To use: `active_series_trackers` configured in runtime config overrides)
- Ingester head-only queried-series metric (To use: `-ingester.head-queried-series-metrics-enabled` (default: `false`))
- Per-tenant alert generator URL templates in Ruler (To use: Set the per-tenant `ruler_alert_generator_url_template` runtime config option)
- Distributor ingestion of Remote Write 2.0 start timestamps (To use: `-distributor.enable-start-timestamp`)
- Memberlist cluster labels prevent accidental cross-cluster joins (To use: Configure `-memberlist.cluster-label`; disable verification with `-memberlist.cluster-label-verification-disabled` during a live label rollout.)
- Querier classifies evaluation-heavy timeouts as user errors (To use: Set `querier.timeout-classification-enabled` to `true`)
- Querier resource-based query eviction (To use: Set either `-querier.query-protection.eviction.threshold.cpu-utilization` or `-querier.query-protection.eviction.threshold.heap-utilization` above 0)
- OCI Object Storage support for blocks, ruler, and alertmanager (To use: `backend: oci` with the corresponding `-<prefix>.oci.*` flags configured)
- Experimental concurrent data-byte limit for Store gateway `Series()` requests
- Configurable selector series batching in querier and ruler (To use: Set `-querier.selector-batch-size` or `-ruler.selector-batch-size` to a positive value; the default of 0 disables batching.)
- Configurable label-name limit for Parquet block conversion
- Parquet Converter ring-status endpoint added
- Configurable concurrency for store-gateway parquet queries (To use: `-blocks-storage.bucket-store.parquet-query-concurrency` (YAML field: `parquet_query_concurrency`))
- Configurable cache for Parquet query row ranges (To use: Configure `-blocks-storage.bucket-store.parquet-row-ranges-cache.backend` with `memcached`, `redis`, or `inmemory`; a comma-separated list of those values configures the multi-level cache. The default is empty, which disables the cache.)
- Per-tenant `cortex_ingester_ingestion_delay_seconds` metric added
- Additional Ingester TSDB WAL record metrics
- Native histogram aggregation and merging in the Metrics Helper (To use: `nativeHistogramMetric`)
- Per-tenant query-result cache TTLs
- Query Scheduler exposes its `cortex_query_scheduler_tracked_requests` metric
- Query Frontend adds an expensive-query rejection reason and query-stat `reason` field
- Ingester read API CPU profiles gain a `source` label
- `cortex_distributor_received_histogram_buckets` metric for native histograms
- Optional lazy regex evaluation in the Ingester head postings cache (To use: The feature is disabled by default; its flags are `-blocks-storage.expanded_postings_cache.head.lazy-matcher-max-cardinality`, `-blocks-storage.expanded_postings_cache.head.lazy-matcher-simple-cost-ratio`, and `-blocks-storage.expanded_postings_cache.head.lazy-matcher-complex-cost-ratio`.)
- `ring_duplicate_tokens` gauge added to Ring metrics
- Native histogram support for remaining Cortex production histograms
- Ingester adds a per-user TSDB head timestamp metric
- Ingester adds a TSDB-head unique metric-name gauge (To use: `-ingester.active-series-metrics-enabled` must be true for the gauge to be registered.)

## Dependency updates (9)

### Go updated to 1.27.3 with `crypto/x509` security fixes

- [CVE-2026-111943](https://www.cve.org/CVERecord?id=CVE-2026-111943)

> - **Dependency and runtime updates**: Go 1.27.3, Prometheus v3.9.1, Alertmanager v0.33.0, gRPC v1.79.3, and distroless base images for the container images.

8 more, none mentioning security

- `- **Dependency and runtime updates**: Go 1.27.3, Prometheus v3.9.1, Alertmanager v0.33.0, gRPC v1.79.3, and distroless base images for the container images.`
- `- **Dependency and runtime updates**: Go 1.27.3, Prometheus v3.9.1, Alertmanager v0.33.0, gRPC v1.79.3, and distroless base images for the container images.`
- `* [ENHANCEMENT] Upgrade prometheus alertmanager version to v0.32.1. #7462`
- `* [ENHANCEMENT] Update build image and Go version to 1.26. #7434 #7437 #7716 #7726`
- `* [ENHANCEMENT] Upgrade prometheus version to v3.9.1. #7535`
- `* [ENHANCEMENT] Update prometheus alertmanager version to v0.33.0. #7647`
- `* [ENHANCEMENT] Upgrade Thanos and promql-engine to latest. #7505 #7691 #7740 #7788`
- `* [ENHANCEMENT] Update build image and Go version to 1.27.0. #7807 #7814`

## Other changes (28)

- Native histogram ingestion no longer experimental
- Cortex container images switch to `gcr.io/distroless/static-debian12`
- Native histogram ingestion no longer experimental
- Bucket-index cache disabled when TTL is 0
- `-parquet-converter.max-num-columns` flag added to Parquet Converter
- Tenant Federation regex resolver cache retained across user-sync ticks
- Adaptive capacity pooling for Distributor `Symbols` slices
- Partition compaction excludes blocks marked for deletion
- Distributor slice-capacity reuse for Prometheus Remote Write 2.0
- Ingester expanded postings cache switches to LRU eviction
- Querier streaming detaches series data from gRPC buffers
- Store Gateway resolves Parquet shard counts from the bucket index
- Bucket index loader metrics gain a `component` label
- Query Frontend slow-query logs include more request and query statistics
- Caching for `ShuffleShardWithLookback` subrings
- Ingester sample rejection errors include the TSDB head's maximum time
- Compactor skips valid-version parquet marker rereads
- Ruler query error messages made consistent
- Querier response codec switches histogram buckets to value slices
- Querier merge iterator `BatchSize` reduced to 8
- Packaging Dockerfile build fixed for Alpine 3.23
- Compactor tests poll for user ownership
- Compactor blocks cleaner waits for visit-marker heartbeat to finish
- Flaky store-gateway integration test condition fixed
- Store Gateway cache validation message corrected
- Compactor partial block cleanup avoids spurious retries and error logs
- Parquet Converter automatic ring removal enabled
- Parquet Converter errors identify the correct ring

---

Summaries are produced by AI, so they can be wrong, and they are provided without warranty.
