Skip to main content
Version: 3.10.x

API7 Gateway 3.10.8 Release Notes

Release Date: 2026-10-09

Breaking Changes​

Plugins​

  • OpenID Connect

    Upgrade note

    When a token is verified through remote introspection, the issuer allowlist in claim_validator.issuer.valid_issuers is now enforced. An introspection response whose iss is missing or is not in the list is rejected with HTTP 401 and WWW-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-connect configuration sets both introspection_endpoint and claim_validator.issuer.valid_issuers, and confirm that the introspection response of your identity provider carries an iss that is in the list.

  • SAML Auth

    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 AudienceRestriction that does not name this service provider — sp_issuer, unless sp_audiences is set; when the assertion is used outside its NotBefore and NotOnOrAfter window by more than 60 seconds; when its Recipient, or the response's Destination, 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_url is 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 setting X-Forwarded-Proto, or that rewrites the host, the URL built by the gateway differs from the one your identity provider writes into Recipient, and every login is refused after the upgrade.

    Before upgrading the Data Plane, set sp_acs_url to the public callback URL on routes served behind such a proxy, set sp_audiences if your identity provider issues assertions for an audience other than sp_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 note

    The 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 (default 1048576 bytes, 1 MiB), or a batch whose sub-responses together exceed max_response_body_size_total (default 10485760 bytes, 10 MiB), is answered with HTTP 502 and, for example, {"error_msg":"response body of pipeline request 1 exceeds max_response_body_size"}. Sub-responses without a Content-Length are 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-requests plugin metadata. If you rely on batching large responses, raise them before upgrading the Data Plane.

  • Workflow

    Upgrade note

    Each rule's actions must 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 with HTTP 400 and a message naming the problem, such as invalid workflow plugin: invalid action: expected [name, conf] or workflow 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​

Upgrade note — SNI matching on stream routes needs an upgraded Data Plane

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_issuers restricts which issuers are accepted, sp_audiences sets the audiences this service provider answers to, sp_acs_url pins the assertion consumer service URL instead of building it from the request, and clock_skew sets the tolerance for assertion timestamps (default 60 seconds). replay_dict names a shared dictionary in which accepted assertions are remembered until they can no longer be accepted, plus clock_skew, or for replay_ttl seconds (default 600) 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 declares plugin-saml-auth-replay (10 MiB) for this purpose; its size can be changed under nginx_config.http.lua_shared_dict in the gateway configuration file.
  • OpenAPI to MCP
    • Added cache_enabled (default true) and cache_ttl (default 3600 seconds), so that each route decides how long the tools generated from its OpenAPI document are cached. With cache_enabled set to false, the document is read again for every session, which suits a document that is still changing. The options need the api7/openapi-to-mcp sidecar 1.0.5 or later; this release ships 1.0.6.
  • 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_name option sets it. When the option is unset, redis_host is sent, unless it is an IP address. Previously no server name was sent, so with redis_ssl enabled a Redis endpoint that routes TLS connections by name, as many managed Redis services do, could not be reached.
  • AI Rate Limiting
    • cost_expr can now use numeric usage fields nested inside objects, named by joining the keys with __. For example, the OpenAI Responses API reports cached tokens as cached_tokens inside input_tokens_details, which an expression reads as input_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 as 0, so requests are charged less than the expression intends.
  • Limit Count, Limit Count Advanced, GraphQL Limit Count and AI Rate Limiting
    • The $rate_limiting_info variable 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 with decision set to error instead 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.

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. sni takes one name and snis several; a name such as *.example.com matches every name under example.com, a bare * matches any name, matching is case-insensitive, and the two fields cannot be set together. On a listener declared with both tls and tls_passthrough in the gateway configuration file, tls_passthrough on 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 search parameter 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-mcp sidecar image, so that the openapi-to-mcp and mcp-tools-acl plugins can be used in air-gapped deployments. run.sh start loads 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.disable by 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 usage field, 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 with max_response_bytes or max_stream_duration_ms still ends without one.
  • 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 whose state is missing or does not match the session is rejected with HTTP 401 and {"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 the X-Feishu-Code or X-DingTalk-Code header, which is handled as before.
  • Prometheus
    • Fixed issue: The metrics library nginx-lua-prometheus-api7 was 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 when expire was set for metrics under plugin_attr.prometheus.metrics in the gateway configuration file. To avoid the problem, this release rolls the library back to the version used up to 3.10.1. The expire option is still honored, and no configuration change is needed.
  • Limit Count, Limit Count Advanced and GraphQL Limit Count
    • Fixed issue: With sync_interval set, 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.

Data Plane​

  • Fixed issue: With apisix.normalize_uri_like_servlet enabled, 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's strip_path_prefix was 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 answer HTTP 500, and the route was not created. Such a rule is now rejected with HTTP 400 and invalid workflow plugin: invalid action: expected [name, conf].
  • Fixed issue: The Control Plane accepted a DeGraphQL query that the gateway cannot run — subscriptions, null literals, block strings, and directives on fragment or variable definitions. The route was saved, but the gateway discarded it and requests to it answered HTTP 404. Such a query is now rejected with HTTP 400 and a message naming the construct, for example degraphql 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 with HTTP 400 and the secret length should be 32 chars, or the secret should be a base64url encoded string when is_base64_encoded was 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 cache and 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 answer HTTP 410 with a message saying that the trace is no longer available in Jaeger, or HTTP 503 with Jaeger 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.