Skip to main content
Version: 3.9.x

API7 Gateway 3.10.9 Release Notes

Release Date: 2026-10-29

Breaking Changes​

Plugins​

  • Authz Keycloak

    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 to access_denied_redirect_uri when it is configured.

    The same applies to http_method_as_scope on 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 as res#view, delete, which previously asked Keycloak for a scope named delete that it ignored, now requires delete to be granted. When the response of the Keycloak token endpoint cannot be decoded, the plugin now answers HTTP 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 note

    Routes are matched on the request path after Nginx has normalized it: percent-decoded, with dot segments such as .., ..%2F and %2e%2e resolved, cut at #, and with consecutive slashes merged. The upstream, however, received the original request path, so a request such as /admin/..%2Fapi/x matched 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%2Fc reaches 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 note

    The api7-ee-3-gateway image is now the minimal image previously published as api7-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 no apt, no bash and no Perl, so the resty command line tool does not run inside it. The api7-ee-3-gateway-distroless name is no longer published; use api7-ee-3-gateway instead. The api7-ee-3-gateway-root image, which runs as root, 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, bash or Perl, adapt them before upgrading.

Upgrade Notes​

Upgrade note — upstream certificate verification settings now take effect

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.

Upgrade note — inline tls can no longer be combined with certificate references

Creating 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.

Upgrade note — direct upgrades from versions earlier than 3.8.0 are no longer supported

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.

Upgrade note — one-time table rebuild during the upgrade

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.

Upgrade note — new Data Plane capabilities during the upgrade window

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.

Upgrade note — TLS key exchange

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: gzip or deflate, 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 when forward_compressed is true. max_req_body_size bounds both the received and the decompressed body.
  • Prometheus
    • All four stream metrics — apisix_stream_connection_total, apisix_stream_active_connections, apisix_stream_status and apisix_stream_bandwidth — now carry service and service_id labels for the service of the matched stream route, following the same prefer_name rule 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, 1m by 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.

Control Plane​

  • A Consul service registry can now use https:// server addresses, and http and https addresses can be mixed in one registry; an https address without a port uses port 443. The new ssl_verify option, which defaults to true, 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_access option, which defaults to true. When it is false, the Control Plane makes no requests to the registry, and the registry queries that fill the namespace, group, datacenter and service selectors are refused with HTTP 400 and control 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 healthy when all online instances reach it, lost_connection when none do, and the new partially_lost_connection when only some do, and the registry's API response lists the instances that have lost it in lost_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 rules list in which two entries had the same key, although the gateway rejects it. The route, service, global rule, consumer or Workflow action was saved, but the gateway discarded it: a new route answered HTTP 404, and an updated one kept running its previous configuration. Such a configuration is now rejected with HTTP 400 and invalid limit-count plugin: duplicate key '<key>' in rules.
  • 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_delta event were not read at all. $llm_prompt_tokens, $llm_total_tokens, apisix_llm_prompt_tokens, and the quota consumed in AI Rate Limiting with the total_tokens or prompt_tokens strategy 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_tokens in 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.
  • OAS Validator
    • Fixed issue: A specification fetched from spec_url stayed in each worker's memory after no route used it anymore, and changing spec_url_ttl in the plugin metadata kept every specification of the previous cache. On a route whose spec_url changed 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 for spec_url_ttl seconds is now released.

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 answer HTTP 503 with consul 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 connecting until 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 answer HTTP 503. The Control Plane now uses port 80 for http and 443 for https, 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 sync found no difference to repair. On SQL Server, such concurrent writes could also fail with HTTP 500 or HTTP 504 because 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 404 response 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 hosts filter 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.