chore(deps): update dependency apollographql/router to v2.12.0#68
Merged
renovate[bot] merged 1 commit intomainfrom Mar 2, 2026
Merged
chore(deps): update dependency apollographql/router to v2.12.0#68renovate[bot] merged 1 commit intomainfrom
renovate[bot] merged 1 commit intomainfrom
Conversation
fcceaa8 to
94683ee
Compare
auto-merge was automatically disabled
January 26, 2026 22:09
Pull request was closed
94683ee to
53d4800
Compare
a045883 to
58a7675
Compare
gijs-martens
approved these changes
Feb 25, 2026
|
@gocamille any chance this could be looked at? |
11f147b to
d02c3fc
Compare
d02c3fc to
a31a2a3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.10.0→2.12.0Release Notes
apollographql/router (apollographql/router)
v2.12.0Compare Source
🚀 Features
Support Unix domain socket (UDS) communication for coprocessors (Issue #5739)
Many coprocessor deployments run side-by-side with the router, typically on the same host (for example, within the same Kubernetes pod).
This change brings coprocessor communication to parity with subgraphs by adding Unix domain socket (UDS) support. When the router and coprocessor are co-located, communicating over a Unix domain socket bypasses the full TCP/IP network stack and uses shared host memory instead, which can meaningfully reduce latency compared to HTTP.
By @theJC in #8348
Add
redact_query_validation_errorssupergraph config option (PR #8888)The new
redact_query_validation_errorsoption in thesupergraphconfiguration section replaces all query validation errors with a single generic error:{ "message": "invalid query", "extensions": { "code": "UNKNOWN_ERROR" } }By @phryneas in #8888
Support multiple
@listSizedirectives on the same field (PR #8872)The router now supports multiple
@listSizedirectives on a single field, enabling more flexible cost estimation when directives from different subgraphs are combined during federation composition.@listSizedirectives on a field (stored asVec<ListSizeDirective>instead ofOption<ListSizeDirective>).assumedSizevalues, the router uses the maximum value for cost calculation.This change prepares the router for federation's upcoming support for repeatable
@listSizedirectives, and maintains full compatibility with current non-repeatable directive schemas.By @cmorris in #8872
Add parser recursion and lexical token metrics (PR #8845)
The router now emits two new metrics:
apollo.router.operations.recursionfor the recursion level reached, andapollo.router.operations.lexical_tokensfor the number of lexical tokens in a query.By @jhrldev in #8845
Support subgraph-level demand control (PR #8829)
Subgraph-level demand control lets you enforce per-subgraph query cost limits in the router, in addition to the existing global cost limit for the whole supergraph. This helps you protect specific backend services that have different capacity or cost profiles from being overwhelmed by expensive operations.
When a subgraph-specific cost limit is exceeded, the router:
Per-subgraph limits apply to the total work for that subgraph in a single operation. For each request, the router tracks the aggregate estimated cost per subgraph across the entire query plan. If the same subgraph is fetched multiple times (for example, through entity lookups, nested fetches, or conditional branches), those costs are summed together and the subgraph's limit is enforced against that total.
Configuration
Example
Consider a
topProductsquery that fetches a list of products from a products subgraph and then performs an entity lookup for each product in a reviews subgraph. Assume the products cost is 10 and the reviews cost is 5, leading to a total estimated cost of 15 (10 + 5).Previously, you could only restrict that query via
demand_control.static_estimated.max:Subgraph-level demand control enables much more granular control. In addition to
demand_control.static_estimated.max, which operates as before, you can also set per-subgraph limits.For example, if you set
max = 20andreviews.max = 2, the query passes the aggregate check (15 < 20) and executes on the products subgraph (no limit specified), but doesn't execute against the reviews subgraph (5 > 2). The result is composed as if the reviews subgraph had returned null.By @carodewig in #8829
Improve
@listSizedirective parsing and nested path support (PR #8893)Demand control cost calculation now supports:
@listSizesizing (for example, list arguments)sizedFieldsargument on@listSizefor more accurate cost estimationThese changes are backward compatible with existing schemas and directives.
By @cmorris in #8893
Add coprocessor hooks for connector request and response stages (PR #8869)
You can now configure a coprocessor hook for the
ConnectorRequestandConnectorResponsestages of the router lifecycle.By @andrewmcgivery in #8869
🐛 Fixes
Pass variables to introspection queries (PR #8816)
Introspection queries now receive variables, enabling
@includeand@skipdirectives during introspection.By @jephuff in #8816
Log warning instead of returning error for non-UTF-8 headers in
externalize_header_map(PR #8828)By @rohan-b99 in #8828
Place
http_clientspan attributes on thehttp_requestspan (PR #8798)Attributes configured under
telemetry.instrumentation.spans.http_clientare now added to thehttp_requestspan instead ofsubgraph_request.Given this config:
Both attributes are now placed on the
http_requestspan.By @rohan-b99 in #8798
Validate
ObjectValuevariable fields against input type definitions (PR #8821 and PR #8884)The router now validates individual fields of input object variables against their type definitions. Previously, variable validation checked that the variable itself was present but didn't validate the fields within the object.
Example:
This request previously passed validation because the variable
msgwas present in the input, but the fields ofmsgweren't validated against theMessageInputtype.Enabled:
Disabled:
By @conwuegb in #8821 and #8884
Increase internal Redis timeout from 5s to 10s (PR #8863)
Because mTLS handshakes can be slow in some environments, the internal Redis timeout is now 10s (previously 5s). The connection "unresponsive" threshold is also increased from 5s to 10s.
By @aaronarinder in #8863
Enforce and log operation limits for cached query plans (PR #8810)
The router now logs the operation-limits warning for cached query plans as well, ensuring the query text is included whenever limits are exceeded. This also fixes a case where a cached plan could bypass enforcement after changing
warn_onlyfromtruetofalseduring a hot reload.By @rohan-b99 in #8810
Prevent duplicate
content-typeheaders in connectors (PR #8867)When you override the
content-typeheader in a connector@sourcedirective, the router no longer appends the default value. The custom header value now properly replaces the default.For example:
Previously resulted in:
content-type: application/json, application/vnd.iaas.v1+jsonNow correctly results in:
content-type: application/vnd.iaas.v1+jsonBy @andrewmcgivery in #8867
Prevent duplicate tags in router spans added by dynamic attributes (PR #8865)
When dynamic attributes are added via
SpanDynAttribute::insert,SpanDynAttribute::extend,LogAttributes::insert,LogAttributes::extend,EventAttributes::insert, orEventAttributes::extendand the key already exists, the router now replaces the existing value instead of creating duplicate attributes.By @rohan-b99 in #8865
Compute actual demand control costs across all subgraph fetches (PR #8827)
The demand control feature estimates query costs by summing together the cost of each subgraph operation, capturing any intermediate work that must be completed to return a complete response.
Previously, the actual query cost computation only considered the final response shape and didn't include any of the intermediate work in its total.
The router now computes the actual query cost as the sum of all subgraph response costs. This more accurately reflects the work done per operation and enables a more meaningful comparison between actual and estimated costs.
To disable the new actual cost computation behavior, set the router configuration option
demand_control.strategy.static_estimated.actual_cost_modetoresponse_shape:By @carodewig in #8827
📚 Documentation
Correct response caching FAQ for schema updates and multi-root-field caching (PR #8794)
Updated the response caching FAQ to accurately describe caching behavior:
Cache-Control: max-ageheaders.300sto5mfor better readability.By @the-gigi-apollo in #8794
v2.11.0Compare Source
🚀 Features
Support client awareness metadata via HTTP headers (PR #8503)
Clients can now send library name and version metadata for client awareness and enhanced client awareness using HTTP headers. This provides a consistent transport mechanism instead of splitting values between headers and
request.extensions.By @calvincestari in #8503
Reload OCI artifacts when a tag reference changes (PR #8805)
You can now configure tag-based OCI references in the router. When you use a tag reference such as
artifacts.apollographql.com/my-org/my-graph:prod, the router polls and reloads when that tag points to a new artifact.This also applies to automatically generated variant tags and custom tags.
By @graytonio in #8805
Add memory limit option for cooperative cancellation (PR #8808)
The router now supports a
memory_limitoption onexperimental_cooperative_cancellationto cap memory allocations during query planning. When the memory limit is exceeded, the router:enforcemode, cancels query planning and returns an error to the client.measuremode, records the cancellation outcome in metrics and allows query planning to complete.The memory limit works alongside the existing
timeoutoption. Whichever limit is reached first triggers cancellation.This feature is only available on Unix platforms when the
global-allocatorfeature is enabled anddhat-heapis not enabled.Example configuration:
By @rohan-b99 in #8808
Add memory tracking metrics for requests (PR #8717)
The router now emits two histogram metrics to track memory allocation activity during request processing:
apollo.router.request.memory: Memory activity across the full request lifecycle (including parsing, validation, query planning, and plugins)apollo.router.query_planner.memory: Memory activity for query planning work in the compute job thread poolEach metric includes:
allocation.type:allocated,deallocated,zeroed, orreallocatedcontext: The tracking context name (for example,router.requestorquery_planning)This feature is only available on Unix platforms when the
global-allocatorfeature is enabled anddhat-heapis not enabled.By @rohan-b99 in #8717
🐛 Fixes
Support nullable
@keyfields in response caching (PR #8767)Response caching can now use nullable
@keyfields. Previously, the response caching feature rejected nullable@keyfields, which prevented caching in schemas that use them.When you cache data keyed by nullable fields, keep your cache keys simple and avoid ambiguous
nullvalues.By @aaronArinder in #8767
Return
429instead of503when enforcing a rate limit (PR #8765)In v2.0.0, the router changed the rate-limiting error from
429(TOO_MANY_REQUESTS) to503(SERVICE_UNAVAILABLE). This change restores429to align with the router error documentation.By @carodewig in #8765
Add status code and error type attributes to
http_requestspans (PR #8775)The router now always adds the
http.response.status_codeattribute tohttp_requestspans (for example, forrouter -> subgraphrequests). The router also conditionally addserror.typefor non-success status codes.By @rohan-b99 in #8775
Report response cache invalidation failures as errors (PR #8813)
The router now returns an error when response cache invalidation fails. Previously, an invalidation attempt could fail without being surfaced as an error.
After you upgrade, you might see an increase in the
apollo.router.operations.response_cache.invalidation.errormetric.By @bnjjj in #8813
Reuse response cache Redis connections for identical subgraph configuration (PR #8764)
The response cache now reuses Redis connection pools when subgraph-level configuration resolves to the same Redis configuration as the global
allsetting. Previously, the router could create redundant Redis connections even when the effective configuration was identical.Impact: If you configure response caching at both the global and subgraph levels, you should see fewer Redis connections and lower connection overhead.
By @bnjjj in #8764
Prevent TLS connections from hanging when a handshake stalls (PR #8779)
The router listener loop no longer blocks while waiting for a TLS handshake to complete. Use
server.http.tls_handshake_timeoutto control how long the router waits before terminating a connection (default:10s).By @rohan-b99 in #8779
Emit cardinality overflow metrics for more OpenTelemetry error formats (PR #8740)
The router now emits the
apollo.router.telemetry.metrics.cardinality_overflowmetric for additional OpenTelemetry cardinality overflow error formats.By @bonnici in #8740
Propagate trace context on WebSocket upgrade requests (PR #8739)
The router now injects trace propagation headers into the initial HTTP upgrade request when it opens WebSocket connections to subgraphs. This preserves distributed trace continuity between the router and subgraph services.
Trace propagation happens during the HTTP handshake only. After the WebSocket connection is established, headers cannot be added to individual messages.
By @theJC in #8739
Stop query planning compute jobs when the parent task is canceled (PR #8741)
Query planning compute jobs now stop when cooperative cancellation cancels the parent task.
By @rohan-b99 in #8741
Reject invalidation requests with unknown fields (PR #8752)
The response cache invalidation endpoint now rejects request payloads that include unknown fields. When unknown fields are present, the router returns HTTP
400(Bad Request).By @bnjjj in #8752
Restore plugin access to
SubscriptionTaskParamsinexecution::Requestbuilders (PR #8771)Plugins and other external crates can use
SubscriptionTaskParamswithexecution::Requestbuilders again. This restores compatibility for plugin unit tests that construct subscription requests.By @aaronArinder in #8771
Support JWT tokens with multiple audiences (PR #8780)
When
issuersoraudiencesis included in the router's JWK configuration, the router will check each request's JWT forissoraudand reject requests with mismatches.Expected behavior:
issclaim must be specified as a string.issuersis empty.issis a string and is present in the JWK'sissuers.issis null.issis a string but is not present in the JWK'sissuers.issis not a string or null.audclaim can be specified as either a string or an array of strings.audiencesis empty.audis a string and is present in the JWK'saudiences.audis an array of strings and at least one of those strings is present in the JWK'saudiences.audis not a string or array of strings (i.e., null).Behavior prior to this change:
isswas not null or a string, it was permitted (regardless of its value).audwas an array, it was rejected (regardless of its value).By @carodewig in #8780
Enforce feature restrictions for warning-state licenses (PR #8768)
The router now enforces license restrictions even when a license is in a warning state. Previously, warning-state licenses could bypass enforcement for restricted features.
If your deployment uses restricted features, the router returns an error instead of continuing to run.
By @aaronArinder in #8768
🛠 Maintenance
Warn at startup when
OTEL_EXPORTER_OTLP_ENDPOINTis set (PR #8729)The router now displays a warning at startup if the
OTEL_EXPORTER_OTLP_ENDPOINTenvironment variable is set. This variable takes precedence over default configurations and can override trace export to Apollo Studio, so the warning helps you identify when telemetry data might not be sent where expected.By @apollo-mateuswgoettems in #8729
Increase Redis 'unresponsive' check frequency (PR #8763)
Perform the 'unresponsive' check every two seconds. This aligns with the Redis client's guideline that the check interval should be less than half the timeout value.
By @carodewig in #8763
📚 Documentation
Fix subscription licensing discrepancy in documentation (PR #8726)
Corrected the subscription support documentation to reflect that subscriptions are available on all GraphOS plans (Free, Developer, Standard, and Enterprise) with self-hosted routers.
The documentation previously stated that subscription support was an Enterprise-only feature for self-hosted routers, which was incorrect. Subscriptions are a licensed feature available to all GraphOS plans when the router is connected to GraphOS with an API key and graph ref.
Updated both the configuration and overview pages to remove the misleading Enterprise-only requirement and clarify the actual requirements.
By @the-gigi-apollo in #8726
Clarify traffic shaping compression headers in documentation (PR #8773)
The traffic shaping documentation now clearly explains how the router handles HTTP compression headers for subgraph requests. It clarifies that
content-encodingis set when compression is configured viatraffic_shaping, whileaccept-encodingis automatically set on all subgraph requests to indicate the router can accept compressed responses (gzip,br, ordeflate). The documentation also notes that these headers are added after requests are added to the debug stack, so they won't appear in the Connectors Debugger.By @the-gigi-apollo in #8773
Document default histogram buckets and their relationship to timeout settings (PR #8783)
The documentation now explains how histogram bucket configuration affects timeout monitoring in Prometheus and other metrics exporters.
The documentation now includes:
0.001to10.0seconds)telemetry.exporters.metrics.common.bucketsto match your timeout settingsThis update helps users understand why their timeout metrics may not behave as expected and provides clear guidance on customizing buckets for applications with longer timeout configurations.
By @the-gigi-apollo in #8783
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.