API7 Gateway 3.10.8 Release Notes
Release Date: 2026-10-09
Breaking Changes
Plugins
-
Upgrade note
When a token is verified through remote introspection, the issuer allowlist in
claim_validator.issuer.valid_issuersis now enforced. An introspection response whoseissis missing or is not in the list is rejected withHTTP 401andWWW-Authenticate: Bearer realm="apisix", error="invalid_token", error_description="issuer validation failed", and the request does not reach the upstream. On 3.10.7 the allowlist was not applied on the introspection path, and such a token was forwarded upstream.Before upgrading, check every route whose
openid-connectconfiguration sets bothintrospection_endpointandclaim_validator.issuer.valid_issuers, and confirm that the introspection response of your identity provider carries anissthat is in the list. -
Upgrade note
The Data Plane now checks the SAML response as the SAML profile requires, without any new configuration. A login is refused when an assertion carries an
AudienceRestrictionthat does not name this service provider —sp_issuer, unlesssp_audiencesis set; when the assertion is used outside itsNotBeforeandNotOnOrAfterwindow by more than 60 seconds; when itsRecipient, or the response'sDestination, does not name this service provider's assertion consumer service URL; or when it answers a login request other than the one this session started. The identity is now read only from an assertion covered by the verified signature. On 3.10.7 none of these was checked.Unless
sp_acs_urlis set, the assertion consumer service URL is built from the scheme and host of the callback request. Behind a load balancer or ingress that terminates TLS without settingX-Forwarded-Proto, or that rewrites the host, the URL built by the gateway differs from the one your identity provider writes intoRecipient, and every login is refused after the upgrade.Before upgrading the Data Plane, set
sp_acs_urlto the public callback URL on routes served behind such a proxy, setsp_audiencesif your identity provider issues assertions for an audience other thansp_issuer, and make sure the gateway's clock is synchronized. A login that is in progress while its gateway instance is upgraded is started again rather than refused. -
batch-requests
Upgrade noteThe plugin now bounds the response bodies it aggregates, in addition to the limit on pipelined sub-requests added in 3.10.1. A single sub-response larger than
max_response_body_size(default1048576bytes, 1 MiB), or a batch whose sub-responses together exceedmax_response_body_size_total(default10485760bytes, 10 MiB), is answered withHTTP 502and, for example,{"error_msg":"response body of pipeline request 1 exceeds max_response_body_size"}. Sub-responses without aContent-Lengthare measured as well. On 3.10.7 neither limit existed, and every sub-response body was buffered in full.Both limits are options of the
batch-requestsplugin metadata. If you rely on batching large responses, raise them before upgrading the Data Plane. -
Upgrade note
Each rule's
actionsmust now hold exactly one[name, conf]pair. An action with extra elements and a rule with more than one action were accepted, stored and run on 3.10.7. The Control Plane now rejects both withHTTP 400and a message naming the problem, such asinvalid workflow plugin: invalid action: expected [name, conf]orworkflow plugin: rules.0.actions: Array must have at most 1 items.A workflow configuration of these two shapes that was stored before the upgrade becomes an error-level entry in the configuration compatibility report once its gateway instance is upgraded, and has to be corrected before it can be edited again.
Upgrade Notes
Stream routes can now carry sni, snis and tls_passthrough from the Control Plane. A Data Plane rejects a stream route as a whole when it carries a field the Data Plane does not support, and the route then stops serving traffic on that gateway instance. snis is supported only from 3.10.8, so a Data Plane on 3.10.7 or earlier rejects a stream route that sets it. tls_passthrough is supported from 3.10.7.
API7 Enterprise is upgraded Control Plane first. Do not configure snis on a stream route until every Data Plane of the gateway group runs 3.10.8, and do not use tls_passthrough while any of them is older than 3.10.7. A single sni is supported by every Data Plane version this Control Plane accepts.
Features
Plugins
- SAML Auth
- Added options to tighten or adjust how a login response is checked.
idp_issuersrestricts which issuers are accepted,sp_audiencessets the audiences this service provider answers to,sp_acs_urlpins the assertion consumer service URL instead of building it from the request, andclock_skewsets the tolerance for assertion timestamps (default60seconds).replay_dictnames a shared dictionary in which accepted assertions are remembered until they can no longer be accepted, plusclock_skew, or forreplay_ttlseconds (default600) when they carry no expiry, so that each is accepted only once per gateway instance. If the dictionary is full, the login still succeeds but its assertion is not recorded, and the gateway logs an error. The gateway declaresplugin-saml-auth-replay(10 MiB) for this purpose; its size can be changed undernginx_config.http.lua_shared_dictin the gateway configuration file.
- Added options to tighten or adjust how a login response is checked.
- OpenAPI to MCP
- Added
cache_enabled(defaulttrue) andcache_ttl(default3600seconds), so that each route decides how long the tools generated from its OpenAPI document are cached. Withcache_enabledset tofalse, the document is read again for every session, which suits a document that is still changing. The options need theapi7/openapi-to-mcpsidecar 1.0.5 or later; this release ships 1.0.6.
- Added
- Limit Count, Limit Count Advanced, GraphQL Limit Count, Limit Conn, Limit Req, AI Rate Limiting and AI Cache
- TLS connections to Redis now send the server name (SNI), and the new
redis_server_nameoption sets it. When the option is unset,redis_hostis sent, unless it is an IP address. Previously no server name was sent, so withredis_sslenabled a Redis endpoint that routes TLS connections by name, as many managed Redis services do, could not be reached.
- TLS connections to Redis now send the server name (SNI), and the new
- AI Rate Limiting
cost_exprcan now use numeric usage fields nested inside objects, named by joining the keys with__. For example, the OpenAI Responses API reports cached tokens ascached_tokensinsideinput_tokens_details, which an expression reads asinput_tokens_details__cached_tokens. Top-level fields keep their names, so existing expressions are unaffected. The joined names need a 3.10.8 Data Plane; an older one evaluates them as0, so requests are charged less than the expression intends.
- Limit Count, Limit Count Advanced, GraphQL Limit Count and AI Rate Limiting
- The
$rate_limiting_infovariable now also describes the window the request was counted in: the window type and size, whether the request was allowed or rejected, what it added to the counter, the start, end and count of the current window, the weighted previous window of a sliding window, and the snapshot that a delayed synchronization decision used. A request whose counter could not be updated, for example because Redis is unreachable, is recorded withdecisionset toerrorinstead of looking like a rejection, and a key containing a quote or a backslash no longer makes the value invalid JSON. The order of the fields is no longer fixed and new fields were added, so a log pipeline that parses the value by position must switch to parsing it as JSON.
- The
Control Plane
- Stream routes can now be matched by the server name (SNI) in the client's TLS handshake, and can pass the TLS session through to the backend.
snitakes one name andsnisseveral; a name such as*.example.commatches every name underexample.com, a bare*matches any name, matching is case-insensitive, and the two fields cannot be set together. On a listener declared with bothtlsandtls_passthroughin the gateway configuration file,tls_passthroughon the matched stream route decides whether the connection is passed through untouched or terminated at the gateway. The fields are available through the Admin API and in the Dashboard's stream route form. Previously the Control Plane dropped them, so stream routes on the same port could not be told apart by SNI. See Upgrade Notes for the Data Plane versions they need. - Services can now be found by the ID of one of their routes. The
searchparameter on the service list endpoint also matches, in full or in part, the IDs of the HTTP routes and stream routes in the gateway group, and returns the service that owns the matching route. Whitespace-separated terms keep their AND semantics, so a query can combine a service field with a route ID. The Dashboard's service search hint mentions the new match. - The offline installation package now includes the
api7/openapi-to-mcpsidecar image, so that theopenapi-to-mcpandmcp-tools-aclplugins can be used in air-gapped deployments.run.sh startloads the image; the sidecar still has to be started next to the gateway, in the same network namespace.
Console (Dashboard)
- Plugin cards on services, routes, stream routes, consumers and global rules have an enable/disable switch, and the plugin editor has the same switch. Disabling a plugin keeps its configuration and stops the gateway from running it. Previously this required editing
_meta.disableby hand. - The Control Plane version is shown in a footer at the bottom of the side menu, and can be copied with a click.
Fixes
Plugins
- AI Aliyun Content Moderation
- Fixed issue: When a streamed model response carried no
usagefield, the final moderation check was skipped, and the client received the answer with no moderation result. When the response also ended without a[DONE]event, the client never received one. The final check now always runs and its result is reported, and the gateway sends the closing[DONE]itself when the upstream does not. A stream that the gateway cuts short withmax_response_bytesormax_stream_duration_msstill ends without one.
- Fixed issue: When a streamed model response carried no
- AI Proxy
- Fixed issue: A streamed response could be cut short and logged as a client disconnect when a periodic flush found nothing new to send, which could happen with SSE events split across reads or with a plugin that buffers the response body.
- feishu-auth and dingtalk-auth
- Fixed issue: The authorization code was not bound to the browser session that started the login, so a code obtained elsewhere was accepted on any session that presented it (login CSRF). The redirect to the identity provider now carries a random
state, and a callback whosestateis missing or does not match the session is rejected withHTTP 401and{"message":"Invalid state"}. A login that is in progress while its gateway instance is upgraded has to be started again. An integration that obtains the code itself should pass it in theX-Feishu-CodeorX-DingTalk-Codeheader, which is handled as before.
- Fixed issue: The authorization code was not bound to the browser session that started the login, so a code obtained elsewhere was accepted on any session that presented it (login CSRF). The redirect to the identity provider now carries a random
- Prometheus
- Fixed issue: The metrics library
nginx-lua-prometheus-api7was upgraded in 3.10.5, and on 3.10.5, 3.10.6 and 3.10.7 it could cause CPU spikes on the gateway workers whenexpirewas set for metrics underplugin_attr.prometheus.metricsin the gateway configuration file. To avoid the problem, this release rolls the library back to the version used up to 3.10.1. Theexpireoption is still honored, and no configuration change is needed.
- Fixed issue: The metrics library
- Limit Count, Limit Count Advanced and GraphQL Limit Count
- Fixed issue: With
sync_intervalset, a gateway instance that only rejected requests stopped refreshing its cached quota from Redis once its local count expired, and kept rejecting on stale numbers until the cached quota itself ran out. With a sliding window, such an instance kept applying the previous window's weight for the rest of the window and admitted far fewer requests than the limit allows. When Redis was unreachable, such an instance also charged its local fallback counter at every synchronization, although it had admitted nothing.
- Fixed issue: With
Data Plane
- Fixed issue: With
apisix.normalize_uri_like_servletenabled, the request sent to the upstream did not match the request that was routed. A percent-encoded?(%3F) in the path was decoded, so that everything after it arrived as a query string; the client's own query string was dropped; and a service'sstrip_path_prefixwas ignored, so that the upstream received the path with the prefix still on it. - Fixed issue: A stream route referencing a plugin that the Data Plane does not have — a custom plugin not enabled for the gateway group, for example — was discarded as a whole, taking the route out of service. The plugin is now skipped and the route keeps working, as HTTP routes already did. A skipped plugin does not run, so if it enforces access control, such as
ip-restriction, make sure it is enabled for the gateway group. - Fixed issue: The configuration compatibility report did not cover stream routes, so a gateway instance could be reported as having no problems while some of its stream routes were invalid or referenced unavailable plugins. Stream routes are now reported like any other resource.
- Fixed issue: A configuration change written while the gateway was starting could be lost without any error, because the configuration watch could start before etcd was reachable. The affected worker kept running the old configuration until the same resource was changed again.
- Fixed issue: The gateway RPM package did not include the S3 and Azure Blob client libraries, so on a gateway installed from the RPM package a fallback Control Plane backed by S3 or Azure Blob storage did not work.
Control Plane
- Fixed issue: A Workflow rule whose action had no configuration, such as
[["return"]], made the Control Plane answerHTTP 500, and the route was not created. Such a rule is now rejected withHTTP 400andinvalid workflow plugin: invalid action: expected [name, conf]. - Fixed issue: The Control Plane accepted a DeGraphQL
querythat the gateway cannot run — subscriptions,nullliterals, block strings, and directives on fragment or variable definitions. The route was saved, but the gateway discarded it and requests to it answeredHTTP 404. Such a query is now rejected withHTTP 400and a message naming the construct, for exampledegraphql does not support subscription operations. In the other direction, a query with an empty selection set, which the gateway runs, is now accepted. - Fixed issue: A JWE Decrypt consumer whose secret was given as an
$env://or$secret://reference was rejected withHTTP 400andthe secret length should be 32 chars, orthe secret should be a base64url encoded stringwhenis_base64_encodedwas set, because the Control Plane checked the reference as though it were the key itself. The reference is now stored as written and resolved by the gateway at runtime. - Fixed issue: Upgrading a 3.8.x or 3.9.x Control Plane directly to 3.10.6 or 3.10.7 failed when a service used a custom plugin. The dashboard restarted in a loop with
custom plugin encrypt fields not found in cacheand never came up; upgrading through 3.10.5 first was not affected. A direct upgrade to 3.10.8 completes and ends with the same data as the two-step upgrade. - Fixed issue: When a debug session listed a trace that Jaeger no longer held — because it had aged out of retention, or because a Jaeger that keeps traces in memory had restarted — opening or downloading the trace failed with an empty
HTTP 500, and so did any request while Jaeger could not be reached. The trace detail and download endpoints now answerHTTP 410with a message saying that the trace is no longer available in Jaeger, orHTTP 503withJaeger is unavailable.
Console (Dashboard)
- Fixed issue: In the trace view of a debug session, every span name was prefixed with the same service name and the span name column could not be widened. The prefix is removed, the column can be resized, and the service is still shown in the span details.
- Fixed issue: Clicking an item in the header menu could do nothing, or lead back to the landing page, when the page being left updated its own address while the next page was still loading.