API7 Gateway 3.10.9 Release Notes
Release Date: 2026-10-29
Breaking Changes
Plugins
-
Upgrade note
A request is now forwarded only when Keycloak grants every permission the route requests and every scope in each of them. Previously, the plugin asked Keycloak for a decision on all permissions at once and forwarded the request when at least one of them was granted, so a route listing several permissions, or a permission with several scopes, admitted a user who held only part of them. Such a request is now answered with
HTTP 403, or redirected toaccess_denied_redirect_uriwhen it is configured.The same applies to
http_method_as_scopeon a static permission that already lists a scope: the scope named after the request method must now be granted too. Scope names are now sent without surrounding spaces, so a permission such asres#view, delete, which previously asked Keycloak for a scope nameddeletethat it ignored, now requiresdeleteto be granted. When the response of the Keycloak token endpoint cannot be decoded, the plugin now answersHTTP 503.Before upgrading, make sure that the users of each route that lists several permissions or scopes are granted all of them in Keycloak.
Data Plane
-
The upstream receives the path the route was matched on
Upgrade noteRoutes are matched on the request path after Nginx has normalized it: percent-decoded, with dot segments such as
..,..%2Fand%2e%2eresolved, cut at#, and with consecutive slashes merged. The upstream, however, received the original request path, so a request such as/admin/..%2Fapi/xmatched a route for/api/*while the upstream received/admin/..%2Fapi/x. When Nginx normalized the path, the upstream now receives the normalized path, escaped by Nginx, and encoded delimiters in it arrive decoded:/a/./b%2Fcreaches the upstream as/a/b/c. Requests whose path Nginx only percent-decoded, or in which it only merged consecutive slashes, are unaffected. There is no option to restore the previous behavior.If an upstream relies on receiving dot segments or encoded slashes as the client sent them, check it before upgrading.
-
The gateway image is built on a minimal base
Upgrade noteThe
api7-ee-3-gatewayimage is now the minimal image previously published asapi7-ee-3-gateway-distroless, and the Ubuntu-based image is no longer built. The image keeps the same name, tags and default user, but contains only the libraries the gateway needs and BusyBox utilities: there is noapt, nobashand no Perl, so therestycommand line tool does not run inside it. Theapi7-ee-3-gateway-distrolessname is no longer published; useapi7-ee-3-gatewayinstead. Theapi7-ee-3-gateway-rootimage, which runs asroot, is now built from the same minimal image.If you build a custom image on top of
api7-ee-3-gateway, or run scripts or debugging commands inside the gateway container that rely on a package manager,bashor Perl, adapt them before upgrading.
Upgrade Notes
An upstream that sets tls_verify: true without referencing a client certificate or CA certificate object (client_certificate or ca_certificates), either on its own or together with the deprecated inline tls block, was delivered to the gateway without certificate verification, so the gateway accepted any upstream certificate. The Control Plane now delivers the setting, and the gateway verifies the upstream certificate. When the upstream references no CA certificate, the gateway verifies it against the CA certificates in its apisix.ssl.ssl_trusted_certificate setting, which defaults to the system CA bundle, and checks the revocation list of a proxy_ssl_crl directive when one is configured. An upstream with tls_verify: true whose certificate the gateway does not trust now fails with HTTP 502 where it previously succeeded. This is the intended behavior of the setting.
Upstreams of this shape that were saved before the upgrade keep running without verification after it, because the configuration delivered to gateways is regenerated only when a service is saved. To turn verification on for them, save each affected service again once the Control Plane is upgraded. Before you do, make sure the gateway trusts each upstream's certificate — reference the issuing CA through ca_certificates, or add it to ssl_trusted_certificate — or set tls_verify to false where verification is not wanted.
Two limitations apply to upstream certificate verification in this release. When an upstream references CA certificates in ca_certificates, the revocation list of a proxy_ssl_crl directive is not checked for it. Verification enabled through tls_verify does not apply proxy_ssl_verify_depth.
tls can no longer be combined with certificate referencesCreating or updating a service or an upstream whose upstream sets the deprecated inline tls block together with client_certificate or ca_certificates is now rejected with HTTP 400 and upstream tls cannot be used together with client_certificate or ca_certificates: tls is deprecated, configure the certificates with client_certificate and ca_certificates instead. On 3.10.8 such a write was accepted, but the inline tls block was discarded when the configuration was delivered to the gateway, so an inline client certificate was never presented to the upstream. tls_verify is a switch, not a certificate reference, and can still be used with either.
Such an upstream that is already stored is delivered to gateways exactly as before, but the next update of its service or upstream is rejected until either the inline tls block or the certificate references are removed. Move the certificates into client_certificate and ca_certificates before editing it.
The Control Plane no longer carries the database upgrade steps for versions earlier than 3.8.0. To upgrade from such a version, first upgrade to 3.10.8 or an earlier 3.8, 3.9 or 3.10 release, then to 3.10.9.
The endpoint through which gateway instances of version 3.4 and earlier reported metrics has also been removed. Such gateway instances can still connect to the Control Plane, but their metrics are rejected with HTTP 404, so their traffic no longer appears in monitoring. Upgrade those gateway instances to a newer version.
The first start of the 3.10.9 Control Plane adds a primary key to the database tables that did not have one, which rewrites each of them once. The time this takes, and the time the table is locked, grows with the table size; the largest tables are usually dataplane_api_calls, gateway_instance and consumer_identifier. Plan the upgrade window accordingly. If you set those tables to REPLICA IDENTITY FULL to work around logical replication errors on PostgreSQL, you can set them back to DEFAULT after the upgrade.
Enable the new Request Decompress plugin, and Consul service registries with https:// server addresses, only after every gateway instance of the gateway group has been upgraded to 3.10.9. A gateway instance of an earlier version does not have the plugin and discards the configuration that uses it, and it skips a Consul registry with an https:// address.
The gateway runtime now uses OpenSSL 3.5, which adds the hybrid post-quantum key exchange group X25519MLKEM768 to TLS 1.3 handshakes. The larger TLS ClientHello the gateway sends to upstreams can be mishandled by some legacy network devices between the gateway and the upstream.
Features
Plugins
- Request Decompress
- The new plugin decompresses a request body sent with
Content-Encoding: gzipordeflate, so that the plugins on the route, such as OAS Validator, read the plain body. The upstream receives the decompressed body by default, or the compressed body whenforward_compressedistrue.max_req_body_sizebounds both the received and the decompressed body.
- The new plugin decompresses a request body sent with
- Prometheus
- All four stream metrics —
apisix_stream_connection_total,apisix_stream_active_connections,apisix_stream_statusandapisix_stream_bandwidth— now carryserviceandservice_idlabels for the service of the matched stream route, following the sameprefer_namerule as the HTTP metrics. Active connections and bandwidth are split per service while a session is still open. A session that does not reach a stream route with a service stays in the unlabelled total of its listening address. Each service seen on a listening address takes a slot in the stream metrics zone (nginx_config.stream.metrics_zone_size,1mby default, which holds about 750 slots). Once the zone is full, the active connections and bandwidth of a new service are counted only in the total of its listening address.
- All four stream metrics —
Control Plane
- A Consul service registry can now use
https://server addresses, andhttpandhttpsaddresses can be mixed in one registry; anhttpsaddress without a port uses port443. The newssl_verifyoption, which defaults totrue, controls whether the upstream certificate of the Consul server is verified, both by the gateways and by the Control Plane's own registry queries. In the Dashboard, the Consul registry form has an SSL Verify switch. - A Nacos or Consul service registry can now be marked as not reachable from the Control Plane with the new
allow_control_plane_accessoption, which defaults totrue. When it isfalse, the Control Plane makes no requests to the registry, and the registry queries that fill the namespace, group, datacenter and service selectors are refused withHTTP 400andcontrol plane access to this service registry is disabled (allow_control_plane_access is false)instead of failing with a connectivity error. The gateways still discover service nodes from the registry as before. In the Dashboard, the registry form has an Allow Control Plane Access switch, and a service using a registry with the switch off takes the service to discover, and for Nacos its namespace, group and metadata, as typed text instead of from selectors. - The status of a service registry now reflects every online gateway instance of the gateway group instead of whichever instance reported last. A registry is
healthywhen all online instances reach it,lost_connectionwhen none do, and the newpartially_lost_connectionwhen only some do, and the registry's API response lists the instances that have lost it inlost_connection_instances, with the hostname and the time each lost it. Offline instances are not counted. A new alert event, Service Registry Lost Connection (service_registry_lost_connection), notifies once when any online gateway instance of a gateway group has lost a registry for longer than the configured duration, and again only after it has recovered and lost it anew. In the Dashboard, a partially lost registry is shown with its own label, and hovering over the status lists the instances that lost it. - When the Prometheus used for monitoring also holds the same metrics from other systems, such as an open-source APISIX, you can now configure extra label matchers, for example
job != "apisix", that are added to every metric query of the Monitoring page, the shared dict monitoring and the Prometheus-based alert policies. They are managed in the Dashboard under Gateway Settings > Monitoring, or through/api/system_settings/monitoring.
Console (Dashboard)
- On edit forms, the Save button is disabled until something has been changed.
- The quick start templates of the OpenID Connect plugin can be collapsed, leaving more room for the configuration editor. They are expanded when the plugin is added and collapsed when an existing configuration is edited or a template has been applied.
Fixes
Plugins
- Limit Count, Limit Count Advanced and GraphQL Limit Count
- Fixed issue: The Control Plane accepted a
ruleslist in which two entries had the samekey, although the gateway rejects it. The route, service, global rule, consumer or Workflow action was saved, but the gateway discarded it: a new route answeredHTTP 404, and an updated one kept running its previous configuration. Such a configuration is now rejected withHTTP 400andinvalid limit-count plugin: duplicate key '<key>' in rules.
- Fixed issue: The Control Plane accepted a
- AI Proxy and AI Proxy Multi
- Fixed issue: For the Anthropic Messages protocol, the prompt token count left out cache read and cache creation tokens, and in a streaming response cache tokens reported only in the final
message_deltaevent were not read at all.$llm_prompt_tokens,$llm_total_tokens,apisix_llm_prompt_tokens, and the quota consumed in AI Rate Limiting with thetotal_tokensorprompt_tokensstrategy were therefore too low for requests that used prompt caching. Prompt tokens now include cache read and cache creation tokens, as they do for OpenAI-compatible providers. When an Anthropic client is served by an OpenAI-compatible upstream,input_tokensin the converted response no longer includes cache creation tokens, so it is no longer counted twice. - Fixed issue: For Amazon Bedrock, the prompt token count left out the cache read and cache write tokens that the Converse API reports separately, and the cache token counters were always zero, in both streaming and non-streaming responses. Token usage in logs and metrics, and the quota consumed in AI Rate Limiting, were therefore too low for requests that used prompt caching. Prompt tokens now include cache read and cache write tokens.
- Fixed issue: For the Anthropic Messages protocol, the prompt token count left out cache read and cache creation tokens, and in a streaming response cache tokens reported only in the final
- OAS Validator
- Fixed issue: A specification fetched from
spec_urlstayed in each worker's memory after no route used it anymore, and changingspec_url_ttlin the plugin metadata kept every specification of the previous cache. On a route whosespec_urlchanged often, such as a versioned specification URL, worker memory grew with every change until the worker ran out of memory. A specification that no request has used forspec_url_ttlseconds is now released.
- Fixed issue: A specification fetched from
Data Plane
- Fixed issue: Consul service discovery could stall when the catalog and health watches returned at about the same time. The gateway logged
bad argument #1 to 'str_sub' (string expected, got boolean), stopped picking up changes from the registry, and routes using it could answerHTTP 503withconsul service not found. Each occurrence also leaked a connection in the gateway's privileged process, and once enough had leaked, none of its background tasks could run, heartbeats to the Control Plane included. - Fixed issue: A service registry that was already unreachable when a gateway instance started, or when its configuration changed, was never reported as lost, so its status stayed
connectinguntil it came back. A registry whose health check failed a single probe could also be reported as lost. Each gateway instance now reports a registry as lost only after its health check reaches the unhealthy threshold, and as healthy only after a successful probe.
Control Plane
- Fixed issue: A Nacos or Consul registry whose server address had no port, such as
http://registry.example, was delivered to the gateway with an empty health check port when a health check was configured. The gateway then aborted the initialization of service discovery, so routes using other registries of the gateway group, including ones with an explicit port, could answerHTTP 503. The Control Plane now uses port80forhttpand443forhttps, the ports the gateway's registry client connects to. Existing registries pick up the port without being edited. - Fixed issue: When a Nacos or Consul query made from the Dashboard failed, the error message, also shown in the Dashboard, could contain the registry credentials: the Nacos access token, the AK/SK signature parameters, and the user name of a
user:password@server address. The message now shows only the host, the path and the cause of the failure. - Fixed issue: When several global rules were written concurrently, as ADC does when it syncs global rule plugins in parallel, some plugins could be dropped from the configuration delivered to gateways while the Control Plane still listed them, and a later
adc syncfound no difference to repair. On SQL Server, such concurrent writes could also fail withHTTP 500orHTTP 504because of deadlocks. Every plugin written is now delivered, and concurrent writes no longer deadlock. - Fixed issue: On a large audit log table, the nightly cleanup of expired audit logs timed out and was rolled back without deleting anything, so expired entries kept accumulating. Expired entries are now deleted in batches by their event time, and any backlog is cleared by the first cleanup after the upgrade.
- Fixed issue: The access log of the Data Plane Manager recorded the plaintext API key of every key-auth consumer lookup and every Developer Portal credential lookup made by gateways, and a lookup for an unknown key returned the key in its
HTTP 404response body. The key is now masked as***in the access log and is no longer included in the response. - Fixed issue: On a deployment with a large configuration, such as tens of thousands of services and routes, the Dashboard failed to start with
Failed to start: context deadline exceeded, and kept failing on every restart. The Dashboard now loads the configuration faster at startup and no longer applies a fixed startup deadline; how long a start may take is left to the deployment platform, such as Kubernetes probes. - Fixed issue: With several Dashboard replicas, a service or route written through one replica was not taken into account by the route conflict check of the other replicas for up to five minutes, so a conflicting route could be created in the meantime.
- Fixed issue: The certificate, CA certificate and SNI usage lists, and the
hostsfilter of the service list, did not match services the way the gateway matches SNIs, and the result differed between databases. Depending on the database, a dot in a wildcard SNI could match any character, a wildcard SNI could match no service at all or several levels of subdomains, and_in a host could match any single character. All databases now match one label for a wildcard and the exact host otherwise. - Fixed issue: On PostgreSQL with logical replication enabled, as used by blue/green deployments of managed databases, updates and deletes on several Control Plane tables failed because the tables had no primary key, so gateway heartbeats and the deletion of gateway instances failed with
HTTP 500. Every Control Plane table now has a primary key. See the upgrade note above.
Console (Dashboard)
- Fixed issue: In an alert policy, selecting a service or route for a status code event and then switching to another event kept the hidden service or route in the policy's scope.
- Fixed issue: The header of a resource's detail page cut off long label values. The whole value is now shown.
- Fixed issue: Opening a debug session trace that Jaeger no longer holds showed a generic error. The Dashboard now explains that the trace is no longer available in Jaeger.