# API7 Gateway Release Notes

## 3.10.11[​](#31011 "Direct link to 3.10.11")

**Release Date**: 2026-11-19

### Release Highlights[​](#31011-release-highlights "Direct link to Release Highlights")

This release updates the Data Plane's NGINX runtime to 1.31.9, incorporating upstream security fixes and stricter HTTP message validation.

Before upgrading, review the behavior changes below, especially if your clients or upstream services send malformed headers or highly fragmented chunked request bodies.

### Security Fixes[​](#31011-security-fixes "Direct link to Security Fixes")

#### Data Plane[​](#31011-security-fixes-data-plane "Direct link to Data Plane")

Updated the NGINX runtime to 1.31.9 to incorporate upstream security fixes. This update includes fixes for the following upstream NGINX CVEs:

| CVE             | Upstream issue addressed                                                                                                                                                                                                                   |
| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| CVE-2026-125283 | A buffer overflow when `try_files` and `alias` are used in certain configurations.                                                                                                                                                         |
| CVE-2026-123007 | An HTTP/2 flow control window overflow that could cause a worker process to crash.                                                                                                                                                         |
| CVE-2026-123633 | An HTTP/2 use-after-free issue when `worker_connections` is insufficient.                                                                                                                                                                  |
| CVE-2026-121810 | An HTTP/3 use-after-free issue when `worker_connections` is insufficient.                                                                                                                                                                  |
| CVE-2026-123634 | A resolver use-after-free issue when the same name is resolved simultaneously in subrequests.                                                                                                                                              |
| CVE-2026-113425 | A use-after-free issue in the mail proxy server.                                                                                                                                                                                           |
| CVE-2026-120967 | In the stream module, an attacker able to complete the SSL handshake synchronously could cause client SSL certificates to be verified using the default server's configuration instead of the SNI-selected virtual server's configuration. |
| CVE-2026-120993 | A worker process crash when using PROXY protocol version 2 with dynamic SSL certificate loading.                                                                                                                                           |
| CVE-2026-123640 | Malformed ClientHello messages could be interpreted differently by `ngx_stream_ssl_preread_module`, potentially bypassing security restrictions.                                                                                           |
| CVE-2026-118899 | Worker processes could enter an endless loop while reading the request body over SSL.                                                                                                                                                      |

For affected configurations and upstream technical details, see the [NGINX 1.31.9 changelog](https://nginx.org/en/CHANGES).

### Upgrade Notes[​](#31011-upgrade-notes "Direct link to Upgrade Notes")

Upgrade note — stricter HTTP message parsing

NGINX 1.31.9 rejects some HTTP messages that previous versions accepted. After upgrading the Data Plane, the following behavior changes apply:

| Scenario                                                                                                                                                                                                  | Before 3.10.11                                        | Starting from 3.10.11                                                                   | What to do                                                                                                    |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------- | --------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- |
| A client request contains a header line without a colon.                                                                                                                                                  | The gateway accepted the request.                     | The gateway returns `HTTP 400`.                                                         | Fix the client or intermediary to send valid headers in the `Header-Name: value` format.                      |
| An upstream response contains a header line without a colon.                                                                                                                                              | The malformed response could be passed to the client. | The gateway returns `HTTP 502` instead of passing the malformed response to the client. | Fix the upstream service or intermediary that generates the malformed header.                                 |
| A chunked request body contains excessive framing overhead: `floor(R / 8) > D + 1,048,576`, where R is the received body size in bytes, including chunk framing, and D is the decoded body size in bytes. | The gateway accepted the request.                     | The gateway returns `HTTP 400`.                                                         | Check clients that split request bodies into very many small chunks and ensure they remain within this limit. |

**Before upgrading:**

* Check your clients, upstream services, and any intermediate proxies for header lines without a colon.
* Test clients that use chunked transfer encoding with very small chunks, using representative request sizes and traffic patterns.
* If you perform a staged rollout, test requests against an upgraded Data Plane instance before upgrading all instances.

**After upgrading:**

Compare `HTTP 400` and `HTTP 502` responses by Data Plane version, route, and upstream service before and after upgrading, and check the Data Plane error log to confirm the cause. The client-header and chunk-overhead messages are logged at `info` level; enable that level on the upgraded validation instance if needed:

* `client sent invalid header line`: identify and fix the client or intermediary sending a header line without a colon.
* `client sent too large chunked body overhead`: identify the client or intermediary and reduce its chunk framing overhead.
* `upstream sent invalid header`: identify and fix the upstream service or intermediary sending a header line without a colon.

## 3.10.10[​](#31010 "Direct link to 3.10.10")

**Release Date**: 2026-11-11

### Breaking Changes[​](#31010-breaking-changes "Direct link to Breaking Changes")

#### Plugins[​](#31010-breaking-changes-plugins "Direct link to Plugins")

* **[Wolf RBAC](https://docs.api7.ai/hub/wolf-rbac.md)**

  Upgrade note

  `header_prefix` is now configured on the route or service that uses the plugin, including Wolf RBAC configured inside **[Multi Auth](https://docs.api7.ai/hub/multi-auth.md)**, and is no longer supported on a consumer. `appid` is now required on a consumer: a consumer without it was previously accepted and matched tokens issued for the application ID `unset`. After the gateway is upgraded, it discards every consumer whose Wolf RBAC configuration sets a `header_prefix` other than the default `X-`, logging `header_prefix is no longer supported in consumer configuration`, and every consumer that sets no `appid`, logging `property "appid" is required`. Requests with tokens for such a consumer then fail authentication with `HTTP 401`. The Control Plane does not convert these consumers when it is upgraded, and saving one of them again is rejected with `HTTP 400`.

  Before upgrading, move each custom `header_prefix` from the consumer to every route or service that uses Wolf RBAC and remove it from the consumer, and set `appid` on every consumer that has none; a consumer that relied on the previous default keeps accepting the same tokens with `appid` set to `unset`. A consumer whose `header_prefix` is `X-` needs no change. Gateway instances that have not been upgraded yet take `header_prefix` only from the consumer and ignore it on a route or service, so from the moment a custom `header_prefix` is removed from a consumer until every instance of the gateway group is upgraded, those instances name the identity headers with the default `X-` prefix.

### Upgrade Notes[​](#31010-upgrade-notes "Direct link to Upgrade Notes")

Upgrade note — SNI TLS protocol settings now take effect

The TLS protocol versions stored in the `ssl_protocols` of an SNI were never delivered to the gateway, so every SNI accepted the versions of the gateway's global `apisix.ssl.ssl_protocols` setting whatever it stored: an SNI limited to `TLSv1.3` still completed TLS 1.2 handshakes. The `/apisix/admin/ssls` API ignored the field, stored `TLSv1.2` and `TLSv1.3` on every SNI it wrote, and did not return it. Both APIs now deliver the setting, and the gateway enforces it. The versions of an SNI replace the global setting rather than narrowing it, so an SNI can also allow a version the global setting does not. An SNI without `ssl_protocols` follows the global setting; the SNI API no longer fills in `TLSv1.2` and `TLSv1.3` when the field is omitted, and the field is left out of the responses of both APIs when it is not set. `[]` and lists that repeat a version, which were previously accepted, are now rejected with `HTTP 400`.

When the Control Plane is upgraded, it clears `ssl_protocols` on every SNI that stores `[]`, or only `TLSv1.2` and `TLSv1.3` in any order, repeats included, so that these SNIs keep following the global setting, and it removes repeated versions from the other lists. Every other stored list is delivered to the gateways at once and is enforced from then on, also by gateway instances that have not been upgraded yet. Before upgrading, review the SNIs that store a different list, such as only `TLSv1.3`: a client that connects to them with a version the list does not include will fail the TLS handshake.

In the Dashboard, the edit form of an SNI without `ssl_protocols`, which after the upgrade includes most existing SNIs, cannot be saved until protocols are selected, and saving it stores the selected list on the SNI, which then no longer follows the global setting. To change such an SNI and keep it following the global setting, update it through the API without `ssl_protocols`. The Dashboard's create form also requires protocols, `TLSv1.2` and `TLSv1.3` by default, so an SNI created in the Dashboard stores an explicit list; create it through the API without `ssl_protocols` to have it follow the global setting.

Upgrade note — stricter checks of JSON Web Key Sets in the Control Plane

The Control Plane now rejects some JSON Web Keys that it previously accepted, and a single rejected key makes the whole key set unusable:

* SSO login through OpenID Connect fails when the key set published at the identity provider's `jwks_uri` contains an RSA key whose modulus is longer than 4096 bits or whose exponent `e` is out of range, or an Ed25519 key that is a low-order point, whether or not the identity provider signs with that key.
* When the API Usage service runs with `jwks.enable: true`, which is off by default, it rejects every request that carries a token with `HTTP 401` if the key set at `jwks.url` contains such a key, an Ed25519 key that is not 32 bytes long, or a member encoded in base64url with `=` padding.

Before upgrading, check the key set at the `jwks_uri` of each OpenID Connect identity provider used for SSO, and the key set at `jwks.url` if the API Usage service has JWKS enabled, and make sure that neither contains such keys.

Upgrade note — Control Plane images trust two fewer root certificates

The Control Plane images are now built on a Debian 13 base, whose CA bundle no longer contains the `emSign ECC Root CA - G3` and `AAA Certificate Services` root certificates. A TLS connection that the Control Plane opens, such as to an identity provider, an SMTP server or a webhook, now fails certificate verification when the server certificate chains only to one of these roots. Time zone names under `posix/` are also no longer available, so a `TZ` setting or database time zone that uses such a name must be changed to the name without the prefix. The gateway image is not affected.

Upgrade note — OpenID Connect token introspection failures

When token introspection fails, the **[OpenID Connect](https://docs.api7.ai/hub/openid-connect.md)** plugin now answers `HTTP 503` without a `WWW-Authenticate` challenge, instead of `HTTP 401` with an `invalid_token` challenge. This covers an introspection endpoint that answers with an error status, times out or cannot be reached, and a response that is not JSON or whose `active` claim is missing or is not a boolean. `HTTP 401` with `invalid_token` is now returned only when the identity provider reports the token as inactive. A client that took every `HTTP 401` as a reason to obtain a new token now sees `HTTP 503` while the identity provider is unavailable.

A response whose `active` claim is a string, such as `"true"`, was previously taken as active and the request was forwarded. Such a response is now rejected. If your identity provider returns `active` as a string, fix it before upgrading.

Upgrade note — Forward Auth uses a new HTTP client

The **[Forward Auth](https://docs.api7.ai/hub/forward-auth.md)** plugin now sends its requests to the authorization service through a different HTTP client, which uses less CPU per request. The authorization service may notice these differences:

* No `User-Agent` header is sent; previously it was `lua-resty-http/<version>`.
* A `GET` request carries `Content-Length: 0`.
* `Connection: keep-alive` is sent, also when `keepalive` is `false`, in which case the connection is still closed after the request.
* An empty `Host` set through `extra_headers` is replaced with the address the gateway connects to.
* `timeout` bounds reading the whole response instead of each read.

To restore the previous client, set `plugin_attr.forward-auth.http_client` to `lua-resty-http` in the gateway configuration file; the default is `ngx_http_ffi_client`.

Upgrade note — `last_retrieve_config_time` removed from the gateway instance APIs

`GET /api/instances` and `GET /api/gateway_groups/{gateway_group_id}/instances` no longer return `last_retrieve_config_time`. It recorded when a gateway instance started a configuration request, not when it received a configuration, and no product feature used it. Use `last_heartbeat_time` to see whether an instance is connected.

Upgrade note — new Data Plane capabilities during the upgrade window

Configure `upstream_headers` in the **[OpenID Connect](https://docs.api7.ai/hub/openid-connect.md)** plugin only after every gateway instance of the gateway group has been upgraded to 3.10.10. A gateway instance of an earlier version ignores the field, so it does not set the headers and forwards headers that the client sent under the same names to the upstream unchanged.

### Features[​](#31010-features "Direct link to Features")

#### Plugins[​](#31010-features-plugins "Direct link to Plugins")

* **[OpenID Connect](https://docs.api7.ai/hub/openid-connect.md)**
  * The new `upstream_headers` option forwards selected claims of the verified token to the upstream as request headers, so that an upstream that does not parse tokens no longer needs a serverless function to decode the token again. Each entry names a header and the path of keys that leads to the claim, one key per nesting level, so claim names that contain `/`, `.` or `://` work as they are. Claims come from the verified token or the introspection response, and in the authorization code flow from the ID token, then from the user info for claims the ID token lacks. Strings are forwarded as they are, numbers and `true` as text, and arrays and objects as base64-encoded JSON; an empty array or object is forwarded as base64-encoded `{}`, and a claim that is missing, `null` or `false` sets no header. Every header listed is removed from the request on every outcome, including unauthenticated requests passed on with `unauth_action: pass`, so it holds the verified claim or nothing.
* **[Wolf RBAC](https://docs.api7.ai/hub/wolf-rbac.md)**
  * `header_prefix` can now be set on the route or service, so the identity headers of a route no longer depend on the consumer that a token matches. See the upgrade note above.

#### Control Plane[​](#31010-features-control-plane "Direct link to Control Plane")

* Built-in users can now be required to change their password periodically, and prevented from reusing their recent passwords. In the Dashboard, the policy is managed under **Organization** > **Settings** > **Login Options** > **Password Policy**, or through `/api/system_settings/password_policy`. `password_max_age_days` sets the maximum password age, from 1 to 365 days; `0`, the default, turns the policy off. `password_history_count`, from 0 to 24 and 5 by default, sets how many previous passwords a user cannot reuse when changing their own password while the policy is on; `0` only refuses the current password. A password reset by an administrator is not checked against the history. Once a password is older than the maximum age, the user can still log in, but must change the password before doing anything else: other requests made with the user's session or Basic Auth are answered with `HTTP 401` and `password expired`, and the Dashboard asks for a new password. Access tokens and SSO users are not covered. `GET /api/me` returns the expiry time in `password_expires_at`. When the Control Plane is upgraded, the age of every existing password starts at the time of the upgrade, so turning the policy on afterwards does not lock anyone out at once.
* Two-factor authentication can now be required for every built-in user, `admin` included, with a switch under **Organization** > **Settings** > **Login Options** in the Dashboard, or through `/api/system_settings/two_factor_policy`. The switch is off by default, and a built-in user can turn it on only after enabling two-factor authentication for their own account. While it is on, a built-in user without two-factor authentication can still log in with a password, but can then only enable two-factor authentication, which the Dashboard guides them through, or log out; any other request is answered with `HTTP 401` and `two factor enrollment required`. Basic Auth is refused in the same way for such users, and it was already refused for users with two-factor authentication, so it no longer works for any built-in user. Access tokens, Admin API keys and SSO sessions are not covered by the switch. To recover a built-in user who has lost both the authenticator and the recovery codes, `admin` included, run `/usr/local/api7/api7-ee-dashboard two-factor reset --username <name>` in the Dashboard container, for example with `kubectl exec` or `docker exec`, adding `-c <config file>` when the configuration is not at `/app/conf/config.yaml`, as with Docker Compose (`-c /usr/local/api7/conf/conf.yaml`); the command clears the user's two-factor authentication and ends their sessions.
* Setting up and enabling two-factor authentication for one's own account now also works while no valid license is activated. Previously these requests failed with `HTTP 404` or `HTTP 400`, so a user who had to enable two-factor authentication could not do so before a license was uploaded.
* The built-in plugin catalog and the schemas of built-in plugins can now be read without a gateway group. `GET /api/plugins`, `GET /apisix/admin/plugins/list` and `GET /apisix/admin/plugins/{plugin_name}` without `gateway_group_id` return the built-in plugins; with it, or with a gateway group's Admin API key, they return the built-in plugins and the custom plugins of that gateway group, as before. `GET /api/plugins` previously answered `HTTP 400` without `gateway_group_id`. An empty `gateway_group_id=` parameter on `GET /apisix/admin/plugins/list` is now rejected with `HTTP 400`.
* The Docker Compose installation now also runs on Podman, including on hosts with SELinux enforcing, without manual relabeling or override files. When the Podman API socket is not running, the installation stops before changing anything and prints the `systemctl` command that starts it. PostgreSQL, Prometheus and gateway containers started by the installation scripts, or by the Docker deployment command generated in the Dashboard, now restart automatically.

#### Data Plane[​](#31010-features-data-plane "Direct link to Data Plane")

* Plugins now read up to `apisix.max_request_headers_readable` request headers, set in the gateway configuration file. The default, `100`, keeps the previous limit, and `0` removes it. Previously, plugins such as **[Request Validation](https://docs.api7.ai/hub/request-validation.md)**, **[OPA](https://docs.api7.ai/hub/opa.md)** and **[Forward Auth](https://docs.api7.ai/hub/forward-auth.md)** saw only the first 100 headers of a request. Headers past the limit are still forwarded to the upstream.
* The gateway uses less CPU per request on routes with the **[Forward Auth](https://docs.api7.ai/hub/forward-auth.md)**, **[Request ID](https://docs.api7.ai/hub/request-id.md)** and **[Prometheus](https://docs.api7.ai/hub/prometheus.md)** plugins, and with **[Limit Count](https://docs.api7.ai/hub/limit-count.md)** and **[Limit Count Advanced](https://docs.api7.ai/hub/limit-count-advanced.md)** configurations whose `key` or `count` contain variables.

### Fixes[​](#31010-fixes "Direct link to Fixes")

#### Plugins[​](#31010-fixes-plugins "Direct link to Plugins")

* **[Forward Auth](https://docs.api7.ai/hub/forward-auth.md)**
  * Fixed issue: With `allow_degradation` set to `true`, when the authorization service could not be reached, a header that the client sent under a name listed in `upstream_headers` was passed to the upstream unchanged, so a client could set a value, such as a user ID, that the upstream takes as coming from the authorization service. Such headers are now removed before the request is forwarded.
* **[JWE Decrypt](https://docs.api7.ai/hub/jwe-decrypt.md)**
  * Fixed issue: With `strict` set to `false`, a request without a token was forwarded with the header named in `forward_header` as the client sent it, so a client could pass a value that the upstream takes as the decrypted token. The header is now removed when the request has no token.
* **[Wolf RBAC](https://docs.api7.ai/hub/wolf-rbac.md)**
  * Fixed issue: When Wolf RBAC was configured in **[Multi Auth](https://docs.api7.ai/hub/multi-auth.md)** and another plugin authenticated the request, the `X-UserId`, `X-Username` and `X-Nickname` headers that the client sent were passed to the upstream unchanged, so a client could set the identity that the upstream takes as verified by Wolf. These headers are now removed from every request and set only after Wolf authorization succeeds.
* **[OpenID Connect](https://docs.api7.ai/hub/openid-connect.md)**
  * Fixed issue: Concurrent requests that carried the same token not yet cached each called the introspection endpoint. They now share a single introspection request.
* **[Prometheus](https://docs.api7.ai/hub/prometheus.md)**
  * Fixed issue: To avoid CPU spikes when `expire` was set for metrics, 3.10.8 rolled the metrics library back to an earlier version, which brought back two problems: when the shared dictionary used for metrics filled up, a worker could enter a loop that held it at 100% CPU and did not recover after traffic stopped, and expired entries in that dictionary were not reclaimed. The library is now upgraded to version 1.1.1, which fixes both problems and reduces the cleanup of expired entries that caused the CPU spikes.
* **[Limit Count](https://docs.api7.ai/hub/limit-count.md)**, **[Limit Count Advanced](https://docs.api7.ai/hub/limit-count-advanced.md)**, **[GraphQL Limit Count](https://docs.api7.ai/hub/graphql-limit-count.md)**, **[AI Rate Limiting](https://docs.api7.ai/hub/ai-rate-limiting.md)**, **[Limit Req](https://docs.api7.ai/hub/limit-req.md)** and **[Limit Conn](https://docs.api7.ai/hub/limit-conn.md)**
  * Fixed issue: With the `redis-cluster` policy and `redis_cluster_ssl` or `redis_password` set, a Redis Cluster node that had failed stayed marked as unhealthy after it recovered, because its health check connected without TLS and without the password. Requests whose counters were stored on that node kept failing, with `HTTP 500` in Limit Count, until the gateway was restarted.

#### Data Plane[​](#31010-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: With `apisix.match_uri_encoded_slash` enabled in the gateway configuration, a request could skip the client certificate check of an SNI with mTLS by encoding a slash in its path. The `skip_mtls_uri_regex` patterns were checked against the decoded path, while routes were matched on the path with `%2F` kept inside a segment, so a request for `/public%2Fstatus` was exempted by a pattern such as `^/public/status$` but could be routed to a different route, such as one for `/:resource`, without a client certificate. A request now skips the check only when both forms of its path match a pattern, and such a request without a client certificate is rejected with `HTTP 400`.
* Fixed issue: With the `gzip` plugin's `buffers.size` set smaller than the memory page size, 4 KiB on most systems, compressing a response that did not fit in one buffer crashed the gateway worker, and the client received no response.
* Fixed issue: The `dubbo-proxy` plugin could answer `HTTP 500` when a request reused a multiplexed upstream connection that was still being established.

#### Control Plane[​](#31010-fixes-control-plane "Direct link to Control Plane")

* Fixed issue: Once the password of a user with two-factor authentication was known, verification codes could be tried without limit, and an accepted code could be used again for as long as it remained valid, including by concurrent requests. After five consecutive wrong verification or recovery codes, the second factor of the user is now locked for 15 minutes, during which every code is refused with `HTTP 400` and `too many failed login attempts, this account is temporarily locked; please try again in about N minute(s)`, the correct one included, and recovery codes are not consumed. Each lock is recorded in the audit log. A code that has already been accepted, or an earlier one, is now refused, so disabling two-factor authentication right after logging in, for example, needs the next code. Wrong codes entered when disabling two-factor authentication count toward the same limit.
* Fixed issue: A request with a session cookie that could not be decoded, such as an empty, truncated or tampered one, was answered with `HTTP 500` instead of `HTTP 401`, and logging in with such a cookie failed too. A browser sends one back after its password is changed, so the Dashboard showed an error instead of the login page. Such a cookie is now ignored: the request is answered with `HTTP 401` and `user not logged in`, and logging in works.
* Fixed issue: Every configuration request from a gateway instance also updated the instance's row in the database, so the configuration was delivered only after any transaction holding that row, such as a heartbeat, finished, or after the database timeout, 5 seconds by default. Configuration requests no longer write to the database.
* Fixed issue: Without a gateway group, `GET /apisix/admin/plugins/{plugin_name}`, `POST /apisix/admin/configs/validate` and `GET /apisix/admin/plugin_metadata/{plugin_name}/default` looked up custom plugins in all gateway groups, so they returned the schema or the metadata defaults of another gateway group's custom plugin, and a configuration that used it passed validation. Without a gateway group, custom plugins are now answered for exactly like plugins that do not exist.
* Fixed issue: The Docker Compose installation reported `API7-EE is ready!` and exited with status `0` when a step had failed, for example when `docker compose up` could not start a service. It now exits with a non-zero status and prints the cause, `docker compose ps -a` and the latest logs of each service. When the installation package was extracted with a restrictive `umask`, such as `027`, the Dashboard and the gateway could not read their configuration files and did not start; the files are now made readable before starting. Files in the installation packages are now owned by `root`. A gateway container started by an earlier installation package does not restart automatically; run `bash run.sh stop` and then `bash run.sh` to recreate it.

#### Console (Dashboard)[​](#31010-fixes-console "Direct link to Console (Dashboard)")

* Fixed issue: The confirmation dialog for deleting an SNI showed an unresolved `{{name}}` placeholder instead of the name of the SNI to type.

## 3.10.9[​](#3109 "Direct link to 3.10.9")

**Release Date**: 2026-10-29

### Breaking Changes[​](#3109-breaking-changes "Direct link to Breaking Changes")

#### Plugins[​](#3109-breaking-changes-plugins "Direct link to Plugins")

* **[Authz Keycloak](https://docs.api7.ai/hub/authz-keycloak.md)**

  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[​](#3109-breaking-changes-data-plane "Direct link to 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[​](#3109-upgrade-notes "Direct link to 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](https://docs.api7.ai/hub/request-decompress.md) 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[​](#3109-features "Direct link to Features")

#### Plugins[​](#3109-features-plugins "Direct link to Plugins")

* **[Request Decompress](https://docs.api7.ai/hub/request-decompress.md)**
  * 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](https://docs.api7.ai/hub/oas-validator.md)**, 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](https://docs.api7.ai/hub/prometheus.md)**
  * 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[​](#3109-features-control-plane "Direct link to 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)[​](#3109-features-console "Direct link to 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[​](#3109-fixes "Direct link to Fixes")

#### Plugins[​](#3109-fixes-plugins "Direct link to Plugins")

* **[Limit Count](https://docs.api7.ai/hub/limit-count.md)**, **[Limit Count Advanced](https://docs.api7.ai/hub/limit-count-advanced.md)** and **[GraphQL Limit Count](https://docs.api7.ai/hub/graphql-limit-count.md)**
  * 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](https://docs.api7.ai/hub/workflow.md)** 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](https://docs.api7.ai/hub/ai-proxy.md)** and **[AI Proxy Multi](https://docs.api7.ai/hub/ai-proxy-multi.md)**

  * 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](https://docs.api7.ai/hub/ai-rate-limiting.md)** 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](https://docs.api7.ai/hub/ai-rate-limiting.md)**, were therefore too low for requests that used prompt caching. Prompt tokens now include cache read and cache write tokens.

* **[OAS Validator](https://docs.api7.ai/hub/oas-validator.md)**
  * 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[​](#3109-fixes-data-plane "Direct link to 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[​](#3109-fixes-control-plane "Direct link to 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)[​](#3109-fixes-console "Direct link to 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.

## 3.10.8[​](#3108 "Direct link to 3.10.8")

**Release Date**: 2026-10-09

### Breaking Changes[​](#3108-breaking-changes "Direct link to Breaking Changes")

#### Plugins[​](#3108-breaking-changes-plugins "Direct link to Plugins")

* **[OpenID Connect](https://docs.api7.ai/hub/openid-connect.md)**

  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](https://docs.api7.ai/hub/saml-auth.md)**

  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](https://docs.api7.ai/hub/workflow.md)**

  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[​](#3108-upgrade-notes "Direct link to 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[​](#3108-features "Direct link to Features")

#### Plugins[​](#3108-features-plugins "Direct link to Plugins")

* **[SAML Auth](https://docs.api7.ai/hub/saml-auth.md)**
  * 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](https://docs.api7.ai/hub/openapi-to-mcp.md)**
  * 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](https://docs.api7.ai/hub/limit-count.md)**, **[Limit Count Advanced](https://docs.api7.ai/hub/limit-count-advanced.md)**, **[GraphQL Limit Count](https://docs.api7.ai/hub/graphql-limit-count.md)**, **[Limit Conn](https://docs.api7.ai/hub/limit-conn.md)**, **[Limit Req](https://docs.api7.ai/hub/limit-req.md)**, **[AI Rate Limiting](https://docs.api7.ai/hub/ai-rate-limiting.md)** and **[AI Cache](https://docs.api7.ai/hub/ai-cache.md)**
  * 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](https://docs.api7.ai/hub/ai-rate-limiting.md)**
  * `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](https://docs.api7.ai/hub/limit-count.md)**, **[Limit Count Advanced](https://docs.api7.ai/hub/limit-count-advanced.md)**, **[GraphQL Limit Count](https://docs.api7.ai/hub/graphql-limit-count.md)** and **[AI Rate Limiting](https://docs.api7.ai/hub/ai-rate-limiting.md)**
  * 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[​](#3108-features-control-plane "Direct link to 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)[​](#3108-features-console "Direct link to 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[​](#3108-fixes "Direct link to Fixes")

#### Plugins[​](#3108-fixes-plugins "Direct link to Plugins")

* **[AI Aliyun Content Moderation](https://docs.api7.ai/hub/ai-aliyun-content-moderation.md)**
  * 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](https://docs.api7.ai/hub/ai-proxy.md)**
  * 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](https://docs.api7.ai/hub/prometheus.md)**
  * 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](https://docs.api7.ai/hub/limit-count.md)**, **[Limit Count Advanced](https://docs.api7.ai/hub/limit-count-advanced.md)** and **[GraphQL Limit Count](https://docs.api7.ai/hub/graphql-limit-count.md)**
  * 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[​](#3108-fixes-data-plane "Direct link to 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[​](#3108-fixes-control-plane "Direct link to 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)[​](#3108-fixes-console "Direct link to 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.

## 3.10.7[​](#3107 "Direct link to 3.10.7")

**Release Date**: 2026-09-08

### Breaking Changes[​](#3107-breaking-changes "Direct link to Breaking Changes")

#### Plugins[​](#3107-breaking-changes-plugins "Direct link to Plugins")

* **[Basic Auth](https://docs.api7.ai/hub/basic-auth.md)**

  Upgrade note

  A basic auth password can no longer be empty. The Control Plane now rejects a consumer or a credential whose password is an empty string with `HTTP 400` and `basic-auth plugin: password: String length must be greater than or equal to 1`. On 3.10.6 the same request returned `HTTP 200` and was stored.

  A consumer with an empty password that is already stored turns into an error-level entry in the configuration compatibility report after the upgrade, and any further edit of it is rejected until the password is set.

  The Data Plane now fails closed as well: a password that resolves to an empty string, including an `$env://` or `$secret://` reference that resolves to `""`, is rejected with `HTTP 401` and a warning in the error log. On 3.10.6 such a consumer authenticated successfully with credentials of the username, a colon, and a space.

  Before upgrading, check for basic auth consumers and credentials whose password is empty or whose secret reference resolves to an empty value, and give each of them a real password.

#### Control Plane[​](#3107-breaking-changes-control-plane "Direct link to Control Plane")

* **Routes the gateway cannot tell apart are refused**

  Upgrade note

  Creating or updating a route (`POST/PUT/PATCH /apisix/admin/routes`), and updating a service (`PUT/PATCH /apisix/admin/services/{id}`), is now refused with `HTTP 400` when the result would leave the gateway group with two routes matching the same URL for the same HTTP methods at the same priority. Importing a service from an OpenAPI specification is refused on the same grounds, because it creates its routes through the same path — so a specification whose operations collapse to two indistinguishable routes no longer imports. The message names the route it collides with, for example `route "get-again" conflicts with route "get" (id: ...) of service "first" (id: ...): both match "httpbin.org/get" for all HTTP methods at priority 0.`

  Only exact duplicates at the same priority are refused. Two routes matching the same URL at different priorities, with partially shared or disjoint HTTP methods, or with overlapping rather than identical paths are all still accepted, as are routes carrying `vars`, which match on conditions a URL comparison cannot model. Inactive services are excluded, and re-activating one is checked, so an inactive service cannot be used to smuggle a duplicate in.

  Until now only the Dashboard's route conflict modal drew this line, so ADC, `a7` and direct Admin API callers could install routes the gateway cannot distinguish, and nothing anywhere flagged it. Existing duplicates keep serving traffic after the upgrade, but the next edit of either route is rejected, and so is **any** update to a service that owns such a pair — a description or label change included — because every service update re-evaluates all of the routes it owns.

  Before upgrading, review the gateway group for duplicate routes and give one of each pair a different path, a different set of HTTP methods, or a different priority.

### Upgrade Notes[​](#3107-upgrade-notes "Direct link to Upgrade Notes")

Upgrade note — the grouped compatibility report and dismiss rules need an upgraded Data Plane

The compatibility report is now grouped by issue, and a dismiss rule matches on the machine-readable `reason` the Data Plane reports. Both depend on the Data Plane reporting compatibility problems as structured data, which it does from 3.10.7 on the 3.10 line and from 3.9.20 on the 3.9 line. API7 Enterprise is upgraded Control Plane first, so during the upgrade window a 3.10.7 Control Plane talks to gateway instances that do not yet report that way, and for those instances neither works.

Such a Data Plane reports each problem as a rendered English sentence carrying no machine-readable `reason`. The Control Plane drops such a record as the heartbeat arrives, so that instance's compatibility report is **empty**. Problems that genuinely exist on it — a resource the Data Plane rejected, a plugin it does not have — are not shown, and a dismiss rule has nothing to act on. This affects gateway instances earlier than 3.10.7 on the 3.10 line, earlier than 3.9.20 on the 3.9 line, and every instance on a line older than 3.9 — the supported range starts at 3.2, and none of those releases report structured issues either. An instance on 3.9.20 or later reports structured issues that this Control Plane renders normally. Plan for the report to be blank rather than trustworthy until such an instance is upgraded, and do not read a blank report as a clean one.

The instance itself is still flagged as needing an upgrade by the version rules, so it does not silently look up to date. This affects only what the compatibility report displays. It never affects traffic or the configuration a gateway instance runs, and the report behaves as documented as soon as the instance is upgraded.

Upgrade note — an empty `ca_certs` list is now rejected in a traffic-split plugin configuration

The Control Plane now rejects a `traffic-split` plugin configuration whose upstream sets `tls.ca_certs` to an empty list, answering `HTTP 400`. On 3.10.6 the same write was accepted.

This applies to the plugin configuration path only. An upstream configured the ordinary way is unaffected, because the Control Plane drops an empty `ca_certs` before the payload leaves it and never delivered that shape to a Data Plane.

Such a configuration did not work on 3.10.6 either: the Data Plane failed the upstream schema check and discarded the configuration, while the Control Plane reported success. What changes is that a silent failure is now a visible one.

If a `traffic-split` with an empty `tls.ca_certs` is already stored, give it a CA certificate or remove the `tls` block. Until then, any edit to that `traffic-split` is rejected.

Upgrade note — the Dashboard is served by the Control Plane process, and its asset paths changed

The Console is served from the dashboard process again, as a static single-page application built with Vite. Three consequences for a deployment that does not simply take the files shipped with the release.

The integrated image no longer contains Node.js, and it no longer contains a shell: its base moved to a static distroless image and its entrypoint is now the dashboard binary itself. The `docker-compose.yaml` in the offline package starts that binary directly and probes it with `api7-ee-dashboard healthz`. If you carry a customized `command` or `healthcheck` from 3.10.6 forward — the one that started `node /app/server.js` alongside the dashboard — the container will not start. Take the compose file from the new offline package and re-apply your own changes on top of it. Because there is no shell, `docker exec ... sh` into the dashboard container and any shell-based entrypoint override no longer work.

The browser assets moved from Next.js paths under `/_next/static/` to content-hashed files under `/assets/`. A reverse proxy rule, a Content-Security-Policy, or a CDN cache key pinned to `/_next/static` no longer matches anything and must be repointed to `/assets/`.

The Developer Portal frontend image (`api7-ee-developer-portal-fe`) is now distroless and likewise has no shell, so the same applies to it; it already ran as a non-root user, and its startup behavior, including the database and portal connectivity checks, is unchanged.

### Features[​](#3107-features "Direct link to Features")

#### Plugins[​](#3107-features-plugins "Direct link to Plugins")

* **[JWE Decrypt](https://docs.api7.ai/hub/jwe-decrypt.md)**
  * A new authentication plugin that decrypts a JSON Web Encryption token presented by the client, identifies the consumer from the token's key ID, and forwards the decrypted payload to the upstream in a configurable request header. A consumer's secret is 32 bytes, given either as plaintext or base64url-encoded, and the token must use the `dir` key management algorithm with `A256GCM` content encryption. A request whose token is missing, malformed, tampered with, or cannot be decrypted is rejected, and the handling of a missing token is configurable. The plugin decrypts tokens only; it has no token generation endpoint. It is configured from the Dashboard like any other authentication plugin.
* **[Chaitin WAF](https://docs.api7.ai/hub/chaitin-waf.md)**
  * The response can now be reported to the SafeLine detection service alongside the request, so data leaked in a response body, an exploit's output, or an unexpected status code becomes visible to SafeLine. Three options are available both on the plugin and in its plugin metadata: `config.log_resp` enables response reporting, `config.resp_body_size` caps how much of the response body is reported in KB (`0` reports headers only), and `config.extra_ignored_content_types` adds comma-separated response content types to skip on top of the built-in list. Reporting is off by default. The report is sent after the response has been delivered to the client and is advisory only: it never blocks or modifies a response.
* **[AI Proxy Multi](https://docs.api7.ai/hub/ai-proxy-multi.md)**
  * Instance health checks are now reported through the Data Plane control API. `GET /v1/healthcheck` lists one entry per instance that declares `checks`, carrying the new `plugin` and `meta` fields (`meta.instance` names the instance), and a new sub-resource `GET /v1/healthcheck/{src_type}/{src_id}/checkers` returns every checker a resource owns as an array. A route whose real upstreams were LLM instances previously reported nothing, and `GET /v1/healthcheck/{src_type}/{src_id}` answered `HTTP 404` with `no checker for routes[1]`.

#### Control Plane[​](#3107-features-control-plane "Direct link to Control Plane")

* A diagnostic agent can now be deployed alongside a gateway and driven from the Dashboard to profile a running Data Plane — CPU profiles and memory snapshots of the gateway's own worker processes — without opening any inbound port into the network the gateway runs in. The agent dials out to the Control Plane over mTLS on the port the Data Plane already uses, and the Dashboard forwards requests to it over that connection. A new cluster-level **Diagnostic Agents** section under API Runtime lists the agents with their status, opens a diagnostic console for each agent that is online, and generates a ready-to-run Docker command or Kubernetes manifest for a new agent with its certificate, the host PID namespace and the capabilities a diagnostic run needs already filled in. Each agent is named when it is deployed and carries that name in the certificate it is issued, so the list identifies the machine rather than a bare ID.
* The gateway instance configuration compatibility report is now organized by issue rather than by resource. `GET /api/gateway_groups/{gateway_group_id}/instances/{gateway_instance_id}/compatibility_issues` returns one entry per distinct problem — a machine-readable `reason` (`resource_invalid`, `plugin_unavailable`, `plugin_config_invalid`, `plugin_unknown_fields`), the plugin and field it concerns, and the resources carrying it — ordered errors first, then by how many resources are affected. The Data Plane reports each issue as structured data instead of one rendered English sentence per resource, so a single cause is no longer repeated across a thousand rows and an unrecognized-field warning is no longer buried under an aggregated error. The Gateway Instances page in the Dashboard shows the report in this grouped form.
* An operator can now dismiss a plugin field the Data Plane does not recognize but safely ignores, so the compatibility report lists only what needs acting on. A dismissal names the plugin and the field and applies across every gateway group and instance, covering every element of an array — dismissing `nodes[*].weight` covers them all. Dismissals can be managed from the Gateway Instances page in the Dashboard or through the `/api/compatibility_dismiss_rules` endpoints, are governed by their own permissions, and every change is audited. Only unrecognized-field warnings can be dismissed: dismissing one never changes what the Data Plane does with the configuration, and never turns an Incompatible instance Compatible.
* Services can now be found by domain or path prefix. The `search` parameter on the service list endpoint matches, case-insensitively, any substring of a service's `hosts` or `path_prefix` in addition to name, description, labels and ID; whitespace-separated terms keep their AND semantics. A user who knew only a service's domain or path prefix previously had no way to look it up. Services published before the upgrade are searchable this way without being republished.

#### Data Plane[​](#3107-features-data-plane "Direct link to Data Plane")

* The stream proxy can now pass a TLS session through to the backend instead of terminating it at the gateway. A TCP listener declared with `tls_passthrough: true` under `apisix.stream_proxy` in the gateway's configuration file reads the SNI from the client's ClientHello, selects the backend from it, and forwards the encrypted session untouched, so the TLS session terminates at the backend. Every connection arriving on such a listener is passed through, and the listener is declared in the gateway's own configuration — in the `gateway_conf/config.yaml` of a Docker Compose deployment, or in the gateway Helm chart values on Kubernetes.
* A request answered with `101 Switching Protocols` is now classified as `request_type=websocket`, so WebSocket sessions land in their own `apisix_http_status`, `apisix_http_latency` and `apisix_bandwidth` series and can be excluded from latency queries with `request_type!="websocket"`. Ordinary requests keep their existing series, and a refused handshake stays `traditional_http`. Dashboards and alerting rules that aggregate these metrics without filtering on `request_type` will see WebSocket traffic separated out of the series it used to be counted in.

### Fixes[​](#3107-fixes "Direct link to Fixes")

#### Plugins[​](#3107-fixes-plugins "Direct link to Plugins")

* **[Basic Auth](https://docs.api7.ai/hub/basic-auth.md)**

  * Fixed issue: A consumer whose password contained a colon could never authenticate. RFC 7617 defines everything after the first colon as the password, but the credentials were split on every colon, which truncated it.
  * Fixed issue: A consumer whose password was empty — stored as an empty string, or resolved from an `$env://` or `$secret://` reference that yielded one — authenticated any request presenting its username with an empty password. Such a consumer is now rejected with `HTTP 401`, and an empty password can no longer be configured. See Breaking Changes for what to check before upgrading.

* **[UA Restriction](https://docs.api7.ai/hub/ua-restriction.md)**
  * Fixed issue: A request carrying more than one `User-Agent` header was allowed when its user agents matched the `denylist`, and rejected when they did not — the decision was inverted for every request with more than one such header. A denied client could therefore get through simply by sending the same `User-Agent` twice. Such a request is now rejected with `HTTP 403`. A request with a single `User-Agent` header, and the `allowlist` branch, were never affected.

* **[Chaitin WAF](https://docs.api7.ai/hub/chaitin-waf.md)**
  * Fixed issue: Setting any option in a route- or service-level `config` block reset every option it did not set, discarding the values configured in the plugin metadata. A route that set only `read_timeout` silently reverted `req_body_size`, `connect_timeout` and the rest to the built-in defaults. A plugin-level `config` now overrides the metadata field by field, as the documentation already described.

* **[AI Cache](https://docs.api7.ai/hub/ai-cache.md)**
  * Fixed issue: Under the `passthrough` protocol, requests with the same body but a different method, path or query string shared one cache entry, so a request to `/v1/images/generations` on a wildcard route could be served the cached response of an earlier request to `/v1/chat/completions`. The cache key for that protocol now includes the client's method, path and query. Other protocols keep their existing keys, so entries cached before the upgrade stay valid.

* **[AI Proxy](https://docs.api7.ai/hub/ai-proxy.md)** and **[AI Proxy Multi](https://docs.api7.ai/hub/ai-proxy-multi.md)**

  * Fixed issue: With the Vertex AI provider, an embeddings request whose `model` contained a `/`, a `?` or a space was sent to the wrong path or failed outright. A model named `models/text-embedding-004` added a path segment to the prediction URL instead of naming the model, and a `?` or a space produced `HTTP 500` with `invalid characters found in path` in the error log — the request was never sent. The model is now escaped into a single path segment.
  * Fixed issue: When an LLM upstream broke the connection after part of a streaming response had already been delivered to the client, the gateway tried to turn the committed `HTTP 200` into a `500`, which is not possible once the response has started. The client still received the truncated stream, but the error log filled with `attempt to set status 500 via ngx.exit after sending out the response status 200`, and AI Proxy Multi treated the failure as retryable and could send another billable request to a second instance after the client had already been served part of an answer. The stream now simply ends where it is — without a protocol terminator, so a client detects the truncation from the missing `[DONE]` — and the broken upstream connection is closed instead of being returned to the keepalive pool.

* **[AI AWS Content Moderation](https://docs.api7.ai/hub/ai-aws-content-moderation.md)** and **[AI Aliyun Content Moderation](https://docs.api7.ai/hub/ai-aliyun-content-moderation.md)**
  * Fixed issue: A streaming response cut short by the gateway's own `max_response_bytes` or `max_stream_duration_ms` limit was given a synthetic completion event, so the client received a truncated answer as though the model had finished it. The completion event is now appended only to a stream that really completed.

* **[Traffic Label](https://docs.api7.ai/hub/traffic-label.md)**
  * Fixed issue: On a route carrying an `ipmatch` rule, the compiled matcher was stored inside the plugin's own configuration, so from the first matching request onward the route could no longer be serialized to JSON. `GET /v1/routes` on the Data Plane control API failed, route dumps at `info` log level came out empty, and matching requests logged `failed to encode: Cannot serialise table: excessively sparse array`.

* **[AWS Lambda](https://docs.api7.ai/hub/aws-lambda.md)**, Azure Functions and OpenFunction
  <!-- -->
  * Fixed issue: A `function_uri` with no path — `https://xxx.lambda-url.us-east-1.on.aws` with no trailing slash, for example — produced a request with an empty request target, which a strict function endpoint rejected with `HTTP 400 Bad Request`. The request is now sent to `/`. A function response with status `400` or above is also logged at `warn` with its status and body; previously the error log carried only `exits with http status code 403`, with no indication of why.

#### Data Plane[​](#3107-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: An HTTPS upstream configured with certificate verification and its own CA certificate failed every request with `HTTP 502` and `upstream SSL certificate verify error: (20:unable to get local issuer certificate)` in the error log, even when the upstream certificate really was issued by that CA. The trusted store was never applied to an upstream that supplied a CA certificate without also supplying a client certificate. Such an upstream now connects.
* Fixed issue: A `grpcs` upstream ignored its certificate verification settings entirely, so an upstream certificate was accepted no matter which CA issued it. The settings were discarded by the internal redirect that dispatches gRPC traffic, and the upstream certificate was in any case checked against the wrong name. Verification and the configured CA certificates now take effect for `grpcs` as they do for `https`, and the certificate is checked against the upstream host. A `grpcs` upstream that has verification enabled and whose certificate does not chain to the configured CA, or whose subject alternative names do not cover the upstream host, now fails with `HTTP 502` where it previously connected; check those upstreams before upgrading.
* Fixed issue: Two upstreams could share one parsed CA certificate store, so an upstream could be verified against another upstream's CA certificates. The store is now keyed on the CA certificates themselves.
* Fixed issue: A gateway worker could crash while closing a multiplexed upstream connection, which released the memory the connection's log still pointed at. This is reached in practice through the **Dubbo Proxy** plugin, which drives multiplexed upstream connections.
* Fixed issue: The gateway logged `failed to open file[/usr/local/apisix//conf/apisix.uid] for writing` at error level on every start whenever `conf/apisix.uid` was not writable by the runtime user, which is how the offline package ships it. The instance ID was read correctly and the instance registered normally, so nothing was broken, but the lines read like a real fault during triage. The file is now written only when an ID actually has to be persisted.
* Fixed issue: On the Data Plane control API, `GET /v1/healthcheck` returned an empty JSON object where an array was expected — `"nodes": {}` for an upstream configured with `checks` but not yet used, and `{}` for the whole result when nothing was being health checked. Both are now `[]`.

#### Control Plane[​](#3107-fixes-control-plane "Direct link to Control Plane")

* Fixed issue: A direct upgrade from 3.8.x on PostgreSQL crashed the Control Plane immediately after the database migration completed, with `ERROR: cached plan must not change result type` and `panic: init ETCD custom_plugins for gateway groups failed`. A table read before the migration and again after it reused a statement prepared against the old schema. The connections the migration ran on are now discarded, so those statements go with them. Only PostgreSQL was affected, and only an upgrade from a version below 3.9.2.
* Fixed issue: A gateway running a data-plane-only hotfix build was judged against the wrong version. A gateway reporting a version that differs from the Control Plane's only in its pre-release part — `3.10.7-patch.1` against a 3.10.7 Control Plane — was shown as **PartiallyCompatible** with an upgrade hint, and an error-level entry in its compatibility report turned it **Incompatible** and raised the banner warning that gateway instances need an upgrade, while an identically configured gateway on the base release stayed **Compatible**. Such a build is now judged as the release it is built on, in both directions, so a hotfix Control Plane no longer flags a gateway on the base release either.
* Fixed issue: A gateway instance was looked up without its gateway group and without ordering its runs, so an instance that had been restarted was answered for from a run that no longer exists, for up to seven days. The compatibility issues endpoint returned a report contradicting the summary shown beside it on the same screen, and never converged; deleting a gateway instance could clear the offline guard on the strength of a stale run and remove a gateway that was still connected, still answering `HTTP 200`; and health check status reported by the Data Plane could be filed under the wrong gateway group when the same instance ID existed in two groups.
* Fixed issue: When Prometheus answered the Control Plane with something other than JSON — an authenticating proxy returning an HTML `401` page, for example — the Dashboard's monitoring pages and the Developer Portal's metrics endpoint failed with `HTTP 500` and `invalid character '<' looking for beginning of value`, which said nothing about the real cause. Such a reply is now reported as `HTTP 502` with a message naming the upstream status, for example `prometheus returned 401 Unauthorized`, and the first 256 bytes of the body go to the Control Plane log instead of to the client. Prometheus's own JSON error responses still pass through unchanged.

#### Console (Dashboard)[​](#3107-fixes-console "Direct link to Console (Dashboard)")

* Fixed issue: The `Results: X–Y of N` label under a paginated table or card list showed the wrong range on every page after the first whenever the page size was not the default 10, because the range was computed from a fixed page size rather than the one in use. The rows displayed were always correct; only the label was wrong.

#### Developer Portal[​](#3107-fixes-developer-portal "Direct link to Developer Portal")

* Fixed issue: For an external API product, **Download OpenAPI Document** always saved the file as `api-1.json` or `api-1.yaml` instead of a name derived from the API. Products backed by a gateway service were already correct.
* Fixed issue: Pasting into the input fields of the interactive API documentation viewer, including the Basic Auth credential fields, did not work or mishandled line breaks, so a pasted credential could be dropped or malformed before the request was sent.

## 3.10.6[​](#3106 "Direct link to 3.10.6")

**Release Date**: 2026-08-25

### Breaking Changes[​](#3106-breaking-changes "Direct link to Breaking Changes")

#### Control Plane[​](#3106-breaking-changes-control-plane "Direct link to Control Plane")

* **Custom plugins are managed per gateway group**

  Upgrade note

  A custom plugin used to be a Control Plane wide resource with one copy of the code, so uploading a new build reached every gateway group the plugin was bound to at once. It now belongs to a single gateway group, which changes the API, the permissions, and what an existing deployment looks like after the upgrade.

  The endpoints move from `/api/custom_plugins` to `/api/gateway_groups/{gateway_group_id}/custom_plugins`, and the old paths answer `HTTP 410` on every method with the replacement path in the message. `PUT` is create-or-replace keyed by the plugin name, so a pipeline uploads with one call and writes only its own gateway group. `gateway_groups` is gone from the request and response payloads, which now carry `gateway_group_id`. `GET /api/plugins` requires a `gateway_group_id` query parameter, because the plugin catalog is a per-gateway-group answer.

  Permissions move with the resource, from `arn:api7:gateway:gatewaysetting/*` to `arn:api7:gateway:gatewaygroup/{gateway_group_id}`. `gateway:CreateCustomPlugin` no longer exists — upload is create-or-replace behind one endpoint, so `gateway:UpdateCustomPlugin` covers it — and reading a custom plugin now requires the new `gateway:GetCustomPlugin` action. Reading took no permission at all before, so any signed-in user could read the source of any custom plugin; after the upgrade a role that was never granted custom plugin permissions cannot list or read them and has to be granted `gateway:GetCustomPlugin`. An upgrader rewrites stored policies: a statement that granted custom plugin actions on the old resource keeps its other actions there, and the custom plugin actions move to a new statement on `arn:api7:gateway:gatewaygroup/*` with the same effect and conditions, with `gateway:CreateCustomPlugin` rewritten and `gateway:GetCustomPlugin` added. The replaced document is kept in `permission_policy_backup`.

  The same upgrader expands each existing plugin into one row per gateway group it was deployed to, so plugins keep working across the upgrade with no action. Two cases need attention afterwards. A plugin that was deployed to no gateway group has nowhere to go and is logged instead of migrated; upload it to the gateway groups that need it. A route that referenced a plugin never deployed to its own gateway group used to be accepted while the plugin never ran; that gateway group now has no such plugin, so the next write to that route reports the plugin as unknown until the stale plugin configuration is removed.

  Finally, code uploaded while running 3.10.6 lives only in the new table, so rolling back to an earlier release serves whatever code the pre-upgrade table still holds.

### Upgrade Notes[​](#3106-upgrade-notes "Direct link to Upgrade Notes")

Upgrade note — access log formats naming `$http_x_forwarded_*` now record what the client sent

The gateway has always overwritten `X-Forwarded-Proto`, `X-Forwarded-Host` and `X-Forwarded-Port` and cleared `Forwarded` for requests from peers it does not trust. That work now happens in the NGINX configuration rather than in Lua. What the upstream receives is unchanged, and so is what plugins see: `core.request.header` and `ctx.var.http_x_forwarded_*` still return the overwritten values, and `ctx.var.original_x_forwarded_*` still returns what the client sent.

The NGINX configuration level differs. Naming `$http_x_forwarded_proto`, `$http_x_forwarded_host`, `$http_x_forwarded_port` or `$http_forwarded` in an access log format, an `if`, or a `map` now reads what the client sent, where it previously read the overwritten value. A log format that records `$http_x_forwarded_host` for auditing therefore starts recording a value the client controls: a request forging `X-Forwarded-Host: evil.example.com` was logged as the real host before the upgrade and is logged as `evil.example.com` after it.

Use `$scheme`, `$var_x_forwarded_host` and `$var_x_forwarded_port` to log the overwritten values. `$http_x_forwarded_for` is not affected. What the client sent is also available in the new `$original_x_forwarded_proto`, `$original_x_forwarded_host`, `$original_x_forwarded_port`, `$original_x_forwarded_for` and `$original_forwarded` NGINX variables.

Upgrade note — logging plugins now discard entries once the backlog reaches 8192

The batch processor behind every logging plugin kept undelivered entries in worker memory without a limit unless `max_pending_entries` was set in the plugin's metadata, so a log server that was slow or unreachable grew the worker's memory with the request rate. The limit now defaults to 8192 entries, and `datadog`, `lago`, `loggly`, `sls-logger` and the stream subsystem's `syslog` expose the option for the first time.

A deployment whose log server keeps up is unaffected: the backlog tracks `batch_max_size` rather than the request rate and stays well under a thousand entries. Once the limit is reached, entries are discarded and reported at most once per second with a running count. If you log request or response bodies larger than a few kilobytes, lower `max_pending_entries` in the plugin metadata so the backlog fits your memory budget; if you raised `batch_max_size`, raise this with it.

Upgrade note — OpenID Connect enforces the authorization checks it was configured with

Three checks that could be configured on **[OpenID Connect](https://docs.api7.ai/hub/openid-connect.md)** were not applied in every case, so requests that should have been rejected were let through. Configurations that relied on them are now enforced, and traffic that was passing before may start receiving `HTTP 401` or `403`.

`required_scopes` was only applied to tokens validated by introspection. A route using the authorization code flow — the default, with `bearer_only` unset — never read the scopes granted to the session, so every user who completed the login was authorized. The scopes are now read from the access token, and a session whose granted scopes cannot be determined is denied rather than allowed. Check that your identity provider issues the access token as a JWT carrying `scope`, or that the ID token carries it, before relying on `required_scopes` with the authorization code flow.

`claim_validator.audience.match_with_client_id` compared the `aud` claim against the client id only when the claim was present, so a token that omitted `aud` skipped the check. The option now implies that the claim is required, and a token without `aud` receives `HTTP 403`.

In `bearer_only` mode with no `valid_issuers` configured, the trusted issuer comes from the provider's discovery document; when that fetch failed the gateway logged a warning and verified the token with no issuer constraint at all. It now answers `HTTP 401` with `error_description="issuer validation unavailable"` instead. Configure `valid_issuers` explicitly if you do not want availability of the discovery endpoint on the request path.

Upgrade note — AI Proxy Multi rejects instances that share a name

**[AI Proxy Multi](https://docs.api7.ai/hub/ai-proxy-multi.md)** accepted two instances configured with the same `name`, which made the instance a request was routed to ambiguous. Such a configuration is now rejected with `HTTP 400` at write time.

Configurations already stored keep working but are reported in the Data Plane's configuration compatibility report at `error` level after the upgrade. Rename the duplicated instances so each name is unique; the report clears once the configuration is rewritten.

Upgrade note — LDAP Auth matches the consumer on the escaped bind DN

**[LDAP Auth](https://apisix.apache.org/docs/apisix/plugins/ldap-auth/)** used to look the consumer up by a distinguished name it rebuilt through plain string concatenation, which differs from the DN it actually binds with as soon as the username carries a character that has structural meaning in a DN (`,` `+` `=` `<` `>` `;` `"` `\`). It now uses the escaped DN produced for the bind.

Directories in which every username is free of those characters are unaffected. If a consumer's `user_dn` was written in the unescaped form to match the previous behavior, rewrite it in the RFC 4514 escaped form — for example `cn=comma\,user,ou=users,dc=example,dc=org` — or that consumer stops matching after the upgrade.

Upgrade note — Proxy Cache in-memory entries are fetched again once after the upgrade

The storage key layout of **[Proxy Cache](https://docs.api7.ai/hub/proxy-cache.md)** in `memory` strategy changed to close the variant collision described under Fixes, and the cache version was bumped alongside it. Entries written by an earlier release are therefore not reachable under the new layout: the first request for each key is a `MISS` and repopulates the cache, and a `PURGE` for a URL that only has pre-upgrade entries answers `HTTP 404`. The old entries stay in the shared dictionary until their own TTL expires. Deployments using the default `disk` strategy are unaffected.

### Features[​](#3106-features "Direct link to Features")

#### Plugins[​](#3106-features-plugins "Direct link to Plugins")

* **[GraphQL Limit Count](https://docs.api7.ai/hub/graphql-limit-count.md)**
  * Added query cost rate limiting, so a GraphQL request consumes quota in proportion to how much work it asks for instead of counting as one request. `cost_strategy` selects how the cost is computed — `depth` for the selection nesting depth, `complexity` for the number of nodes the query resolves, and `node_quantifier` for the number of objects the arguments ask each field to return — and `score_factor` scales the result. Setting `max_cost` rejects a query above that cost with `HTTP 403` before it reaches the upstream, and the computed value is returned in the `X-Graphql-Query-Cost` response header. When the service carries cost decorations, matching them against the upstream schema requires introspecting it, which happens once per service through `introspection_endpoint`, with `introspection_headers` carrying any credential that endpoint requires. With `resolve_variables` enabled, arguments supplied through GraphQL variables are taken into account rather than treated as absent.
* **[Prometheus](https://docs.api7.ai/hub/prometheus.md)**
  * Added three metrics for Layer 4 traffic, joining the `apisix_stream_connection_total` counter that was already exported: `apisix_stream_status` counting completed sessions by termination status, listening address and upstream node, `apisix_stream_active_connections` as a gauge of TCP connections and UDP sessions per listening address, and `apisix_stream_bandwidth` counting bytes proxied by listening address, direction and side. Enable the plugin on the stream route to collect them. The `stream_status` key can be added to the `disabled_labels` plugin metadata to drop labels from `apisix_stream_status`, as `status` already does for the HTTP counter.
* **[AI Proxy Multi](https://docs.api7.ai/hub/ai-proxy-multi.md)**
  * Added `fallback_http_statuses`, which lists the HTTP status codes an instance may answer with to make the gateway retry the request against the next instance. Previously a fallback only happened when an instance could not be reached at all, so a provider answering `401` for an expired key or `429` for a quota exhausted on that account was returned to the client instead of being retried elsewhere.
* **[LDAP Auth](https://apisix.apache.org/docs/apisix/plugins/ldap-auth/)** and **[LDAP Auth Advanced](https://docs.api7.ai/hub/ldap-auth-advanced.md)**
  * Added `hide_credentials` to both plugins, which removes the `Authorization` header after the client has been authenticated so the directory credentials are not forwarded to the upstream. It defaults to `false`, matching the previous behavior.

#### Control Plane[​](#3106-features-control-plane "Direct link to Control Plane")

* A custom plugin now belongs to one gateway group instead of the whole deployment, so the same plugin name can run different code in staging and in production and a pipeline that uploads to one environment does not touch the others. See Breaking Changes for the API, permission and migration details.
* GraphQL query costs can be tuned per service through a new `graphql_cost_decorations` sub resource on a service. A decoration names a field path such as `Query.products` or `Product` and adjusts what that field contributes to the cost, either as a flat `add_value` or by multiplying its children by the value of an argument listed in `mul_arguments` — so a field that returns `first: 10` objects is costed as ten. Decorations are validated against the service they belong to, a field path can only be decorated once, and changes reach the Data Plane without touching the routes that carry the plugin.
* Routes can now match the `PURGE` method, which is how **[Proxy Cache](https://docs.api7.ai/hub/proxy-cache.md)** and **[GraphQL Proxy Cache](https://docs.api7.ai/hub/graphql-proxy-cache.md)** invalidate a cached entry. The gateway has always accepted it; only the Dashboard's own schema rejected it, so a route serving cache invalidation could not be created through the API or the Dashboard.
* Upstream and route timeouts now accept fractional seconds, so `0.5` can be configured where the API previously required a whole number. The Data Plane has always supported sub-second timeouts. The smallest value is `0.001`, because anything below a millisecond is truncated.

#### Data Plane[​](#3106-features-data-plane "Direct link to Data Plane")

* The `X-Forwarded-*` headers a request carries are now sanitized by the NGINX configuration instead of by Lua on every request. Plugins see the same values as before, and the values the client sent — already available to Lua as `ctx.var.original_x_forwarded_*` — are now NGINX variables as well, so a log format can record them. See Upgrade Notes for the one place this changes what is logged.

#### Console (Dashboard)[​](#3106-features-console "Direct link to Console (Dashboard)")

* Added Traditional Chinese (Taiwan) and Vietnamese. The Chinese locale tags now say which Chinese they mean — `zh-Hans-CN` and `zh-Hant-TW` — so a missing Traditional string falls back to English where it is visible instead of silently rendering Simplified copy. Users who had selected Chinese keep their language.
* The license page now shows the Deployment ID as the first row of the license table, with a copy button. The Deployment ID is what you hand to API7 to have a license issued or renewed; it was previously only rendered inside the "Update License" dialog, which is gated on the permission to update a license, so users without that permission could not read it at all. The row is populated even when no license is activated.

#### Developer Portal[​](#3106-features-developer-portal "Direct link to Developer Portal")

* The portal frontend has been rebuilt on TanStack Start, replacing the Next.js application. Deployment is unchanged — the same image, the same port, and the same `config.yaml` — so upgrading needs no configuration change.
* An organization invitation that was not accepted can now be resent from the members page, instead of having to be revoked and issued again.
* When only one identity provider is configured, the sign-in page selects it automatically rather than asking the developer to choose from a list of one.
* Organization avatars are now visually distinct from personal avatars in the top bar, so it is clear which organization the current context belongs to.
* The organization identifier field is labelled "Slug", which is what the value is, instead of "URL".

### Fixes[​](#3106-fixes "Direct link to Fixes")

#### Plugins[​](#3106-fixes-plugins "Direct link to Plugins")

* **[GraphQL Limit Count](https://docs.api7.ai/hub/graphql-limit-count.md)**
  * Fixed issue: A GraphQL document whose fragments spread one another was measured by expanding each spread every time it was referenced, so a small request body could cost an unbounded amount of CPU. A 1.4 KB document with 34 chained fragments held a worker at 100% CPU for over 45 seconds, during which the gateway answered nothing on any route and had to be restarted. Each fragment is now measured once, and a document whose fragment spreads form a cycle is rejected with `HTTP 400`.

* **[AI Proxy](https://docs.api7.ai/hub/ai-proxy.md)**
  * Fixed issue: When a streaming upstream answered `HTTP 200` with `Content-Type: text/event-stream` and then ended the response without writing anything, the request was neither answered nor terminated, so the client received no HTTP response at all and the access log recorded a `500` with a zero-length body. The gateway now returns `HTTP 502`.

* **[AI Proxy Multi](https://docs.api7.ai/hub/ai-proxy-multi.md)**
  * Fixed issue: When a request was retried against the next instance, it was built from the body the previous attempt had already rewritten, so the previous instance's `options` — for example its `temperature` or `max_tokens` — leaked into the request sent to the fallback and the model name could be overwritten. Each attempt now starts from the client's own request body.

* **[Redirect](https://apisix.apache.org/docs/apisix/plugins/redirect/)**
  * Fixed issue: With `http_to_https` enabled, the `X-Forwarded-Proto` header was compared case-sensitively, so a client or load balancer sending `HTTPS` was redirected to the HTTPS URL it had already reached, producing a redirect loop. The comparison is now case-insensitive.

* **[Data Mask](https://docs.api7.ai/hub/data-mask.md)**

  * Fixed issue: Request header masking had no effect on a request the gateway answered itself instead of proxying — one rejected by an authentication plugin, a rate limit, or **[Fault Injection](https://docs.api7.ai/hub/fault-injection.md)**, for example. Logging plugins running afterwards read the header from the unmodified request, so a credential that was configured to be masked was shipped to the log sink in plaintext. Masking now holds on every path.
  * Fixed issue: Removing an element from a JSON array left a hole in it rather than compacting the array, so the elements after the removed one were dropped from the logged body: masking `$.items[1]` out of `["a","b","c"]` logged `["a"]` instead of `["a","c"]`.

* **[Proxy Cache](https://docs.api7.ai/hub/proxy-cache.md)**
  * Fixed issue: In `memory` strategy, the storage key of a `Vary` variant was the cache key with the variant signature appended, and the cache key is derived from the request URI. A request crafted to carry another request's variant signature in its own URI therefore produced the same storage key, so it was served that request's cached response and its own response was stored where the next request would look that variant up. Storage keys are now derived so that no crafted request can reproduce another one's key. See Upgrade Notes for what this means for entries cached before the upgrade.

* **[OpenID Connect](https://docs.api7.ai/hub/openid-connect.md)**

  * Fixed issue: An identity provider that redirected back with `error=temporarily_unavailable` — which the specification defines as a transient condition — made the gateway answer `HTTP 500`. The authentication flow is now restarted from the original URL, up to three times per session, and other error codes such as `access_denied` are still treated as a final answer.
  * Fixed issue: `required_scopes`, `claim_validator.audience.match_with_client_id` and issuer validation were not applied in every case, letting through requests the configuration should have rejected. See Upgrade Notes.

* **[LDAP Auth](https://apisix.apache.org/docs/apisix/plugins/ldap-auth/)**
  * Fixed issue: The consumer was looked up by a distinguished name rebuilt through string concatenation rather than the escaped DN the plugin binds with, so a directory entry whose name contains a DN metacharacter authenticated successfully but matched no consumer — or matched a consumer belonging to a different entry. See Upgrade Notes.

* **[HMAC Auth](https://docs.api7.ai/hub/hmac-auth.md)**
  * Fixed issue: With `hide_credentials` enabled, the `Authorization` header was removed from the request sent upstream but stayed in the cached request headers, so a plugin ordered after HMAC Auth on the same route could still read the signature credential.

* **[AWS Lambda](https://docs.api7.ai/hub/aws-lambda.md)**
  * Fixed issue: A request body sent with `Transfer-Encoding: chunked` was forwarded to the function without being reframed, so the invocation failed and the client received `HTTP 503` with `failed to process aws-lambda, err: closed` in the error log. The body is now forwarded with a `Content-Length`. The same applies to the other serverless upstream plugins, which share this code path.

#### Data Plane[​](#3106-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: When resolving an upstream host that is a CNAME, the resolver's answer was only collapsed onto the queried name when the last record of the answer happened to be of the requested type. A resolver that appends an EDNS(0) OPT record, or returns the answer section out of chain order, defeated that test, so the resolved record was recorded under the canonical name rather than the name that was queried — and a same-type record owned by an unrelated name could be renamed onto the queried name and cached there. The chain is now walked to the name it ends at and only the records that name owns are collapsed.

#### Control Plane[​](#3106-fixes-control-plane "Direct link to Control Plane")

* Fixed issue: Any signed-in user could list the upstreams of a service, including their node addresses, because the endpoint that lists them carried no permission check while every other view of the same data was filtered by permission. Listing a service's upstreams now requires view permission on that service.
* Fixed issue: Updating a CA certificate or a client certificate did not re-publish the upstreams that referenced it unless they were the service's default upstream, so a non-default upstream kept presenting or trusting the previous certificate until it was edited by hand.
* Fixed issue: An SSL configuration that carried both `cert`/`key` and `certs`/`keys` for the same SNI — the way an RSA and an ECDSA certificate are served side by side — was rejected with `input matches more than one oneOf schemas`. Both are now accepted together, and the Data Plane negotiates whichever the client prefers.
* Fixed issue: A `jwt-auth` consumer credential using an asymmetric algorithm was written to the configuration store with a placeholder `private_key` field the user never configured, which the Data Plane reported as an unrecognized field and which was stored in the clear. The field is no longer added. Credentials written before the upgrade keep it until they are next saved.

#### Console (Dashboard)[​](#3106-fixes-console "Direct link to Console (Dashboard)")

* Fixed issue: Reopening the plugin editor in YAML mode repeated every field in the suggestion list once per open, so after five opens each field appeared five times. The editor's YAML support is now configured once per page.

#### Developer Portal[​](#3106-fixes-developer-portal "Direct link to Developer Portal")

* Fixed issue: Navigating to an organization that does not exist, or that the developer is not a member of, showed an error toast instead of a page explaining what happened.
* Fixed issue: An invitation link and the landing page could redirect a signed-in developer to the wrong place after accepting an invitation.
* Fixed issue: The "Copy page" button in the documentation wrapped onto a second line instead of sitting on the page title's first line.

## 3.10.5[​](#3105 "Direct link to 3.10.5")

**Release Date**: 2026-08-11

### Breaking Changes[​](#3105-breaking-changes "Direct link to Breaking Changes")

#### Plugins[​](#3105-breaking-changes-plugins "Direct link to Plugins")

* **[Alibaba Cloud Logging (SLS)](https://apisix.apache.org/docs/apisix/plugins/sls-logger/)**

  Upgrade note

  The plugin now verifies the TLS certificate of the log server. Earlier versions completed the TLS handshake without validating the certificate at all, so a log server presenting a self-signed certificate, a certificate from a private CA, or an expired certificate was accepted silently, and log records containing the configured access key were sent to it.

  Verification is controlled by the new `ssl_verify` option, which defaults to `true`. After the upgrade, a log server whose certificate the gateway cannot validate causes the batch processor to drop the log entries and report `failed to perform TLS handshake to TCP server` in the error log. If your log server presents a certificate that is not signed by a publicly trusted CA, add the issuing CA to the Data Plane's trusted certificate store before upgrading, or set `ssl_verify` to `false` on the plugin to keep the previous behavior.

### Upgrade Notes[​](#3105-upgrade-notes "Direct link to Upgrade Notes")

Upgrade note — the Loki Logger `headers` field is encrypted at rest

When Data Plane data encryption is enabled (`apisix.data_encryption.enable`), the Control Plane now encrypts the **[Loki Logger](https://docs.api7.ai/hub/loki-logger.md)** `headers` field at rest. Because API7 EE upgrades the Control Plane before the Data Plane, during the upgrade window a 3.10.5 Control Plane encrypts this field while an older 3.10.4 Data Plane cannot decrypt it, which can cause the plugin to fail until the Data Plane is also upgraded.

If you use Loki Logger with `headers`, upgrade the Data Plane to 3.10.5 promptly after the Control Plane, and avoid editing that plugin until both sides are on 3.10.5.

Upgrade note — Dashboard users are signed out once after the upgrade

The key used to sign Dashboard session cookies was a compile-time constant, the same in every deployment. It is now a random 32-byte key generated on first start and stored per deployment, so a session cookie can no longer be signed with a value that is identical everywhere.

Sessions issued before the upgrade were signed with the old constant and are no longer accepted. Every signed-in user has to sign in again once after the Control Plane is upgraded. Nothing needs to be done before upgrading, and no configuration change is required.

Upgrade note — Docker Compose deployments switch to the `radixtree_host_uri` router

The Docker Compose package now sets `apisix.router.http` to `radixtree_host_uri`, which is the default the Helm chart already uses. Previously the package did not set the key and fell back to `radixtree_uri`, so the same configuration could resolve routes differently depending on how the gateway was deployed.

Configurations that rely on plain host and path matching are unaffected. The difference appears when routes that specify hosts and routes that do not specify hosts share overlapping paths: `radixtree_host_uri` consults the per-host routers first and falls back to the host-less routes only when none of them matched, whereas `radixtree_uri` keeps every route in a single tree ordered by path specificity and `priority`. To keep the previous engine, set `apisix.router.http` to `radixtree_uri` in `gateway_conf/config.yaml`.

Upgrade note — Dashboard URLs no longer carry a language prefix

The Dashboard now applies the interface language in the browser and remembers the choice in a cookie, so its URLs no longer carry a `/zh` prefix. Bookmarks and saved links that contain `/zh` return `HTTP 404` after the upgrade; the same page is reachable at the same path without the prefix. The set of available languages and the language switcher itself are unchanged.

### Features[​](#3105-features "Direct link to Features")

#### Plugins[​](#3105-features-plugins "Direct link to Plugins")

* **[LDAP Auth Advanced](https://docs.api7.ai/hub/ldap-auth-advanced.md)**
  * Added the plugin, which authenticates clients against an LDAP directory and maps them onto a consumer. The plugin resolves the user by searching `base_dn` for `attribute=username` and then binding as the resulting entry, so the directory layout does not have to be encoded in the gateway configuration. Credentials are read from the `Authorization` header in either the `ldap` or the `basic` scheme (`header_type`), the directory can be reached over LDAPS or StartTLS with certificate verification enabled by default, and connections are pooled between requests. A consumer is matched by the `user_dn` recorded on its credential, so per-consumer plugins, rate limits, and analytics apply to LDAP-authenticated traffic like any other identity.

* **[OpenID Connect](https://docs.api7.ai/hub/openid-connect.md)**

  * Added support for Pushed Authorization Requests (PAR, RFC 9126). When `par.enabled` is set, the gateway sends the full authorization request to the identity provider's PAR endpoint over a back channel and redirects the browser with only a `request_uri`, so authorization parameters never travel through the user agent and cannot be tampered with there. The endpoint and its client authentication method are configured with `par.endpoint` and `par.endpoint_auth_method`.
  * Added support for DPoP sender-constrained tokens (RFC 9449). When `dpop.enabled` is set, the gateway signs a DPoP proof with `dpop.private_key` for the token request and advertises the matching `dpop.public_jwk`, binding the issued tokens to that key so a stolen token cannot be replayed from another client. With PAR enabled as well, the key thumbprint is also sent as `dpop_jkt` on the pushed request, as the specification requires.

* **[AI AWS Content Moderation](https://docs.api7.ai/hub/ai-aws-content-moderation.md)**

  * Added `check_response` to moderate the LLM's reply in addition to the request. A non-streaming reply is moderated before it reaches the client. For a streaming reply, `stream_check_mode` selects how it is handled: `final_packet`, the default, moderates the assembled response and annotates the last chunk with its risk level, while `realtime` moderates batches of at most `stream_check_cache_size` characters as the response is relayed and replaces the rest of the stream as soon as a batch is flagged, so a stream that turns harmful mid-response is cut off rather than delivered in full. A blocked reply is returned in the provider's own response format with the configured `deny_code` and `deny_message`.
  * Added `request_check_roles` and `request_check_mode` to choose which message roles are moderated and whether only the last message or every message of the selected roles is checked, matching the options already available in **[AI Aliyun Content Moderation](https://docs.api7.ai/hub/ai-aliyun-content-moderation.md)**.

* **[AI Proxy Multi](https://docs.api7.ai/hub/ai-proxy-multi.md)**
  * Added the `semantic` balancer algorithm, which routes each request to the instance whose configured `examples` are semantically closest to the prompt, instead of by weight or hash. The embedding provider is configured under `semantic_opts.embeddings`, a global or per-instance `threshold` sets how close a match has to be, and requests that match nothing well enough go to `semantic_opts.fallback`. If the embedding service cannot be reached, the request is sent to the fallback instance rather than failed. With `semantic_opts.debugging` enabled, the per-instance scores and the chosen instance are returned in response headers.

#### Control Plane[​](#3105-features-control-plane "Direct link to Control Plane")

* A custom plugin can now be uploaded as a complete package containing an entry file and its dependency files, instead of a single Lua file. The archive holds `$NAME.lua` at the top level, its dependency modules under `$NAME/`, and `metadata.json`; the Dashboard reads the metadata to fill in the plugin's catalog, description, documentation link, and author. The package is distributed to the Data Plane as one unit, so a plugin is never published with only some of its files present, and updating it replaces every file at once without restarting the gateway.
* Licensed Data Plane CPU cores can now be metered separately for production and non-production environments. Each gateway group carries an `environment` of `production` (the default) or `non_production`, and the license carries a matching `max_dp_cores` and `max_non_production_dp_cores`; each allowance runs its own usage, grace, and restriction state independently, so exceeding one does not restrict writes governed by the other. Usage that cannot be attributed to a known gateway group counts against the production allowance. Existing gateway groups are treated as production, and a license issued before this change grants no non-production cores, so nothing changes until a gateway group is flagged `non_production` — which then requires a license that grants non-production cores.
* A stream service can now use `tls` as its upstream scheme, so the gateway terminates the client's plain TCP connection and establishes a TLS session with the backend. Previously only `tcp` and `udp` were accepted, even though the Data Plane has always supported `tls` for Layer 4 upstreams.
* The Docker Compose package now ships `portal.sh`, which brings up the Developer Portal against a running deployment. It creates the portal instance and its token, writes the frontend configuration and database, and starts the frontend behind a Compose profile, so trying the portal out no longer means following the manual deployment guide by hand. Developer accounts and sessions survive `portal.sh stop` and a later `start`.
* The API7 Gateway Admin API reference now lists each operation in exactly one place. The overloaded **Service** group has been split into **Service**, **Route**, **Stream Route**, **Upstream**, and **OpenAPI**, so an operation is no longer repeated under several groups in the reference navigation.

#### Data Plane[​](#3105-features-data-plane "Direct link to Data Plane")

* The plugin set selected by global rules is now computed once per request and reused across phases, instead of being recomputed in each of them. On a deployment that enables the **[Prometheus](https://docs.api7.ai/hub/prometheus.md)** plugin through a global rule, this measured 12% higher throughput on a single worker.

#### Console (Dashboard)[​](#3105-features-console "Direct link to Console (Dashboard)")

* The language switcher no longer shows country flags, which do not map to languages, and marks the language that is currently active.

#### Developer Portal[​](#3105-features-developer-portal "Direct link to Developer Portal")

* Added `emailAndPassword.revokeSessionsOnPasswordReset`, which controls whether a developer's other sessions are revoked when they reset their password. It defaults to `true`, matching the previous behavior.

### Fixes[​](#3105-fixes "Direct link to Fixes")

#### Plugins[​](#3105-fixes-plugins "Direct link to Plugins")

* **[AI Aliyun Content Moderation](https://docs.api7.ai/hub/ai-aliyun-content-moderation.md)**

  * Fixed issue: With `system` selected in `request_check_roles`, content placed in a `developer` role message was not sent for moderation. `developer` is the role OpenAI uses in place of `system` on newer models and on the Responses API, so a client could put instructions there and have them proxied to the LLM unchecked. Both roles are now collected together, and the existing `system` entry covers them both.
  * Fixed issue: In `realtime` stream check mode with a protocol converter in use — for example an Anthropic client in front of an OpenAI-compatible upstream — the same response text was submitted to the moderation service once per converted chunk rather than once per upstream chunk. Moderation results were unaffected, but `stream_check_cache_size` was reached far sooner than configured and the number of moderation calls scaled with the converter's output, adding latency and cost.

* **[AI AWS Content Moderation](https://docs.api7.ai/hub/ai-aws-content-moderation.md)**
  * Fixed issue: Content longer than Amazon Comprehend's per-segment and per-request limits was rejected or silently truncated, so long prompts and replies were only partially moderated. Content is now split to stay within the documented limits and submitted across as many batches as needed, and the HTTP client is reused across the calls of one request instead of opening a new connection for each.

* **[Loki Logger](https://docs.api7.ai/hub/loki-logger.md)**
  * Fixed issue: The `headers` field, which commonly carries the authentication token for the Loki endpoint, was stored in plaintext. It is now encrypted at rest when Data Plane data encryption is enabled (see Upgrade Notes).

* **[Limit Conn](https://docs.api7.ai/hub/limit-conn.md)**
  * Fixed issue: When the plugin was configured on a service, each route under that service counted its concurrent connections separately, so the effective limit was multiplied by the number of routes. The counter is now keyed by the resource the plugin is configured on, so a service-level limit applies across all of its routes.

* **[Prometheus](https://docs.api7.ai/hub/prometheus.md)**
  * Fixed issue: Expired entries in the shared dictionary that backs the metrics were not reclaimed, so its usage only ever grew and it eventually stayed full, at which point new metric series were dropped. Expired entries are now reclaimed.

* **[OpenID Connect](https://docs.api7.ai/hub/openid-connect.md)**
  * Fixed issue: An `Authorization` header with leading or trailing whitespace was rejected in `bearer_only` mode, because the whitespace was carried into the extracted token. The header is now trimmed before the token is read.

#### Data Plane[​](#3105-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: The `hosts` configured on a service were matched case-sensitively against the request's `Host` header when the gateway used the `radixtree_host_uri` router, which is the default in Kubernetes deployments. Because the header is normalized to lowercase before matching, a service whose `hosts` contained any uppercase letter could never match, and every route under it returned `HTTP 404` for every request. Service hosts are now normalized, matching how route hosts have always behaved. Docker Compose deployments were not affected before this release, because they used the `radixtree_uri` router (see Upgrade Notes).
* Fixed issue: Control characters in a rewritten upstream URI — for example a carriage return and line feed carried in from a percent-encoded request path — were written into the upstream request line verbatim, which allowed a client to truncate the request line and inject arbitrary headers into the request the gateway sent upstream. Control characters are now percent-encoded.
* Fixed issue: Certificates and private keys for stream (TCP/UDP) TLS listeners were not resolved when they were stored as `$ENV://` or `$secret://` references, so the TLS handshake failed with a PEM parsing error. Secret references are now resolved in the stream subsystem as they are for HTTP listeners.
* Fixed issue: When the watch on the configuration store timed out with no events, the Data Plane advanced its revision as though it had consumed everything up to that point, so configuration changes that arrived around the timeout could be skipped. The revision is no longer advanced on a timeout, and the recovery reload that follows a broken watch is now cheaper.
* Fixed issue: When a full configuration reload delivered an item the Data Plane could not accept, the previously working value for that item was discarded rather than kept, so a single invalid resource could take working configuration out of service after a reconnect. The previous value is now retained.

#### Control Plane[​](#3105-fixes-control-plane "Direct link to Control Plane")

* Fixed issue: The `order_by` and `direction` list parameters were interpolated into the generated SQL without validation, so a value that was not a column name changed the query rather than being rejected. Values are now validated wherever they are used, and the six list endpoints that had not declared the parameters — the four AI Gateway lists, certificate SNI usages, and contact point usages — now document the columns they accept and reject anything else with `HTTP 400`. Sorting by a valid column is unchanged; a request that passes an unsupported value to one of those endpoints now receives an error instead of an arbitrarily ordered result.
* Fixed issue: The Lua parser that reads a custom plugin's schema at upload time evaluated the uploaded file with the full standard library available, so a file could run commands on the Control Plane host while its schema was being read. The parser now runs with only the libraries a schema definition needs, and a file that exceeds a three-second budget is rejected. Ordinary plugin files, whose schemas are declarative tables, are unaffected.
* Fixed issue: The Helm installation script generated for a gateway group wrote the Data Plane's private key, certificate, and CA to fixed paths under `/tmp` with the operator's default file mode, and left them there. The script now creates them with `umask 077`, uses temporary file names, and deletes them when it exits.
* Fixed issue: Metrics pushed by a Data Plane were stored with the `gateway_group_id` label taken from the payload rather than from the credential the connection was authenticated with, so a Data Plane could write series into another gateway group's metrics. The label is now taken from the authenticated identity.
* Fixed issue: The etcd-compatible endpoint that Data Planes read their configuration from forwarded keys outside the caller's gateway group namespace, so a Data Plane could read, write, and delete the configuration of other gateway groups. Keys outside the caller's namespace are now rejected.
* Fixed issue: Service registry health check and probe results reported by a Data Plane were applied by registry ID alone, so a Data Plane could overwrite the discovered services and connection status of a registry belonging to another gateway group. Updates are now scoped to the reporting Data Plane's gateway group.
* Fixed issue: The `security.ssrf_protection` setting had no effect on the Developer Portal process, so approval webhooks and dynamic client registration could still reach internal addresses when it was enabled. The Developer Portal now applies the same policy as the Control Plane.
* Fixed issue: The Developer Portal API usage endpoint filtered statistics by the developer identifier supplied by the portal, which is only unique within one portal, so a developer could see the API product names and hourly call counts of a developer with the same identifier in another portal. Statistics are now restricted to the applications the caller owns.
* Fixed issue: Importing a license could leave the Dashboard rejecting every request with `license clock signature is invalid` for as long as the cache entry lived, because the license and the clock signed for it were cached separately and could be refreshed independently. They are now read and cached as one entry, cross-checked against each other, and written in a single transaction on import.
* Fixed issue: After a license that raises the licensed core allowance was imported, a Control Plane replica that had already blocked a write kept rejecting writes for up to the license cache lifetime. The license restriction is now evaluated against the current state on every request instead of being cached.
* Fixed issue: On SQL Server, a query interrupted mid-flight was indistinguishable from an empty result, so a delete could report success without recording the deletion, and a lookup could come back empty for configuration that existed. Interrupted queries now surface the error. Separately, the isolation level set for compaction leaked onto pooled connections, so later queries ran serializably and could queue behind writers long enough to time out, or deadlock with concurrent writes. Compaction now runs on a dedicated connection whose isolation level is reset before it returns to the pool. PostgreSQL and MySQL deployments were not affected.

#### Console (Dashboard)[​](#3105-fixes-console "Direct link to Console (Dashboard)")

* Fixed issue: The monitoring page reported a success ratio of `0%` when there was no traffic in the selected window, or when the reported failure count exceeded the request count, which read as though every request had failed. Both cases now render an em dash, because there is no ratio to report. The request and failure counts themselves are unchanged.
* Fixed issue: The status badge on an offline gateway instance rendered broken text in both languages, such as `Offline - In 6 DaysUntil Deletion`.
* Fixed issue: The Debug Session sampling rule presets used `http_uri`, `http_method`, and `http_status`. On the Data Plane, a variable with an `http_` prefix resolves to a request header, so those presets never matched and a debug session created from one captured nothing. The presets now use `uri`, `method`, and `status`.
* Fixed issue: Several in-product help links pointed at the frozen documentation archive instead of the current documentation set.

#### Developer Portal[​](#3105-fixes-developer-portal "Direct link to Developer Portal")

* Fixed issue: A percent-encoded path separator in a request to the portal's backend proxy could make the path sent upstream differ from the path the proxy's access control check was applied to. Path segments are now validated after decoding, and a segment containing a path separator, a query or fragment delimiter, or a control character is rejected.
* Fixed issue: When two-factor authentication was required, the exemption that lets the sign-in flow through covered the whole `/api` prefix, which is broader than the endpoints that need it. The exemption is now limited to the authentication endpoints, and a failure to load the session while enforcing the requirement now blocks the request instead of leaving the outcome undefined.
* Fixed issue: The two-factor password dialog treated an unresolved account list as though the account had no password, so it could skip the password check when enabling two-factor authentication, and the forced-enrollment flow could get stuck on a generic error with no way to continue. The dialog now waits for the account list and prompts for the password when one is required.
* Fixed issue: The session cache was not refreshed after two-factor authentication was enabled, so the interface kept showing the previous state until the page was reloaded.
* Fixed issue: The database migration that adds the two-factor lockout columns was missing, so deployments upgraded from an earlier version could fail when a lockout was recorded.
* Fixed issue: Signing up with an email address that already had an account did not report that the address was taken.
* Fixed issue: Requests the portal makes to the Control Plane had no timeout, so an unresponsive Control Plane could hold portal requests open indefinitely.

## 3.10.4[​](#3104 "Direct link to 3.10.4")

**Release Date**: 2026-07-27

### Upgrade Notes[​](#3104-upgrade-notes "Direct link to Upgrade Notes")

Upgrade note — logger body size limits are validated more strictly

`max_req_body_bytes` and `max_resp_body_bytes` are now validated as integers of at least `1` in the **ClickHouse Logger**, **Elasticsearch Logger**, **File Logger**, **Loggly**, **Loki Logger**, **SkyWalking Logger**, **Alibaba Cloud Logging (SLS)**, and **Syslog** plugins. Values that earlier versions accepted — `0`, negative numbers, and quoted numbers such as `"1024"` — are now rejected with `HTTP 400`.

After the upgrade, existing routes that carry such a value are listed as errors in the gateway group's compatibility report and are not published to the Data Plane; other routes are unaffected. Before upgrading, review these plugins' configurations for `max_req_body_bytes` or `max_resp_body_bytes` set to `0`, a negative number, or a quoted number, and replace them with a positive integer, or remove the field to fall back to the default of `524288`.

Upgrade note — structural Prometheus metric labels can no longer be disabled

The **[Prometheus](https://docs.api7.ai/hub/prometheus.md)** plugin metadata now rejects `disabled_labels` entries that would remove a label the metric is built around — for example `type` on `latency`, or `code` on `status`. Earlier versions accepted these and produced metric series in which distinct measurements collapsed into one.

If your Prometheus plugin metadata disables one of these labels, any update to it after the upgrade is rejected with `HTTP 400`. Remove the structural entries from `disabled_labels` before upgrading. Non-structural labels such as `route`, `service`, and `consumer` can still be disabled.

### Features[​](#3104-features "Direct link to Features")

#### Plugins[​](#3104-features-plugins "Direct link to Plugins")

* **[OpenID Connect](https://docs.api7.ai/hub/openid-connect.md)**
  * Added `set_raw_id_token_header`. When enabled, the raw ID token issued by the identity provider is forwarded to the upstream service in the `X-Raw-ID-Token` header, so the upstream can verify the token signature itself instead of trusting the gateway's decoded claims.
* **[Proxy Rewrite](https://docs.api7.ai/hub/proxy-rewrite.md)**
  * `headers.set` and `headers.add` now accept an array of values for a single header name, which is sent upstream as separate header lines rather than one comma-joined line. This matters for upstream services that read only the first occurrence of a header name, or that parse repeated headers differently from a single comma-joined value.
* **[Kafka Logger](https://docs.api7.ai/hub/kafka-logger.md)**
  * Added `tls` for connecting to Kafka brokers over TLS, with `tls.verify` controlling broker certificate verification. Previously the plugin could only connect in plaintext, so a broker listening on a TLS port received no logs at all.
* **Rate-limiting and cache plugins**
  * Added Redis connection keepalive settings (`redis_keepalive_timeout` and `redis_keepalive_pool`) to the Redis and Redis Cluster policies in **[Limit Conn](https://docs.api7.ai/hub/limit-conn.md)**, **[Limit Req](https://docs.api7.ai/hub/limit-req.md)**, and **[AI Cache](https://docs.api7.ai/hub/ai-cache.md)**, so operators can tune idle timeout and connection pool size.
* **Body-buffering plugins**
  * Added `max_req_body_size` and `max_resp_body_size` to bound how much of a request or response body a plugin reads into memory, defaulting to 67108864 bytes (64 MiB). A request body larger than the limit is rejected, and a response body is truncated at the limit — except in Proxy Cache, where an oversized response is streamed through without being cached — so one large body cannot exhaust worker memory. Available in **[AI Proxy](https://docs.api7.ai/hub/ai-proxy.md)**, **[AI Proxy Multi](https://docs.api7.ai/hub/ai-proxy-multi.md)**, **[AI Request Rewrite](https://docs.api7.ai/hub/ai-request-rewrite.md)**, the AI prompt plugins, **[Request Validation](https://docs.api7.ai/hub/request-validation.md)**, **[OAS Validator](https://docs.api7.ai/hub/oas-validator.md)**, **[Body Transformer](https://docs.api7.ai/hub/body-transformer.md)**, **[Response Rewrite](https://docs.api7.ai/hub/response-rewrite.md)**, **[Proxy Cache](https://docs.api7.ai/hub/proxy-cache.md)**, **[gRPC Transcode](https://docs.api7.ai/hub/grpc-transcode.md)**, **[SOAP](https://docs.api7.ai/hub/soap.md)**, and other plugins that buffer bodies.
* **Logger plugins**
  * Added `max_req_body_bytes` and `max_resp_body_bytes` to the remaining logger schemas — **[ClickHouse Logger](https://docs.api7.ai/hub/clickhouse-logger.md)**, **[Elasticsearch Logger](https://docs.api7.ai/hub/elasticsearch-logger.md)**, **[File Logger](https://apisix.apache.org/docs/apisix/plugins/file-logger/)**, **[Loggly](https://apisix.apache.org/docs/apisix/plugins/loggly/)**, **[Loki Logger](https://docs.api7.ai/hub/loki-logger.md)**, **[SkyWalking Logger](https://docs.api7.ai/hub/skywalking-logger.md)**, **[Alibaba Cloud Logging (SLS)](https://apisix.apache.org/docs/apisix/plugins/sls-logger/)**, and **[Syslog](https://docs.api7.ai/hub/syslog.md)** — so the body size limits are validated at configuration time and shown in the Dashboard (see Upgrade Notes).

#### Data Plane[​](#3104-features-data-plane "Direct link to Data Plane")

* Added `nginx_config.stream.real_ip_from`, which lists the addresses trusted to send a PROXY protocol header on stream (TCP/UDP) ports. On a connection from a trusted address, the client address is taken from the PROXY protocol header instead of the directly connected peer, so stream logs and address-based plugins see the real client rather than the load balancer in front of the gateway. It is empty by default and only takes effect on ports that accept the PROXY protocol.
* Upgraded the health check engine. Check targets are now reconciled incrementally instead of being destroyed and rebuilt, so scaling an upstream up or down no longer leaves a window in which no node is being checked, and the accumulated health state and failure counters of unchanged nodes are preserved instead of being reset.
* The `Apisix-Plugins` debug response header now lists the plugins that actually ran, in execution order and annotated with the phase each ran in (for example `limit-count#access`, `response-rewrite#header_filter`), instead of an unordered list of configured plugins.

#### Control Plane[​](#3104-features-control-plane "Direct link to Control Plane")

* The `/api/fe-config` endpoint is now served by the Control Plane binary and driven by `console.*` configuration keys, so the Dashboard's hybrid mode, browser error reporting (Sentry), and a custom sidebar group of external links can be configured through the Control Plane configuration or the Helm chart. Menu items that do not have a name and an absolute `http`/`https` URL are dropped instead of being served to the Dashboard.
* Service conflict checks now take route methods into account. Routes on the same host and path that serve disjoint method sets (for example `GET /foo` and `POST /foo`) are no longer reported as conflicting; an identical method scope is reported as duplicate, and a partially shared scope is reported as overlapping. A route without `methods` still matches all methods.
* Added an opt-in SSRF guard for outbound connections to user-configured endpoints. When `security.ssrf_protection.enable` is set, the Control Plane refuses to connect to loopback, private, link-local, and carrier-grade NAT addresses — including host names that resolve to them — which prevents features such as service registries and SMTP settings from being used to probe internal services or cloud metadata endpoints.

#### Console (Dashboard)[​](#3104-features-console "Direct link to Console (Dashboard)")

* The Control Plane version is now shown in the top bar next to the organization menu and can be copied with a single click, instead of only being available at the bottom of the organization dropdown.
* Resources synchronized by ADC (which carry the `managed-by=adc` label) are now marked with a **Managed by ADC** tag and a banner on their detail pages, and edit, delete, and create actions on them warn that the next ADC sync overwrites manual changes and removes manually added children. Resources under a managed service or consumer are covered even when the child itself carries no label. The warnings are advisory and do not block the operation.
* The conflict dialog for services and routes now shows a **Methods** column, so it is clear on which methods two routes collide. Routes without `methods` are shown as **All**.

### Fixes[​](#3104-fixes "Direct link to Fixes")

#### Plugins[​](#3104-fixes-plugins "Direct link to Plugins")

* **[AI Proxy](https://docs.api7.ai/hub/ai-proxy.md)**, **[AI Proxy Multi](https://docs.api7.ai/hub/ai-proxy-multi.md)**, and **[AI Request Rewrite](https://docs.api7.ai/hub/ai-request-rewrite.md)**

  * Fixed issue: The requests the gateway sent to the LLM provider carried the client's own headers, including `Cookie`, `Authorization`, and arbitrary custom headers, exposing end-user credentials to the upstream provider. The gateway now sends only the headers the plugin itself sets.
  * Fixed issue: On an error response from the LLM, `$apisix_upstream_response_time` and `$llm_time_to_first_token` were logged in seconds (for example `0.240`) or as `0`, while successful responses were logged in milliseconds. Error-path values are now reported in milliseconds, consistent with the success path.

* **[OpenID Connect](https://docs.api7.ai/hub/openid-connect.md)**

  * Fixed issue: Delivering an authorization callback whose state no longer matched the session — for example after starting a second login flow in the same browser — returned `HTTP 500`. The gateway now redirects to the originally requested page instead.
  * Fixed issue: An empty JSON array in the identity provider's user info (for example `"roles": []`) was re-encoded as an empty object (`{}`) in the `X-Userinfo` header on requests served from an existing session, so upstream services that parse the field as an array failed. Empty arrays now stay arrays.

* **[wolf-rbac](https://apisix.apache.org/docs/apisix/plugins/wolf-rbac/)**
  * Fixed issue: When the authentication service returned success without `userInfo`, the client's own `X-UserId`, `X-Username`, and `X-Nickname` headers were forwarded to the upstream service, letting a caller present any identity it chose. These headers are now always cleared before the request is proxied.

* **[Limit Count](https://docs.api7.ai/hub/limit-count.md)**
  * Fixed issue: With `window_type: sliding` and delayed synchronization, the remaining quota was reported without the sliding-window weighting, so the gateway admitted noticeably more requests than configured around window boundaries. The remaining count is now window-weighted.

* **[Limit Conn](https://docs.api7.ai/hub/limit-conn.md)** and **[Limit Req](https://docs.api7.ai/hub/limit-req.md)**
  * Fixed issue: Redis connections were not returned to the keepalive pool, so every request opened a new Redis connection and the configured keepalive settings had no effect. Connections are now pooled and reused.

* **[Prometheus](https://docs.api7.ai/hub/prometheus.md)**
  * Fixed issue: When the shared dictionary used for metrics filled up, the gateway could enter a loop that held a worker at 100% CPU and did not recover after traffic stopped. A full dictionary now degrades gracefully, logging that reported metric data may be incomplete.

#### Data Plane[​](#3104-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: With the `least_conn` load balancer, adding or removing an upstream node discarded the tracked connection counts, so the balancer degraded to round robin and sent new requests to nodes that were already holding long-lived connections. Load state is now preserved across upstream scaling.
* Fixed issue: When a plugin field referenced a secret that could not be resolved — an unset environment variable, or an error from the secret manager — the failure was silent and the unresolved reference was used as the literal value. The gateway now logs an error identifying the reference and the field it appears in.
* Fixed issue: The gateway read its host name by executing `/bin/hostname`, so on images that do not ship that binary it reported no host name and gateway instances appeared without a host name in the Dashboard. The host name is now read through a system call.
* Fixed issue: Entries in `nginx_config.envs` whose values contained spaces, quotes, or backslashes produced an invalid NGINX configuration and the gateway failed to start. These values are now quoted and escaped correctly.
* Fixed issue: Stopping and immediately restarting the gateway through the CLI could fail because the previous instance had not finished exiting. The CLI now waits for it to stop before starting the new one.
* Fixed issue: After a gateway container was killed rather than shut down cleanly, leftover worker event sockets could prevent the next start from binding. They are now removed during startup.
* Fixed issue: On arm64, a dependency pulled a second copy of the JSON library into the gateway's module path, shadowing the bundled one and encoding empty arrays as invalid JSON. The redundant dependency is removed, so the bundled library is always used.

#### Control Plane[​](#3104-fixes-control-plane "Direct link to Control Plane")

* Fixed issue: Two concurrent PATCH requests against the same resource could each read the resource before the other wrote it, so only the last write survived even though both requests reported success. PATCH requests on the same resource are now serialized.
* Fixed issue: `PATCH /apisix/admin/routes` applied the patch without validating the result against the route schema, so a patch could persist a route that exceeded a schema limit — for example more than 64 paths — which later `PUT` requests and `adc sync` then rejected. The merged result is now validated before it is stored.
* Fixed issue: Pooled database connections were reused indefinitely, so after a database failover the Control Plane could keep using connections pinned to a demoted, now read-only primary. Connection lifetime is now bounded at one hour by default and can be tuned with `database.max_lifetime`.
* Fixed issue: Importing a license whose certificate chain had expired reported `license certificate comes from an invalid issuer`, pointing at the signing authority rather than at the expiry. An expired or not-yet-effective certificate chain now reports a dedicated message that includes the relevant timestamp. Certificates from a genuinely unknown authority still report an invalid issuer.
* Fixed issue: The current data plane core count included instances that had stopped sending heartbeats, which stay in **LostConnection** for up to two hours before being marked offline, so the Dashboard's core usage remained inflated long after a data plane was scaled down or crashed. Only connected instances in standard running mode are counted now. License accounting, which is computed from heartbeat usage, is unchanged.

#### Console (Dashboard)[​](#3104-fixes-console "Direct link to Console (Dashboard)")

* Fixed issue: The route paths and service hosts forms allowed adding entries beyond the schema limits of 64 paths and 32 hosts. Creating such a resource failed with a raw server error, and editing one could store a configuration that `adc validate` and `adc sync` later rejected. The **Add** control is now hidden once a list reaches its limit, while lists that are already over the limit still show every entry so the excess can be removed.

## 3.10.3[​](#3103 "Direct link to 3.10.3")

**Release Date**: 2026-07-14

### Upgrade Notes[​](#3103-upgrade-notes "Direct link to Upgrade Notes")

Upgrade note — higher default gateway memory usage

Several Data Plane shared memory (`lua_shared_dict`) defaults were raised, so a 3.10.3 gateway reserves about **365 MiB more** shared memory at startup than 3.10.2 with the default configuration:

| Shared dictionary                                                   | 3.10.2 default | 3.10.3 default |
| ------------------------------------------------------------------- | -------------- | -------------- |
| `prometheus-metrics` (advanced metrics)                             | 15 MiB         | 128 MiB        |
| `kubernetes`, `nacos`, `nacos-stream`, `consul` (service discovery) | 20 MiB each    | 64 MiB each    |
| `tracing_buffer` (SkyWalking)                                       | 10 MiB         | 32 MiB         |
| `api-calls-for-portal`                                              | 10 MiB         | 64 MiB         |

These dictionaries are allocated when the gateway starts, whether or not the corresponding feature is in use, so the increase applies to every 3.10.3 gateway. Before upgrading, raise the gateway container's memory `requests` and `limits` (in Kubernetes, also review node memory-pressure and eviction thresholds) so the gateway is not OOM-killed. If you do not use a given feature — for example a service discovery type you have not configured — you can lower its dictionary back toward the previous value through the gateway configuration, or through the shared-dict values in the Helm chart.

Upgrade note — built-in user login policy is stricter

Built-in Dashboard users are now temporarily locked out after repeated failed password attempts. The default policy is enabled, bans the user and source IP after 5 consecutive failures, and lasts 15 minutes. Administrators can tune or disable it through the new login failure restriction system setting. New passwords and passwords changed after upgrade must also be at least 12 characters and still satisfy the existing complexity requirements. Existing passwords are not revalidated at sign-in.

If a built-in user enables two-factor authentication, HTTP Basic Auth for that user is rejected because Basic Auth cannot provide a second factor. Use access tokens for programmatic integrations instead; token authentication is sent with the `X-API-KEY` header and does not require a 2FA verification code.

Upgrade note — forwarded headers are trusted only from trusted addresses

The gateway now uses `apisix.trusted_addresses` to decide whether client-supplied `X-Forwarded-*` and RFC 7239 `Forwarded` headers are trusted. When `trusted_addresses` is not configured, or when the request comes from an untrusted address, the gateway overwrites `X-Forwarded-Proto`, `X-Forwarded-Host`, and `X-Forwarded-Port` with gateway-observed values and clears the `Forwarded` header before proxying upstream. If an upstream application depends on the original forwarded protocol, host, or port sent by a trusted load balancer or reverse proxy, configure that proxy's IP or CIDR in `trusted_addresses`.

Upgrade note — OpenID Connect silent re-authentication is no longer enabled by default

The `openid-connect` plugin no longer sets `refresh_session_interval` to `900` seconds by default. Periodic silent re-authentication now happens only when `refresh_session_interval` is explicitly configured. If your deployment relied on the previous 900-second refresh behavior, set `refresh_session_interval: 900` before or during the upgrade.

Upgrade note — SQL Server deployments enable snapshot reads on first startup

For SQL Server-backed deployments, the Control Plane now creates and prepares the database before other components connect, and enables `READ_COMMITTED_SNAPSHOT` to prevent gateway configuration reads from blocking behind writes. On an existing SQL Server database where this setting is still disabled, the first startup applies the database-level change with `ROLLBACK IMMEDIATE`; in-flight database transactions and sessions can be disconnected once, after which connection pools reconnect and later starts are no-ops.

Upgrade note — additional plugin secret fields are encrypted at rest

The Control Plane now encrypts additional credential-bearing plugin fields at rest. Because API7 EE upgrades the Control Plane before the Data Plane, during the upgrade window a 3.10.3 Control Plane encrypts these fields while an older 3.10.2 Data Plane cannot decrypt them, which can cause the affected plugins to fail until the Data Plane is also upgraded.

The newly encrypted fields, by plugin, are:

* **ai-cache**: `semantic.embedding.openai.api_key`, `semantic.embedding.azure_openai.api_key`

If you use any of these plugins with the listed fields, upgrade the Data Plane to 3.10.3 promptly after the Control Plane, and avoid editing those plugins until both sides are on 3.10.3.

### Features[​](#3103-features "Direct link to Features")

#### Plugins[​](#3103-features-plugins "Direct link to Plugins")

* **[AI Cache](https://docs.api7.ai/hub/ai-cache.md)**
  * Added a semantic (L2) cache layer that matches prompts by embedding similarity through RediSearch, in addition to exact-match caching. Streaming LLM responses can now be cached and replayed instead of being bypassed. New Prometheus metrics report cache hits, misses, bypasses, and embedding latency.
* **[AI Aliyun Content Moderation](https://docs.api7.ai/hub/ai-aliyun-content-moderation.md)**
  * Added `request_check_roles` to choose which request roles are moderated (`user`, `tool`, and/or `system`). `user` and `tool` content follow `request_check_mode` (`last` or `all`, default `last`), while `system` content is checked on every request when selected. Long content is now split into chunks in linear time and is multi-byte (UTF-8) safe.
* **[AI AWS Content Moderation](https://docs.api7.ai/hub/ai-aws-content-moderation.md)**
  * Request moderation now runs after AI protocol detection and checks the decoded prompt content that the upstream LLM sees, rather than the raw HTTP JSON envelope. Deny responses are returned in a provider-compatible format, with configurable `check_request`, `deny_code`, and `deny_message`.
* **[IP Restriction](https://docs.api7.ai/hub/ip-restriction.md)**
  * Added a configurable `response_code` (either `403` or `404`, default `403`) returned when a request is blocked, so operators can respond with `404` to avoid revealing whether a resource exists.
* **[File Logger](https://apisix.apache.org/docs/apisix/plugins/file-logger/)**
  * The log file `path` can now be set once in the plugin metadata and shared across routes, instead of being required in every route's plugin configuration. A `path` set in the plugin configuration still takes precedence over the metadata value.
* **Logger plugins**
  * Added `max_req_body_bytes` and `max_resp_body_bytes` to the schemas of **[HTTP Logger](https://docs.api7.ai/hub/http-logger.md)**, **[RocketMQ Logger](https://docs.api7.ai/hub/rocketmq-logger.md)**, **[TCP Logger](https://apisix.apache.org/docs/apisix/plugins/tcp-logger/)**, **Tencent Cloud CLS**, and **[UDP Logger](https://apisix.apache.org/docs/apisix/plugins/udp-logger/)**, so the request/response body size limits (default 524288 bytes) are validated at configuration time and shown in the Dashboard.
* **Rate-limiting plugins**
  * Added Redis connection keepalive settings (`redis_keepalive_timeout` and `redis_keepalive_pool`) for the Redis and Redis Cluster policies in **[Limit Count](https://docs.api7.ai/hub/limit-count.md)**, **[Limit Count Advanced](https://docs.api7.ai/hub/limit-count-advanced.md)**, **[GraphQL Limit Count](https://docs.api7.ai/hub/graphql-limit-count.md)**, and **[AI Rate Limiting](https://docs.api7.ai/hub/ai-rate-limiting.md)**, so operators can tune idle timeout and connection pool size.

#### Data Plane[​](#3103-features-data-plane "Direct link to Data Plane")

* Added `apisix.trusted_addresses`, which controls whether the gateway trusts client-supplied `X-Forwarded-*` and `Forwarded` headers based on the resolved client address.
* Added `apisix.match_uri_encoded_slash`. When enabled, an encoded slash (`%2F`) stays encoded during route matching so it can be treated as part of a path parameter instead of a path separator.
* In standalone YAML mode, environment-variable placeholders are now resolved before YAML parsing. Unquoted placeholders can become native booleans or numbers, while quoted placeholders stay strings, preserving large IDs and token values exactly.

#### Control Plane[​](#3103-features-control-plane "Direct link to Control Plane")

* Added TOTP two-factor authentication for built-in Dashboard users. Users can enroll, enable, disable, and recover 2FA from their account settings, and administrators can reset a user's 2FA state.
* Added login failure restriction for built-in users. Repeated failed logins temporarily lock the user and source IP, emit an audit event, and return a clear lockout message.
* Added the Dashboard UI for two-factor authentication: account setup with QR code and recovery codes, an OTP step during login, and an administrator action to reset a user's 2FA state.
* Updated password forms and generated passwords to use the new 12-character minimum length.

#### Developer Portal[​](#3103-features-developer-portal "Direct link to Developer Portal")

* Added an option to require two-factor authentication. When 2FA is enabled and `twoFactor.required` is set, developers must complete 2FA enrollment before they can access protected pages, and the requirement is enforced both at sign-in and at the proxy layer.

### Fixes[​](#3103-fixes "Direct link to Fixes")

#### Plugins[​](#3103-fixes-plugins "Direct link to Plugins")

* **[AI Proxy](https://docs.api7.ai/hub/ai-proxy.md)** and **[AI Proxy Multi](https://docs.api7.ai/hub/ai-proxy-multi.md)**

  * Fixed issue: Anthropic Messages requests that contained tool results mixed with other content could be converted into an invalid OpenAI Chat message order, causing OpenAI-compatible upstreams to reject every later request in the session. Tool messages are now emitted immediately after the assistant tool-call message, and adjacent text or media is preserved in a following user message. Several other Anthropic-to-OpenAI conversion details were aligned with LiteLLM-compatible behavior, including tool name sanitization, long tool-name collision handling, adaptive thinking effort, structured-output schema extraction, empty array encoding, and content block shaping.
  * Fixed issue: Structured chat content could reach downstream AI plugins as a table and cause request processing errors. Protocol adapters now flatten text content consistently before AI guard and cache plugins consume it.

* **[AI Lakera Guard](https://docs.api7.ai/hub/ai-lakera-guard.md)**
  * Fixed issue: In streaming responses with `action: alert` and `fail_open: false`, a Lakera API error or timeout could let the streamed response through instead of failing closed. Lakera errors are now handled according to `fail_open`, so a strict configuration blocks the response.

* **[AI AWS Content Moderation](https://docs.api7.ai/hub/ai-aws-content-moderation.md)** and **[AI Aliyun Content Moderation](https://docs.api7.ai/hub/ai-aliyun-content-moderation.md)**
  * Fixed issue: `deny_code` accepted arbitrary numbers. It is now validated as an integer HTTP status code in the `200`–`599` range (default `200`), so an out-of-range value is rejected at configuration time.

* **[AI Aliyun Content Moderation](https://docs.api7.ai/hub/ai-aliyun-content-moderation.md)**
  * Fixed issue: Returning `ngx.OK` from the body filter could interrupt later body-filter processing. The plugin now returns normally so other filters can continue.

* **[AI Rate Limiting](https://docs.api7.ai/hub/ai-rate-limiting.md)**
  * Fixed issue: Some configured Redis fields were dropped and replaced with defaults — `redis_username`/`redis_password` for the redis-sentinel policy and `redis_keepalive_timeout`/`redis_keepalive_pool` for the redis and redis-cluster policies. All configured Redis fields are now forwarded.

* **[gRPC Transcode](https://docs.api7.ai/hub/grpc-transcode.md)**
  * Fixed issue: Empty protobuf `repeated` fields were encoded as `{}` instead of JSON arrays (`[]`). Empty repeated fields now appear as arrays, including nested and descriptor-set based messages.

* **[Key Auth](https://docs.api7.ai/hub/key-auth.md)** and other consumer authentication plugins
  <!-- -->
  * Fixed issue: If a consumer credential referenced a secret that could not be resolved, the Data Plane could still index the unresolved literal value and authenticate requests with it. Consumer authentication now fails closed when a referenced secret cannot be resolved.

* **Secret references**
  * Fixed issue: Updates or deletions of `/secrets` configuration did not invalidate the secret LRU cache, so old secret values could continue to be used until cache expiry or indefinitely. Secret references are now re-resolved after secret configuration changes.

* **[Proxy Rewrite](https://docs.api7.ai/hub/proxy-rewrite.md)**
  * Fixed issue: With `use_real_request_uri_unsafe` and `uri` configured together, the request query string was dropped during URI rewriting. The original query string is now preserved and correctly merged when the rewritten URI already contains a query.

* **[Loggly](https://apisix.apache.org/docs/apisix/plugins/loggly/)**
  * Fixed issue: Batched Loggly entries from different routes could use the wrong token or tags because the async handler reused the latest route configuration. Each batch processor now keeps its own route configuration.

* **[Datadog](https://docs.api7.ai/hub/datadog.md)**
  * Fixed issue: Large coalesced DogStatsD datagrams could exceed the common 8192-byte agent buffer and be silently truncated. The plugin now coalesces only when the payload fits, otherwise it falls back to one datagram per metric.

* **[Zipkin](https://docs.api7.ai/hub/zipkin.md)**
  * Fixed issue: Requests explicitly marked as unsampled still built full span tag tables and access-phase child spans. Unsampled requests now skip that extra tracing work while preserving trace propagation.

* **[OpenTelemetry](https://docs.api7.ai/hub/opentelemetry.md)**

  * Fixed issue: Updating OpenTelemetry plugin metadata at runtime did not rebuild the tracer used for injected core spans, so those spans could keep using stale collector or resource settings until worker recycle. The tracer now refreshes when metadata changes.
  * Fixed issue: `additional_attributes` were evaluated before log-phase variables were populated, so attributes that depend on final request state could be missing or stale. They are now evaluated in the log phase.
  * Fixed issue: With `trace_id_source` set to `x-request-id`, an `X-Request-Id` value that is not valid hexadecimal (for example a UUID), or a duplicated header, could return `HTTP 500`. The value is now validated and the plugin falls back to a random valid trace ID when it cannot be used.
  * Fixed issue: The plugin metadata schema accepted non-scalar values for `resource` attributes and `collector.request_headers`, which were then silently dropped at runtime. Such values are now rejected at configuration time.

* **[OpenID Connect](https://docs.api7.ai/hub/openid-connect.md)**
  * Fixed issue: `refresh_session_interval` incorrectly defaulted to `900`, enabling silent re-authentication even when users did not configure it. The default is removed (see Upgrade Notes).

* **[MQTT Proxy](https://docs.api7.ai/hub/mqtt-proxy.md)**
  * Fixed issue: `protocol_name` was required even though the standard default is `MQTT`. It is now optional and defaults to `MQTT`.

* **[Forward Auth](https://docs.api7.ai/hub/forward-auth.md)**
  * Fixed issue: When `request_method` was `POST`, the authorization request could forward the client's `Transfer-Encoding`, `Content-Length`, and `Expect` headers after the body had already been buffered, producing inconsistent request framing. These client framing headers are no longer copied to the auth service.

* **[Authz CASBIN](https://apisix.apache.org/docs/apisix/plugins/authz-casbin/)**
  * Fixed issue: Routes using different Casbin model or policy shapes could trigger `casbin enforce error` / `invalid request size` after switching between them. The bundled `lua-casbin` dependency is updated to include the enforcement fixes.

* **[Request ID](https://docs.api7.ai/hub/request-id.md)**
  * Fixed issue: Configuring `algorithm: range_id` without the optional range object could return `HTTP 500`. The range object now has a default value.

* **[Workflow](https://docs.api7.ai/hub/workflow.md)**
  * Fixed issue: Workflow action plugins could run `_meta.pre_function` hooks before workflow skipped or executed the action, changing behavior even for actions that should not run. Workflow now decides whether to run the action before executing those meta hooks.

* **[Request Validation](https://docs.api7.ai/hub/request-validation.md)**
  * Fixed issue: A form body whose `Content-Type` carried a charset parameter or different casing (for example `application/x-www-form-urlencoded; charset=utf-8`) was not recognized as form-urlencoded, so it was parsed as JSON and rejected with `HTTP 400`. Such content types are now recognized and validated as form bodies.

#### Data Plane[​](#3103-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: Log rotation could leave some log files open after only part of the file set was rotated. The gateway now reopens logs correctly after partial rotation.
* Fixed issue: When the configuration source reported a smaller revision than the gateway had already seen (for example after the Control Plane database was restored to an earlier state), the gateway could keep serving stale configuration until a worker restart. It now forces a full configuration resync when a smaller revision is observed.
* Fixed issue: A plugin attached through a global rule or a consumer (such as `ai-proxy-multi`) could fail with `HTTP 5xx` because the gateway could not fetch the plugin's parent configuration at request time. All plugin-bearing resource types are now resolved correctly.
* Fixed issue: With `client-control` configured with `max_body_size: 0` (no limit), a chunked request body could still be rejected with `HTTP 413`. A `max_body_size` of `0` now correctly disables the size check for chunked requests.

#### Control Plane[​](#3103-fixes-control-plane "Direct link to Control Plane")

* Fixed issue: Gateway instances could be marked **OutOfSync** for a short window immediately after a configuration revision changed, before the next heartbeat reported the new revision. A grace period now keeps recently heartbeating instances **Healthy** during that normal synchronization window.
* Fixed issue: Compatibility reports were capped at 200 unordered items, so large reports could hide errors and differ between gateway instances. The Control Plane now stores the full sorted report and computes compatibility from all items.
* Fixed issue: A secret provider request body could match a different provider type than the provider named in the URL path, causing the Data Plane to discard or misread the stored secret. The Control Plane now validates the body against the selected provider type.
* Fixed issue: The Control Plane accepted some core resource configurations that the Data Plane silently discarded, including invalid TLS, filter, and IP match configurations. These are now rejected by validation before publishing.
* Fixed issue: Plugin configurations on the runtime services endpoint were not validated, so a service with an invalid plugin configuration was accepted and then silently discarded by the Data Plane. Service plugin configurations are now validated and rejected with `HTTP 400` when invalid.
* Fixed issue: IPv6 upstream node hosts were rejected by the OpenAPI schema. IPv6 hosts are now accepted.
* Fixed issue: Batch `ssls` validation used the SNI schema instead of the SSL schema, so entries without required certificate fields could pass validation. Batch SSL validation now uses the correct schema.
* Fixed issue: Audit log export returned only the first 256 rows. Exports now include all matching audit logs.
* Fixed issue: Credential lookup indexes could be dropped by components that do not run database migration, and some startup schema repairs rebuilt current indexes unnecessarily. Schema repair now keeps current indexes and repairs only stale shapes.
* Fixed issue: Heartbeat and instance status queries could become slow on large deployments. Additional indexes and Go-side status computation improve these lookups.

## 3.10.2[​](#3102 "Direct link to 3.10.2")

**Release Date**: 2026-06-29

### Upgrade Notes[​](#3102-upgrade-notes "Direct link to Upgrade Notes")

Upgrade note — additional plugin secret fields are encrypted at rest

The Control Plane now encrypts additional credential-bearing plugin fields at rest. Because API7 EE upgrades the Control Plane before the Data Plane, during the upgrade window a 3.10.2 Control Plane encrypts these fields while an older 3.10.1 Data Plane cannot decrypt them, which can cause the affected plugins to fail until the Data Plane is also upgraded.

The newly encrypted fields, by plugin, are:

* **limit-count**, **limit-count-advanced**, and **graphql-limit-count**: `redis_password`, `sentinel_password`
* **limit-conn**: `redis_password`
* **limit-req**: `redis_password`
* **ai-rate-limiting**: `redis_password`, `sentinel_password`
* **elasticsearch-logger**: `headers` (the custom authentication headers)
* **openid-connect**: `session.redis.password`
* **ai-cache**: `redis_password`
* **ai-lakera-guard**: `api_key`

If you use any of these plugins with the listed fields, upgrade the Data Plane to 3.10.2 promptly after the Control Plane, and avoid editing those plugins until both sides are on 3.10.2.

Upgrade note — hmac-auth default request body limit raised to 64 MiB

When `hmac-auth` has `validate_request_body` enabled, the default `max_req_body_size` is now `67108864` bytes (64 MiB), aligned with Apache APISIX. In 3.10.1 this default was `524288` bytes (512 KiB), which rejected request bodies between 512 KiB and 64 MiB with `HTTP 413`. After upgrading, such requests are accepted by default. If you relied on the lower limit, set `max_req_body_size` explicitly to restore it.

Upgrade note — Developer Portal signup consent configuration changed

The Developer Portal signup consent is now configured with a single `signUpConsentLabel` option (an HTML snippet rendered next to the consent checkbox), and the consent check is enforced only when a label is configured. The previous `tosURL` and `beforeSignUpButtonHtml` options have been removed. If your portal configuration sets either of those keys, move the content to `signUpConsentLabel` before upgrading; otherwise the signup consent text will no longer be shown.

### Features[​](#3102-features "Direct link to Features")

#### Plugins[​](#3102-features-plugins "Direct link to Plugins")

* **[AI Cache](https://docs.api7.ai/hub/ai-cache.md)** (new plugin)
  <!-- -->
  * Caches LLM responses so that identical requests are served from a cache instead of calling the upstream model again. Exact-match caching is keyed on the normalized request body and stored in Redis; a cache hit returns the stored response with the headers `X-AI-Cache-Status: HIT` and `X-AI-Cache-Age`. Streaming requests are bypassed (`X-AI-Cache-Status: BYPASS`).
* **[AI Lakera Guard](https://docs.api7.ai/hub/ai-lakera-guard.md)** (new plugin)
  <!-- -->
  * Screens AI traffic through the Lakera Guard API to detect prompt injection and other unsafe content. The `direction` option (`input`, `output`, or `both`) selects whether the plugin scans the request prompt, the LLM response (including streaming responses), or both. Flagged traffic is blocked with a configurable `deny_code`, or only logged when `action` is set to `alert`.
* **[AI Aliyun Content Moderation](https://docs.api7.ai/hub/ai-aliyun-content-moderation.md)**
  * Added `request_check_mode` (`last` or `all`, default `last`) to control how much of a multi-turn conversation is moderated: `last` checks only the final user turn, while `all` checks every user turn. Only `user`-role content is moderated; `system` and `assistant` content is ignored. Long content is now split into chunks in linear time and is multi-byte (UTF-8) safe.
* **[AI Proxy](https://docs.api7.ai/hub/ai-proxy.md)**
  * The structured `llm_summary` object emitted to logger plugins (when `logging.summaries` is enabled) now includes additional AI observability fields: `stream`, `tool_count`, `has_tool_calls`, `end_user_id`, `cache_read_input_tokens`, `cache_creation_input_tokens`, and `reasoning_tokens`.
* **[Elasticsearch Logger](https://docs.api7.ai/hub/elasticsearch-logger.md)**
  * Added support for authenticating to Elasticsearch with custom request headers via the `headers` option (for example, an `Authorization: Bearer <token>` or an API-key header), as an alternative to basic `auth`.
* **[OpenID Connect](https://docs.api7.ai/hub/openid-connect.md)**
  * Added Redis as a session storage backend. Set `session.storage` to `redis` and configure `session.redis` (host, port, and related options) to store sessions in Redis instead of in the session cookie; `cookie` remains the default.

#### Data Plane[​](#3102-features-data-plane "Direct link to Data Plane")

* Added `log_format_extra`, an additive log format for logger plugins that **adds** fields to the default rich log format instead of replacing it (as `log_format` does). A new variable, `$upstream_unresolved_host`, records the configured upstream host before DNS resolution. `log_format_extra` can be set globally through plugin metadata or per route.
* Added per-port PROXY protocol control for the stream (L4) TCP proxy. Each `stream_proxy.tcp` entry can independently enable receiving the PROXY protocol (`proxy_protocol`) and sending it to the upstream (`proxy_protocol_to_upstream`), overriding the global defaults.
* Added the `max_post_args_readable_size` configuration option (default 64 MiB) that bounds how much of a request body is read when matching `post_arg.*` route predicates on JSON and multipart requests. Set it to `0` to disable the limit.
* Debug sessions now capture each request's logs as OpenTelemetry span events on the request's root span, so per-request logs are available in the trace without an external log collector.

#### Control Plane[​](#3102-features-control-plane "Direct link to Control Plane")

* Added an **RPM install method** for the Data Plane, alongside the existing Docker and Helm options. The Dashboard's gateway-group deployment page has a new **RPM** tab; after the `api7-gateway` RPM is installed on an air-gapped host, the generated offline script provisions the gateway-group client certificate, writes the gateway configuration, and joins the instance to the Control Plane.

#### Developer Portal[​](#3102-features-developer-portal "Direct link to Developer Portal")

* **Disable the API Hub**: operators can turn the API Hub off entirely with the `apiHub.enabled` configuration flag. When disabled, the API Hub link is hidden from the navigation, API Hub pages return not-found, and API Hub URLs are removed from the sitemap.
* **Require email verification**: signup and sign-in can be configured to require developers to verify their email address before authentication completes.
* **Custom PostgreSQL schema**: the portal can be deployed into a custom PostgreSQL schema instead of `public`, applying the schema's `search_path` per connection and running schema-scoped migrations.
* **Organization management for platform admins**: the admin Organizations page can now take over an organization (becoming its owner) or delete an organization, in addition to the existing user-management actions.
* **Documentation Markdown and LLM endpoints**: the in-portal documentation site now exposes Markdown and LLM-friendly text endpoints for use by AI tooling, and individual documentation pages can be excluded from those endpoints while remaining readable in the docs UI.

### Fixes[​](#3102-fixes "Direct link to Fixes")

#### Plugins[​](#3102-fixes-plugins "Direct link to Plugins")

* **[AI Proxy](https://docs.api7.ai/hub/ai-proxy.md)**

  * Fixed issue: When the upstream returned a tool call whose `arguments` were not valid JSON, the entire response conversion was aborted and the client received nothing. The malformed tool call now falls back to an empty argument object, and the rest of the response (including any text content) is preserved.
  * Fixed issue: A request that carried `tool_choice` but had no usable `tools` (for example, only a built-in tool that is dropped during conversion) was forwarded with the orphan `tool_choice` and rejected by the upstream. Such a `tool_choice` (and `parallel_tool_calls`) is now removed. Separately, a streaming Anthropic request whose upstream omitted the final completion chunk no longer hangs the client until timeout — the stream is now terminated correctly.
  * Fixed issue: When the upstream LLM returned an error status (such as `HTTP 429` or `5xx`), the error response body was discarded and the client received an empty body. The upstream error body and content type are now preserved, including across `ai-proxy-multi` fallback.

* **[AI Proxy Multi](https://docs.api7.ai/hub/ai-proxy-multi.md)**
  * Fixed issue: A failure while constructing the working instance pool could raise a Lua error and destructively clear pool state. The failure path is now nil-safe and non-destructive.

* **[Limit Count](https://docs.api7.ai/hub/limit-count.md)**

  * Fixed issue: When `count` or `time_window` was resolved from a variable, an invalid value (non-integer, zero or negative, or beyond the safe integer range) was silently ignored, which could disable the rate limit entirely. Such values are now validated and rejected, closing a rate-limit bypass.
  * Fixed issue: With the Redis policy and sliding-window counting, the check-and-increment was not atomic, so concurrent requests could exceed the configured limit. Counting is now performed atomically with a Redis script.

* **[Limit Request](https://docs.api7.ai/hub/limit-req.md)**
  * Fixed issue: The rate-limit counter was keyed so that a limit attached to a shared resource (such as a Consumer) counted each route separately instead of sharing one bucket. The counter is now keyed by the parent resource, so a Consumer-level limit is enforced across all of the Consumer's routes.

* **[HMAC Auth](https://docs.api7.ai/hub/hmac-auth.md)**
  * Fixed issue: When `validate_request_body` was enabled and a request body exceeded `max_req_body_size`, the request was rejected with a misleading `HTTP 401`. It is now rejected with `HTTP 413`. The default `max_req_body_size` was also raised to 64 MiB (see Upgrade Notes).

* **[Attach Consumer Label](https://docs.api7.ai/hub/attach-consumer-label.md)**
  * Fixed issue: A client could spoof a configured header when the matched Consumer had no labels, because the plugin overwrote the header only when a label value was present. Configured headers are now always stripped from the client request, even when the Consumer has no matching label.

* **Redirect**
  * Fixed issue: `http_to_https` only redirected requests whose scheme was exactly `http`, so a request arriving with a non-HTTP, non-HTTPS scheme (for example, via a spoofed `X-Forwarded-Proto`) was not redirected. It now redirects every non-HTTPS scheme.

* **[Response Rewrite](https://docs.api7.ai/hub/response-rewrite.md)**
  * Fixed issue: When the upstream response was compressed (gzip or brotli), `filters` were applied to the compressed bytes and did not match, producing a corrupted body. The response is now decoded before filters run.

* **Batch Requests**
  * Fixed issue: When a pipelined sub-request timed out, the response array could contain more entries than there were sub-requests (an extra empty object). The number of sub-responses now always matches the number of sub-requests.

* **[Loki Logger](https://docs.api7.ai/hub/loki-logger.md)**
  * Fixed issue: Log labels resolved from variables were written back to the shared plugin configuration, so the first request's values were frozen and reused for all subsequent requests. Labels are now resolved per request.

* **Tencent Cloud CLS**
  * Fixed issue: With `include_req_body` enabled, the request body was not captured because it was not read in the access phase. The body is now read so that it is included in the uploaded logs.

* **[Authz Keycloak](https://docs.api7.ai/hub/authz-keycloak.md)**
  * Fixed issue: With `lazy_load_paths` enabled, the request query string was included when resolving the Keycloak resource by URI, so requests with query parameters failed to match a resource and were denied. The query string is now stripped before resolution.

* **CAS Auth**
  * Fixed issue: The CAS single-logout (SLO) callback `POST` was proxied to the upstream instead of being handled by the plugin. The callback is now terminated by the plugin and is no longer forwarded upstream.

* **[gRPC Web](https://docs.api7.ai/hub/grpc-web.md)**
  * Fixed issue: A debug log statement wrote the decoded request body to the error log. The statement has been removed so request payloads are no longer leaked into logs.

#### Data Plane[​](#3102-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: Resolving a dotted context variable in a log format (such as `$consumer.username` or `$llm_summary.model`) raised an error and dropped the log line when the parent object was absent (for example, an unauthenticated request that has no consumer). The missing value is now handled gracefully.
* Fixed issue: After a transient DNS or service-discovery failure, a domain-name upstream could remain stuck returning `HTTP 503` even after the name resolved again. The upstream now recovers once resolution succeeds.
* Fixed issue: When a node's health changed, the consistent-hash (chash) ring was rebuilt against the healthy subset, remapping keys that belonged to healthy nodes. The ring is now kept stable so that only keys of the failed node are remapped.
* Fixed issue: Environment-variable substitution in configuration directives could match the wrong variable when one variable name was a prefix of another. Names are now resolved exactly.
* Fixed issue: Upgraded the Prometheus metrics library (`nginx-lua-prometheus-api7` to `0.20260623`) to remove duplicate metric series that could cause a scrape to be rejected.

#### Control Plane[​](#3102-fixes-control-plane "Direct link to Control Plane")

* Fixed issue: A Data Plane running the latest gateway version was marked **Incompatible** when its configuration report contained errors. A latest-version Data Plane now stays **Compatible**, and the configuration errors are still surfaced in the compatibility report summary.

#### Developer Portal[​](#3102-fixes-developer-portal "Direct link to Developer Portal")

* Fixed issue: Enabling or disabling two-factor authentication did not actually verify the account password, the backup-codes dialog could appear empty, and entering a wrong TOTP code at sign-in navigated to the home page instead of showing an error. Password verification, backup-code display, and TOTP error handling now work correctly.
* Fixed issue: An email-domain SSO policy was enforced only in the UI, so direct calls to the authentication endpoints could bypass it. The policy is now enforced on the server, so password sign-in, magic-link, and password-reset requests are rejected for domains that are required to use SSO.

## 3.10.1[​](#3101 "Direct link to 3.10.1")

**Release Date**: 2026-06-15

### Breaking Changes[​](#3101-breaking-changes "Direct link to Breaking Changes")

#### Plugins[​](#3101-breaking-changes-plugins "Direct link to Plugins")

* **[JWT Auth](https://docs.api7.ai/hub/jwt-auth.md)**

  Upgrade note

  `jwt-auth` now checks a token's `exp` (expiration) and `nbf` (not-before) claims when they are present, including when `claims_to_verify` is unset or an empty list. Previously, an unset or empty list on the route or service accepted any correctly signed token, **including expired ones**. After the Data Plane is upgraded, a present `exp` or `nbf` that is expired, not yet valid, or not a number is rejected with `HTTP 401`. With the list unset or empty, a token may omit either claim.

  Set `claims_to_verify` on the route or service's `jwt-auth` configuration. For clients that always send `exp` and omit `nbf`, set `claims_to_verify: ["exp"]` to require a valid expiration. An explicit list validates only the claims it names.

* **Batch Requests**

  Upgrade note

  The `batch-requests` plugin now bounds the size of a batch. The number of pipelined sub-requests is limited by a new `max_pipeline_items` plugin-metadata option (default `1000`); a batch that exceeds the limit is rejected with `HTTP 400`. Pipeline entries that contain fields other than the documented ones are now rejected, and the per-batch `timeout` must be at least `1` millisecond.

  If you send batches larger than 1000 sub-requests, raise `max_pipeline_items` in the plugin metadata. If your clients send entries with undocumented fields, remove them before upgrading.

### Upgrade Notes[​](#3101-upgrade-notes "Direct link to Upgrade Notes")

Upgrade note — additional plugin secret fields are encrypted at rest

The Control Plane now encrypts additional credential-bearing plugin fields at rest. Because API7 EE upgrades the Control Plane before the Data Plane, during the upgrade window a 3.10.1 Control Plane encrypts these fields while an older 3.10.0 Data Plane cannot decrypt them, which can cause the affected plugins to fail until the Data Plane is also upgraded.

The newly encrypted fields, by plugin, are:

* **http-logger**: `auth_header`
* **kafka-logger**: `brokers.sasl_config.password`
* **splunk-hec-logging**: `endpoint.token`
* **loggly**: `customer_token`
* **openfunction**: `authorization.service_token`
* **azure-functions**: `authorization.apikey`, and the plugin-metadata `master_apikey`
* **ai-aws-content-moderation**: `comprehend.secret_access_key`
* **openid-connect**: `session.secret`
* **error-log-logger** (plugin metadata): `kafka.brokers.sasl_config.password`

If you use any of these plugins with the listed fields, upgrade the Data Plane to 3.10.1 promptly after the Control Plane, and avoid editing those plugins until both sides are on 3.10.1.

Upgrade note — limit-count now includes the advanced rate-limiting features

All features that were previously exclusive to `limit-count-advanced` — the `redis-sentinel` policy, sliding-window counting, multiple independent limits in one configuration (`rules`), dynamic `count` and `time_window` from NGINX variables, and delayed Redis synchronization (`sync_interval`) — are now built into the `limit-count` plugin. Existing `limit-count-advanced` configurations continue to work unchanged (the plugin is retained as a thin wrapper), so no configuration migration is required.

One upgrade-time effect: for Redis-backed policies, the counter storage format changed and counter keys are now versioned. Existing counters are not migrated — they expire on their own TTL — so rate-limit counters reset once at the moment of upgrade. (The `local` policy already resets on restart.) Expect a brief counter-reset window; no action is required.

Upgrade note — request body size limits added to several plugins

To bound memory usage, several plugins now reject over-large request bodies before buffering them:

* **hmac-auth**: when `validate_request_body` is enabled, the body is limited by a new `max_req_body_size` option (default `524288` bytes, i.e. 512 KiB).
* **forward-auth**, **ai-proxy**, **ai-proxy-multi**: the body is limited by a new `max_req_body_size` option (default `67108864` bytes, i.e. 64 MiB); requests over the limit are rejected with `HTTP 413`.

These defaults are above the NGINX default `client_max_body_size` (1 MiB), so most deployments are unaffected. If you legitimately handle larger bodies on routes that use these plugins (and have raised `client_max_body_size` accordingly), raise `max_req_body_size` to match.

Upgrade note — Developer Portal credential secrets are shown only once

In the Developer Portal, the key-auth `key` and basic-auth `password` of a credential are now returned **only once**, when the credential is created or regenerated. They are no longer included in credential read or list responses, matching the existing behavior of the OAuth `client_secret`. Basic-auth usernames remain visible.

Copy and store the secret when it is first shown. If a secret is lost, regenerate the credential to obtain a new value. Any integration that read these secrets back from the credential read or list API must be updated to capture them at creation time.

Upgrade note — Prometheus TTFT metric replaced by a label

The standalone `apisix_llm_ttft` metric has been replaced by `apisix_llm_latency{type="ttft"}`, mirroring the structure of `apisix_http_latency`. If you have Prometheus queries or Grafana dashboards that reference `apisix_llm_ttft`, update them to select the `ttft` value of the `type` label on `apisix_llm_latency`.

### Features[​](#3101-features "Direct link to Features")

#### Plugins[​](#3101-features-plugins "Direct link to Plugins")

* **[Limit Count](https://docs.api7.ai/hub/limit-count.md)**
  * The advanced rate-limiting capabilities formerly provided only by `limit-count-advanced` are now available directly in `limit-count`: the `redis-sentinel` policy, sliding-window counting (`window_type` set to `sliding`), multiple independent limits in a single configuration (`rules`), `count` and `time_window` driven by NGINX variables (for example, per-consumer dynamic quotas), and delayed Redis synchronization (`sync_interval`).

* **AI content security plugins** (`ai-aliyun-content-moderation`, `ai-aws-content-moderation`, `ai-prompt-guard`)
  <!-- -->
  * Added a `fail_mode` option (`skip`, `warn`, or `error`; default `skip`) that controls how the plugin handles non-AI or non-JSON requests when it is bound at the Consumer level. With `skip`, such requests pass through unchecked; `warn` additionally logs a warning; `error` rejects them. This avoids errors when a Consumer-bound moderation plugin receives ordinary, non-AI traffic.

* **[AI Proxy](https://docs.api7.ai/hub/ai-proxy.md)**
  * Added built-in NGINX variables that describe each LLM request, for use in `access_log` formats and logger plugins: `$llm_total_tokens`, `$llm_stream`, `$llm_has_tool_calls`, `$llm_tool_count`, `$llm_end_user_id`, `$llm_cache_read_input_tokens`, `$llm_cache_creation_input_tokens`, and `$llm_reasoning_tokens`. Values are mapped for OpenAI (Chat and Responses), Anthropic, and DeepSeek.

* **[Prometheus](https://docs.api7.ai/hub/prometheus.md)**

  * Added LLM observability metrics: per-request prompt-token and completion-token distribution histograms (`apisix_llm_prompt_tokens_dist`, `apisix_llm_completion_tokens_dist`), a total-latency histogram, and time-to-first-token exposed as `apisix_llm_latency{type="ttft"}` for streaming requests. Histogram buckets are configurable via `plugin_attr.prometheus`.
  * Added `mcp_request_type` and `mcp_tool_name` labels to the `http_status`, `http_latency`, and `bandwidth` metrics, so MCP (Model Context Protocol) traffic can be broken down by request type (`tools/list` or `tools/call`) and by tool name. Both labels can be turned off via `disabled_labels`.
  * Reduced per-request overhead in the metrics logging phase by caching the disabled-labels map instead of rebuilding it on every request.

* **[AI Proxy Multi](https://docs.api7.ai/hub/ai-proxy-multi.md)**
  * Added `max_retries` and `retry_on_failure_within_ms` to the fallback mechanism. `max_retries` caps how many additional instances a request retries after a failure; `retry_on_failure_within_ms` only falls back when the upstream failed within the given time, so slow failures are returned to the client instead of being retried (avoiding doubled latency on long-running LLM requests).

* **[OpenID Connect](https://docs.api7.ai/hub/openid-connect.md)**

  * Exposed the `lua-resty-session` options under `session` (cookie name, path, domain, `secure`, `http_only`, `same_site`, and the idling, rolling, and absolute timeouts), so you can customize the session cookie name and set session lifetimes that take effect. The legacy `session.cookie.lifetime` is deprecated but still honored (mapped to `absolute_timeout`).
  * `client_secret` is now optional for flows that only verify tokens locally and never call the identity provider (`bearer_only` with `public_key` or `use_jwks`, `private_key_jwt`, and public-client PKCE). It remains required for session/callback and introspection flows.

* **[Kafka Logger](https://docs.api7.ai/hub/kafka-logger.md)**
  * Added an `api_version` option (`0`, `1`, or `2`; default `1`) for the Kafka produce protocol. Set `api_version` to `2` so that brokers record the real message timestamp (Kafka 0.10 and later); the default `1` preserves wire compatibility.

#### Developer Portal[​](#3101-features-developer-portal "Direct link to Developer Portal")

* **Two-factor authentication**: developers can secure their account with a TOTP authenticator app. 2FA is enabled from the account security settings (confirm password, scan the QR code) and can be disabled there; sign-in then prompts for a six-digit code.
* **Dark mode**: the portal supports light, dark, and system themes with a toggle in the header, applied across the UI, the API-usage chart, and the docs site, and persisted across visits.
* **Platform-admin console**: an admin area (restricted to the configured admin users) adds a **Users** page to list, search, and paginate portal users, change a user's role, ban or unban, and delete users; the **Organizations** page can be filtered by user membership.
* **Approvals in the Developer Portal**: platform admins can review and act on developer-registration and API-product subscription requests from a new **Approvals** page in the portal. Approvals share a single source of truth with the Dashboard, and the acting admin's identity is recorded with each decision (the Dashboard's Approvals list now shows the real admin name for decisions made in the portal).
* **Policy-based SSO sign-in**: sign-in routes each user to the correct method (credentials, magic link, or SSO) based on the email entered. Administrators can map email domains to SSO providers, including anchored, case-insensitive regular-expression patterns, so one rule can cover many domains.
* **In-portal documentation site**: the portal now hosts a Markdown documentation site at `/docs`, themed to match the portal, with a collapsible sidebar, table of contents, code-copy buttons, a "Copy page" menu, and built-in full-text search with highlighted result snippets.
* **Signup Terms of Service**: new users must accept a Terms of Service agreement to complete signup; the ToS URL is configurable.
* **Simplified organization creation**: the "Create organization" dialog no longer asks for a slug — the identifier is assigned automatically from the name.

### Fixes[​](#3101-fixes "Direct link to Fixes")

#### Plugins[​](#3101-fixes-plugins "Direct link to Plugins")

* **[JWT Auth](https://docs.api7.ai/hub/jwt-auth.md)**
  * Fixed issue: A token whose signature was malformed (wrong length or not valid base64url) caused the verifier to raise an error and return `HTTP 500` instead of rejecting the request. Malformed signatures are now rejected with `HTTP 401`.

* **[AI Proxy](https://docs.api7.ai/hub/ai-proxy.md)**

  * Fixed issue: In passthrough mode, the upstream request was always sent as `POST` and the client's query string was dropped, breaking providers that require query parameters on other methods (for example, Azure OpenAI's `?api-version=`). The client's method and query string are now forwarded.
  * Fixed issue: A timeout while reaching an upstream LLM (such as a DNS-resolution timeout) returned `HTTP 500` instead of `HTTP 504`. Upstream LLM timeouts now correctly return `HTTP 504`.

* **[AI Proxy Multi](https://docs.api7.ai/hub/ai-proxy-multi.md)**
  * Fixed issue: After per-instance health checkers were created, the cached server picker was not rebuilt, so a worker could keep routing part of its traffic to instances already marked unhealthy; active health-check probes could also corrupt the probe path for instances configured with `auth.query` or `auth.header`. Both issues are fixed, so failover and health checking work as configured.

* **[Graphql Proxy Cache](https://docs.api7.ai/hub/graphql-proxy-cache.md)**
  * Fixed issue: After `Vary` support was added to the in-memory cache, a `PURGE` request cleared only the legacy cache slot and left the per-`Vary` variants cached, so stale responses were still served until their TTL expired. `PURGE` now clears all variants.

* **[Body Transformer](https://docs.api7.ai/hub/body-transformer.md)**
  * Fixed issue: The XML-to-JSON transform intermittently dropped namespaced keys on some worker processes, causing SOAP transforms to fail with `attempt to index field 'Body' (a nil value)`. Namespaced keys are now always preserved. Malformed multipart input now returns `HTTP 400` instead of `HTTP 500`.

* **[Kafka Logger](https://docs.api7.ai/hub/kafka-logger.md)**
  * Fixed issue: Messages were stored by brokers with no usable timestamp (rendered as 1970-01-01) because the Kafka produce API version could not be configured. Setting the new `api_version` to `2` makes brokers record the real timestamp.

* **[Elasticsearch Logger](https://docs.api7.ai/hub/elasticsearch-logger.md)**
  * Fixed issue: A dynamic index name using certain `{time_format}` placeholders could produce a corrupted index name. Invalid time formats now fall back to an empty value (with a log message) instead of corrupting the index name.

* **[AWS Lambda](https://docs.api7.ai/hub/aws-lambda.md)**
  * Fixed issue: With IAM (SigV4) authentication, requests whose query string contained characters that need escaping, multiple values, or valueless keys produced a signature mismatch (`InvalidSignatureException`). The canonical query string is now built per the SigV4 specification.

* **[Proxy Mirror](https://docs.api7.ai/hub/proxy-mirror.md)**
  * Fixed issue: Mirroring a gRPC request sent the internal location name as the request path, so the mirror backend rejected every call with `UNIMPLEMENTED`. The original gRPC method path is now used for the mirrored request.

* **[Request ID](https://docs.api7.ai/hub/request-id.md)**
  * Fixed issue: With `algorithm` set to `nanoid`, the generator produced a high rate of duplicate and malformed IDs and leaked a file descriptor per ID. It is replaced with a CSPRNG-based generator; the ID format is unchanged and IDs are now unique and well-formed.

* **[OPA](https://docs.api7.ai/hub/opa.md)**
  * Fixed issue: With `send_headers_upstream` configured, a header that the OPA server did not return was left with the client-supplied value on the upstream request instead of being cleared. Such headers are now cleared.

* **[SAML Auth](https://docs.api7.ai/hub/saml-auth.md)**
  * Fixed issue: Debug logging was unintentionally left enabled, and an authentication failure could pass the request through instead of returning an error. Debug mode is now off, and authentication failures return an explicit error.

* **[CORS](https://docs.api7.ai/hub/cors.md)**
  * Fixed issue: A request with no `Origin` header returned `HTTP 500` when `allow_origins_by_regex` was configured. Such requests are now handled without error.

* **[Multi Auth](https://docs.api7.ai/hub/multi-auth.md)**
  * Fixed issue: When an underlying auth plugin returned a status with no error message, the plugin returned `HTTP 500` instead of `HTTP 401`. It now returns `HTTP 401`.

* **DingTalk Auth**
  * Fixed issue: A client could supply a forged `X-Userinfo` header that was forwarded upstream. The plugin now clears any client-supplied `X-Userinfo` header before authentication, so upstream services only receive plugin-verified identity information.

* **Authz Casdoor**
  * Fixed issue: The login session was not bound to the Casdoor token's lifetime and fell back to the session library default, so sessions could outlive their tokens. Sessions now expire when the Casdoor token expires.

* **CAS Auth**
  * Fixed issue: A single-logout `POST` with an empty body returned `HTTP 500` instead of `HTTP 400`. Empty-body logout requests are now rejected with `HTTP 400`.

* **[Limit Conn](https://docs.api7.ai/hub/limit-conn.md)**
  * Fixed issue: A dynamic `burst` value (from an NGINX variable) that resolved to `0` was rejected with `HTTP 500`, even though a static `burst` of `0` is valid. A variable `burst` of `0` is now accepted.

* **[Limit Req](https://docs.api7.ai/hub/limit-req.md)**
  * Fixed issue: Under concurrent load, the Redis-backed rate limit could be exceeded because the read and write were not atomic. Enforcement now uses a single atomic operation.

#### Data Plane[​](#3101-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: Redis connections were pooled by address only, so two plugin configurations pointing at the same Redis server with different databases, credentials, or TLS settings could reuse each other's connections — for example, `limit-count`, `limit-req`, or `limit-conn` counters could be written to the wrong Redis database. Connections are now isolated by address, database, credentials, and TLS settings, including the `redis-sentinel` policy.
* Fixed issue: After `set_header` was called with a different letter case than an existing header, the cached header table kept both entries, so plugins that iterate cached headers (such as `ext-plugin-post-resp`) could forward the stale value upstream. Cached header keys are now normalized.
* Fixed issue: When the `workflow` plugin ran in a global rule and a route plugin completed the request during the rewrite phase (for example, a CORS preflight), the log phase logged an error on every such request. The log phase now exits cleanly when its context is absent.
* Fixed issue: Enabling Nacos service discovery with the stream subsystem aborted the stream worker at startup because a required shared dictionary was not declared in the stream subsystem; it is now declared. A separate error-handling bug that turned a Nacos registry-creation failure into a worker crash is also fixed.
* Fixed issue: With Consul service discovery, a single malformed node entry caused the remaining nodes of the service to be discarded (and could drop the entire service, producing "no valid upstream node"). Only the invalid node is now skipped.
* Fixed issue: Resolving an AWS Secrets Manager reference failed when the secret name contained a slash, because the lookup split the path at the first slash. Secret names containing slashes now resolve correctly.
* Fixed issue: An Admin API `PATCH` re-encrypted already-encrypted plugin fields, so a `PATCH` on any field could corrupt stored secrets (such as `key-auth` keys). Encrypted fields are now decrypted before the merge and re-encrypted exactly once.

#### Developer Portal[​](#3101-fixes-developer-portal "Direct link to Developer Portal")

* Fixed issue: Organization invitations did not honor the email-verification setting. Invitations now follow the configured email-verification behavior.
* Fixed issue: For a developer who belongs to multiple organizations, the portal could use the wrong organization context. The developer identity is now resolved from the active organization.
* Fixed issue: Several dialog widths were inconsistent across the portal; they are now unified.

## 3.10.0[​](#3100 "Direct link to 3.10.0")

**Release Date**: 2026-06-01

### Breaking Changes[​](#3100-breaking-changes "Direct link to Breaking Changes")

#### Plugins[​](#3100-breaking-changes-plugins "Direct link to Plugins")

* **[HMAC Auth](https://docs.api7.ai/hub/hmac-auth.md)**

  Upgrade note

  The `hmac-auth` plugin now defaults `signed_headers` to `["date"]`. After the Data Plane is upgraded, any `hmac-auth` configuration that does not explicitly set `signed_headers` requires the client signature to cover the `Date` header. Clients that were not signing `Date` will start receiving `HTTP 401` with `client request can't be validated`.

  Before upgrading, ensure your clients sign the `Date` header, or set `signed_headers` explicitly in the plugin configuration to match what your clients sign.

#### Control Plane[​](#3100-breaking-changes-control-plane "Direct link to Control Plane")

* **Service Templates and API Publishing removed**

  Upgrade note

  The Service Template / Service Hub model has been removed. Services are now owned directly by gateway groups and managed through the APISIX Admin API — there is no longer a separate template, publish, version, rollback, or runtime-configuration layer. In the Console, the **Service Hub** section is replaced by a **Services** list under each gateway group.

  When the Control Plane is upgraded to 3.10.0, existing service templates and published services are automatically migrated to the new direct-service model. The original data is preserved (not dropped), so the upgrade can be rolled back. IAM permission policies that referenced service-template or published-service ARNs are backed up and rewritten automatically.

#### Developer Portal[​](#3100-breaking-changes-developer-portal "Direct link to Developer Portal")

* **Developer authentication is enforced only for published API products**

  Upgrade note

  Previously, API products in **draft** state also had their developer authentication rules synced to the gateway, so routes belonging to a draft product required developer authentication. Starting in 3.10.0, only **published** API products contribute developer-authentication rules to the data plane.

  After upgrading, routes that belong to a draft (unpublished) API product no longer require developer authentication until the product is published. If you relied on draft products being protected, publish them or restrict access another way.

### Upgrade Notes[​](#3100-upgrade-notes "Direct link to Upgrade Notes")

Upgrade note — Data Plane runtime upgraded to OpenResty 1.29

The Data Plane gateway runtime has been upgraded from OpenResty 1.21.4.4 to OpenResty 1.29.2.4, and now builds on the open-source `apisix-runtime` base. The primary motivation is to pick up the latest upstream **security fixes** in the NGINX core, OpenSSL, LuaJIT, and the bundled libraries by moving across several major versions.

Most deployments require no action. One visible consequence is that HTTP/2 is now enabled with the NGINX 1.25+ `http2 on;` directive instead of the per-`listen` `http2` parameter; HTTP/2 over cleartext (h2c) and over TLS continues to work as before. If you maintain custom NGINX configuration snippets, verify they are compatible with the newer NGINX before upgrading.

Upgrade note — additional plugin secret fields are encrypted at rest

The Control Plane now encrypts additional credential-bearing plugin fields at rest. Because API7 EE upgrades the Control Plane before the Data Plane, during the upgrade window a 3.10.0 Control Plane encrypts these fields while an older 3.9.13 Data Plane cannot decrypt them, which can cause the affected plugins to fail until the Data Plane is also upgraded.

The newly encrypted fields, by plugin, are:

* **feishu-auth**: `secret_fallbacks`
* **dingtalk-auth**: `secret_fallbacks`

If you use any of these plugins with the listed fields, upgrade the Data Plane to 3.10.0 promptly after the Control Plane, and avoid editing those plugins until both sides are on 3.10.0.

### Features[​](#3100-features "Direct link to Features")

#### Plugins[​](#3100-features-plugins "Direct link to Plugins")

* **[AI Proxy](https://docs.api7.ai/hub/ai-proxy.md)**
  * The upstream LLM request body is now JSON-encoded with sorted keys. This produces a stable, byte-identical body for equivalent requests, which improves prompt-cache hit rates on LLM providers that cache by exact request payload.
* **[AI Proxy Multi](https://docs.api7.ai/hub/ai-proxy-multi.md)**
  * When an LLM endpoint domain resolves to multiple A records, the plugin now resolves all of them and builds a multi-node upstream, selecting a node per request for better load distribution and failover. The `Host` header and TLS SNI keep the original domain name rather than the resolved IP address.
* **[Proxy Cache](https://docs.api7.ai/hub/proxy-cache.md)**
  * The in-memory cache strategy now honors the `Vary` response header. Responses are cached per variant computed from the headers listed in `Vary`, and responses with `Vary: *` are not cached.
* **CAS Auth**
  * `cas_callback_uri` now accepts an absolute URL, which is used as-is as the CAS service URL. This is useful when the gateway sits behind a proxy and the externally visible callback URL differs from the request path.

#### Console (Dashboard)[​](#3100-features-console "Direct link to Console (Dashboard)")

* Added a visual editor for permission policy statements. You can now build IAM policies by selecting resource types, actions (annotated with their access level), and conditions, without hand-writing the policy JSON.
* Configuration compatibility warnings now show each affected resource with its full business hierarchy path (for example, gateway group → service → route) instead of a bare resource ID, making it easier to locate the configuration that needs attention.

### Fixes[​](#3100-fixes "Direct link to Fixes")

#### Plugins[​](#3100-fixes-plugins "Direct link to Plugins")

* **[Error Page](https://docs.api7.ai/hub/error-page.md)**
  * Fixed issue: The plugin decided whether to render a custom error page based on the upstream status variable, which could replace error responses that actually came from the upstream service. It now classifies the response source — custom error pages are rendered only for errors generated by the gateway or plugins (such as upstream connection failures or plugin-rejected requests), while genuine error responses returned by the upstream are passed through unchanged so their original body is preserved.
* **Feishu Auth**
  * Fixed issue: A client could supply a forged `X-Userinfo` header that was forwarded upstream. The plugin now clears any client-supplied `X-Userinfo` header before authentication, so upstream services only receive plugin-verified identity information.
* **CAS Auth**
  * Fixed issue: The login callback did not validate the signed initiation cookie, allowing a crafted callback request to drive the post-login redirect (CSRF / open-redirect). The callback now requires a valid signed initiation cookie and is rejected with `HTTP 401` otherwise.
* **DingTalk Auth**
  * Fixed issue: Authentication failures and transient upstream failures were not distinguished. The plugin now returns `HTTP 401` for authentication errors and `HTTP 503` for transient DingTalk or upstream failures, with clearer error messages.
* **Authz Casdoor**
  * Fixed issue: The session cookie name was shared across Casdoor clients, so sessions for different clients could collide. The session cookie is now scoped per client (derived from `client_id`).
* **[Authz Keycloak](https://docs.api7.ai/hub/authz-keycloak.md)**
  * Fixed issue: When static `permissions` were combined with `http_method_as_scope`, the derived method scope was written back to the reused plugin configuration, causing scopes to accumulate across requests. The permission list is now cloned before the method scope is appended.
* **[GraphQL Limit Count](https://docs.api7.ai/hub/graphql-limit-count.md)**
  * Fixed issue: The query nesting depth was miscalculated, making depth-based rate limiting inaccurate. Depth is now computed from the true maximum nesting depth with fragment expansion. Content-Type matching also tolerates a charset parameter (such as `application/json; charset=utf-8`), which was previously rejected.
* **[GraphQL Proxy Cache](https://docs.api7.ai/hub/graphql-proxy-cache.md)**
  * Fixed issue: Requests whose `Content-Type` included a charset parameter were not recognized as GraphQL requests. Content-Type matching is now charset-tolerant, along with additional nil guards, clearer error messages, and corrected log levels.

#### Data Plane[​](#3100-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: When multiple logging plugins captured the response body on the same request (for example, `http-logger` and `file-logger` both with `include_resp_body` enabled), their response-body buffers could interfere with each other, producing truncated or mixed log output. Each logger now uses an isolated buffer.

## 3.9.24[​](#3924 "Direct link to 3.9.24")

**Release Date**: 2026-11-19

### Upgrade Notes[​](#3924-upgrade-notes "Direct link to Upgrade Notes")

Upgrade note — upstream TLS verification error messages

The gateway runtime has been upgraded, and some upstream certificate verification failures are now logged with a different OpenSSL error. For example, when `tls_verify` is enabled and the upstream presents only its own certificate, issued by a CA the gateway does not trust, the error log now reports `verify error: (21:unable to verify the first certificate)` where earlier versions reported `verify error: (20:unable to get local issuer certificate)`.

Apart from the fix for HTTPS upstreams that reference no CA certificate, described under Fixes, which upstream certificates are accepted or rejected is unchanged, and the client still receives `HTTP 502` when verification fails. If you have log-based alerts or searches that match the old message, update them before upgrading.

### Security[​](#3924-security "Direct link to Security")

* Upgraded the gateway runtime to include fixes for the following security vulnerabilities in NGINX:

  <!-- -->

  * [CVE-2026-118899](https://nvd.nist.gov/vuln/detail/CVE-2026-118899): A client sending a request body over TLS 1.3 could put a gateway worker into an infinite loop, using a full CPU core and stalling the other requests handled by that worker.
  * [CVE-2026-123007](https://nvd.nist.gov/vuln/detail/CVE-2026-123007): Memory corruption in HTTP/2 flow control, triggered by the window updates a client sends. HTTP/2 is enabled by default.
  * [CVE-2026-123633](https://nvd.nist.gov/vuln/detail/CVE-2026-123633): Use-after-free in HTTP/2 connection handling.
  * [CVE-2026-1642](https://nvd.nist.gov/vuln/detail/CVE-2026-1642): With an HTTPS upstream, a plain-text response injected before the TLS handshake with the upstream completed could be forwarded to the client as the upstream's response.
  * [CVE-2026-123634](https://nvd.nist.gov/vuln/detail/CVE-2026-123634): Use-after-free in the DNS resolver while processing responses, used when the gateway resolves domain names at request time, for example for the targets of the Proxy Mirror plugin.
  * [CVE-2026-42533](https://nvd.nist.gov/vuln/detail/CVE-2026-42533): Buffer overflow when evaluating variables with regular expression captures, which every request goes through. This also includes the fix for [CVE-2026-93479](https://nvd.nist.gov/vuln/detail/CVE-2026-93479), a defect in the original CVE-2026-42533 patch.
  * [CVE-2026-42945](https://nvd.nist.gov/vuln/detail/CVE-2026-42945): Buffer overflow in URI rewriting, reachable when the Proxy Mirror plugin mirrors gRPC requests.
  * [CVE-2025-23419](https://nvd.nist.gov/vuln/detail/CVE-2025-23419): TLS 1.3 sessions could be resumed under a different SNI, bypassing that SNI's client certificate verification. The gateway already rejected requests on such resumed sessions with `HTTP 400`; the NGINX fix adds a check at the TLS layer.

### Fixes[​](#3924-fixes "Direct link to Fixes")

#### Data Plane[​](#3924-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: An HTTPS upstream with `tls_verify: true` that references no CA certificate in `ca_certificates` failed every request with `HTTP 502` and `upstream SSL certificate verify error: (20:unable to get local issuer certificate)` in the error log, even when its certificate was issued by a CA in the gateway's `apisix.ssl.ssl_trusted_certificate` setting, which defaults to the system CA bundle. The gateway now verifies such an upstream against those CA certificates, and accepts the upstream when it is trusted. For a `grpcs` upstream, keep referencing the issuing CA through `ca_certificates`.

## 3.9.23[​](#3923 "Direct link to 3.9.23")

**Release Date**: 2026-11-10

### Breaking Changes[​](#3923-breaking-changes "Direct link to Breaking Changes")

#### Plugins[​](#3923-breaking-changes-plugins "Direct link to Plugins")

* **[Authz Keycloak](https://docs.api7.ai/hub/authz-keycloak.md)**

  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.

### Upgrade Notes[​](#3923-upgrade-notes "Direct link to Upgrade Notes")

Upgrade note — SNI TLS protocol settings now take effect

The TLS protocol versions stored in the `ssl_protocols` of an SNI were never delivered to the gateway, so every SNI accepted the versions of the gateway's global `apisix.ssl.ssl_protocols` setting whatever it stored: an SNI limited to `TLSv1.3` still completed TLS 1.2 handshakes. The `/apisix/admin/ssls` API ignored the field, stored `TLSv1.2` and `TLSv1.3` on every SNI it wrote, and did not return it. Both APIs now deliver the setting, and the gateway enforces it. The versions of an SNI replace the global setting rather than narrowing it, so an SNI can also allow a version the global setting does not. An SNI without `ssl_protocols` follows the global setting; the SNI API no longer fills in `TLSv1.2` and `TLSv1.3` when the field is omitted, and the field is left out of the responses of both APIs when it is not set. `[]` and lists that repeat a version, which were previously accepted, are now rejected with `HTTP 400`.

When the Control Plane is upgraded, it clears `ssl_protocols` on every SNI that stores `[]`, or only `TLSv1.2` and `TLSv1.3` in any order, repeats included, so that these SNIs keep following the global setting, and it removes repeated versions from the other lists. Every other stored list is delivered to the gateways at once and is enforced from then on, also by gateway instances that have not been upgraded yet. Before upgrading, review the SNIs that store a different list, such as only `TLSv1.3`: a client that connects to them with a version the list does not include will fail the TLS handshake.

In the Dashboard, the edit form of an SNI without `ssl_protocols`, which after the upgrade includes most existing SNIs, cannot be saved until protocols are selected, and saving it stores the selected list on the SNI, which then no longer follows the global setting. To change such an SNI and keep it following the global setting, update it through the API without `ssl_protocols`.

Upgrade note — stricter checks of JSON Web Key Sets in the Control Plane

The Control Plane now rejects some JSON Web Keys that it previously accepted, and a single rejected key makes the whole key set unusable:

* SSO login through OpenID Connect fails when the key set published at the identity provider's `jwks_uri` contains an RSA key whose modulus is longer than 4096 bits or whose exponent `e` is out of range, or an Ed25519 key that is a low-order point, whether or not the identity provider signs with that key.
* When the API Usage service runs with `jwks.enable: true`, which is off by default, it rejects every request that carries a token with `HTTP 401` if the key set at `jwks.url` contains such a key, an Ed25519 key that is not 32 bytes long, or a member encoded in base64url with `=` padding.

Before upgrading, check the key set at the `jwks_uri` of each OpenID Connect identity provider used for SSO, and the key set at `jwks.url` if the API Usage service has JWKS enabled, and make sure that neither contains such keys.

Upgrade note — Control Plane images trust two fewer root certificates

The Control Plane images are now built on a Debian 13 base, whose CA bundle no longer contains the `emSign ECC Root CA - G3` and `AAA Certificate Services` root certificates. A TLS connection that the Control Plane opens, such as to an identity provider, an SMTP server or a webhook, now fails certificate verification when the server certificate chains only to one of these roots. Time zone names under `posix/` are also no longer available, so a `TZ` setting or database time zone that uses such a name must be changed to the name without the prefix. The gateway image is not affected.

### Features[​](#3923-features "Direct link to Features")

#### Control Plane[​](#3923-features-control-plane "Direct link to Control Plane")

* Two-factor authentication can now be required for every built-in user, `admin` included, with a switch under **Organization** > **Settings** > **Login Options** in the Dashboard, or through `/api/system_settings/two_factor_policy`. The switch is off by default, and a built-in user can turn it on only after enabling two-factor authentication for their own account. While it is on, a built-in user without two-factor authentication can still log in with a password, but can then only enable two-factor authentication, which the Dashboard guides them through, or log out; any other request is answered with `HTTP 401` and `two factor enrollment required`. Basic Auth is refused in the same way for such users, and it was already refused for users with two-factor authentication, so it no longer works for any built-in user. Access tokens, Admin API keys and SSO sessions are not covered by the switch. To recover a built-in user who has lost both the authenticator and the recovery codes, `admin` included, run `/usr/local/api7/api7-ee-dashboard two-factor reset --username <name>` in the Dashboard container, for example with `kubectl exec` or `docker exec`, adding `-c <config file>` when the configuration is not at `/app/conf/config.yaml`, as with Docker Compose (`-c /usr/local/api7/conf/conf.yaml`); the command clears the user's two-factor authentication and ends their sessions.
* Setting up and enabling two-factor authentication for one's own account now also works while no valid license is activated. Previously these requests failed with `HTTP 404` or `HTTP 400`, so a user who had to enable two-factor authentication could not do so before a license was uploaded.
* 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`.

### Fixes[​](#3923-fixes "Direct link to Fixes")

#### Plugins[​](#3923-fixes-plugins "Direct link to Plugins")

* **[Forward Auth](https://docs.api7.ai/hub/forward-auth.md)**
  * Fixed issue: With `allow_degradation` set to `true`, when the authorization service could not be reached, a header that the client sent under a name listed in `upstream_headers` was passed to the upstream unchanged, so a client could set a value, such as a user ID, that the upstream takes as coming from the authorization service. Such headers are now removed before the request is forwarded.

#### Data Plane[​](#3923-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: With `apisix.match_uri_encoded_slash` enabled in the gateway configuration, a request could skip the client certificate check of an SNI with mTLS by encoding a slash in its path. The `skip_mtls_uri_regex` patterns were checked against the decoded path, while routes were matched on the path with `%2F` kept inside a segment, so a request for `/public%2Fstatus` was exempted by a pattern such as `^/public/status$` but could be routed to a different route, such as one for `/:resource`, without a client certificate. A request now skips the check only when both forms of its path match a pattern, and such a request without a client certificate is rejected with `HTTP 400`.

#### Control Plane[​](#3923-fixes-control-plane "Direct link to Control Plane")

* Fixed issue: The access log of the Data Plane Manager still recorded the plaintext API key of a Developer Portal credential lookup when the gateway did not send a developer portal ID, as gateway instances of older versions do. The key is now masked as `***` in these entries too.
* Fixed issue: Once the password of a user with two-factor authentication was known, verification codes could be tried without limit, and an accepted code could be used again for as long as it remained valid, including by concurrent requests. After five consecutive wrong verification or recovery codes, the second factor of the user is now locked for 15 minutes, during which every code is refused with `HTTP 400` and `too many failed login attempts, this account is temporarily locked; please try again in about N minute(s)`, the correct one included, and recovery codes are not consumed. Each lock is recorded in the audit log. A code that has already been accepted, or an earlier one, is now refused, so disabling two-factor authentication right after logging in, for example, needs the next code. Wrong codes entered when disabling two-factor authentication count toward the same limit.

#### Console (Dashboard)[​](#3923-fixes-console "Direct link to Console (Dashboard)")

* Fixed issue: The confirmation dialog for deleting an SNI showed an unresolved `{{name}}` placeholder instead of the name of the SNI to type.

## 3.9.22[​](#3922 "Direct link to 3.9.22")

**Release Date**: 2026-10-27

### Upgrade Notes[​](#3922-upgrade-notes "Direct link to 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. 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 set `tls_verify` to `false` where verification is not wanted.

Two Data Plane fixes in this release enforce verification where it was previously skipped, and take effect as soon as a gateway instance is upgraded: `grpcs` upstreams now honor the verification settings they are delivered with, and a keepalive connection is no longer shared between upstreams whose verification settings differ. See Fixes for both. A `grpcs` upstream of the shape described above is still delivered without verification until its service is saved again, so upgrading the Data Plane alone does not turn verification on for it.

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

### Features[​](#3922-features "Direct link to Features")

#### Plugins[​](#3922-features-plugins "Direct link to Plugins")

* **[Prometheus](https://docs.api7.ai/hub/prometheus.md)**
  * 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[​](#3922-features-control-plane "Direct link to Control Plane")

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

#### Console (Dashboard)[​](#3922-features-console "Direct link to Console (Dashboard)")

* 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[​](#3922-fixes "Direct link to Fixes")

#### Plugins[​](#3922-fixes-plugins "Direct link to Plugins")

* **[Limit Count](https://docs.api7.ai/hub/limit-count.md)**, **[Limit Count Advanced](https://docs.api7.ai/hub/limit-count-advanced.md)** and **[GraphQL Limit Count](https://docs.api7.ai/hub/graphql-limit-count.md)**

  * 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.
  * 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](https://docs.api7.ai/hub/workflow.md)** 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](https://docs.api7.ai/hub/ai-proxy.md)** and **[AI Proxy Multi](https://docs.api7.ai/hub/ai-proxy-multi.md)**
  * 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](https://docs.api7.ai/hub/ai-rate-limiting.md)** 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.

* **[OAS Validator](https://docs.api7.ai/hub/oas-validator.md)**
  * 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[​](#3922-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: An HTTPS upstream configured with certificate verification and its own CA certificate failed every request with `HTTP 502` and `upstream SSL certificate verify error: (20:unable to get local issuer certificate)` in the error log, even when the upstream certificate really was issued by that CA. The trusted store was never applied to an upstream that supplied a CA certificate without also supplying a client certificate. Such an upstream now connects.
* Fixed issue: A `grpcs` upstream ignored its certificate verification settings entirely, so an upstream certificate was accepted no matter which CA issued it. The settings were discarded by the internal redirect that dispatches gRPC traffic, and the upstream certificate was in any case checked against the wrong name. Verification and the configured CA certificates now take effect for `grpcs` as they do for `https`, and the certificate is checked against the upstream host. A `grpcs` upstream that has verification enabled and whose certificate does not chain to the configured CA, or whose subject alternative names do not cover the upstream host, now fails with `HTTP 502` where it previously connected; check those upstreams before upgrading.
* Fixed issue: An upstream that required certificate verification could reuse a keepalive connection opened earlier to the same host and port by an upstream that did not verify, or that verified against different CA certificates, so the request was sent without its own verification ever taking place. Connections are now pooled separately by verification setting and CA certificates. A request that succeeded only because it reused such a connection now fails with `HTTP 502`.
* Fixed issue: Two upstreams could share one parsed CA certificate store, so an upstream could be verified against another upstream's CA certificates. The store is now keyed on the CA certificates themselves.
* 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[​](#3922-fixes-control-plane "Direct link to 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 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: 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)[​](#3922-fixes-console "Direct link to 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.

## 3.9.21[​](#3921 "Direct link to 3.9.21")

**Release Date**: 2026-09-24

### Breaking Changes[​](#3921-breaking-changes "Direct link to Breaking Changes")

#### Plugins[​](#3921-breaking-changes-plugins "Direct link to Plugins")

* **[OpenID Connect](https://docs.api7.ai/hub/openid-connect.md)**

  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.9.20 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](https://docs.api7.ai/hub/saml-auth.md)**

  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.9.20 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.9.14. 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.9.20 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](https://docs.api7.ai/hub/workflow.md)**

  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.9.20. 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[​](#3921-upgrade-notes "Direct link to Upgrade Notes")

Upgrade note — the Control Plane image no longer contains Node.js

The Dashboard console is now served by the Control Plane binary itself. The `api7-ee-3-integrated` image runs a single process, contains neither Node.js nor a shell, no longer listens on port `3000`, and no longer reads the `dashboard_configuration.console.addr` option.

The `docker-compose.yaml` in the offline package of this release is already updated. If you start the Control Plane from your own compose file or manifest that runs `/nodejs/bin/node /app/server.js & /usr/local/api7/api7-ee-dashboard -c /usr/local/api7/conf/conf.yaml`, or health checks it with `/nodejs/bin/node`, the container fails to start or is reported unhealthy after the upgrade. Pass only `-c /usr/local/api7/conf/conf.yaml` as the command, use `/usr/local/api7/api7-ee-dashboard healthz` as the health check, and remove `console.addr` and any exposure of port `3000`. Deployments with the Helm chart need no change to their values.

### Features[​](#3921-features "Direct link to Features")

#### Plugins[​](#3921-features-plugins "Direct link to Plugins")

* **[SAML Auth](https://docs.api7.ai/hub/saml-auth.md)**
  * 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](https://docs.api7.ai/hub/openapi-to-mcp.md)**
  * 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](https://docs.api7.ai/hub/limit-count.md)**, **[Limit Count Advanced](https://docs.api7.ai/hub/limit-count-advanced.md)**, **[GraphQL Limit Count](https://docs.api7.ai/hub/graphql-limit-count.md)**, **[Limit Conn](https://docs.api7.ai/hub/limit-conn.md)**, **[Limit Req](https://docs.api7.ai/hub/limit-req.md)**, **[AI Rate Limiting](https://docs.api7.ai/hub/ai-rate-limiting.md)** and **[AI Cache](https://docs.api7.ai/hub/ai-cache.md)**
  * 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.
* **[Prometheus](https://docs.api7.ai/hub/prometheus.md)**
  * A request answered with `101 Switching Protocols` is now classified as `request_type=websocket`, so WebSocket sessions land in their own `apisix_http_status`, `apisix_http_latency` and `apisix_bandwidth` series and can be excluded from latency queries with `request_type!="websocket"`. Ordinary requests keep their existing series, and a refused handshake stays `traditional_http`. Dashboards and alerting rules that aggregate these metrics without filtering on `request_type` will see WebSocket traffic separated out of the series it used to be counted in.

#### Control Plane[​](#3921-features-control-plane "Direct link to Control Plane")

* 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)[​](#3921-features-console "Direct link to 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.
* The license page shows the deployment ID, with a copy button.
* Resources synchronized by ADC, which carry the label `managed-by: adc`, are marked with a **Managed by ADC** tag and a banner on their detail pages, and editing or deleting one of them asks for confirmation first, so that a change that ADC would overwrite on its next sync is not made by accident.
* The Dashboard is now available in Traditional Chinese and Vietnamese. A user who had chosen Chinese keeps Simplified Chinese.

### Fixes[​](#3921-fixes "Direct link to Fixes")

#### Plugins[​](#3921-fixes-plugins "Direct link to Plugins")

* **[AI Rate Limiting](https://docs.api7.ai/hub/ai-rate-limiting.md)**
  * Fixed issue: With the `redis-sentinel` policy, `redis_username` and `redis_password` were not passed on, so rate limiting failed at runtime against a Redis that requires authentication, even though the configuration was accepted. With the `redis` and `redis-cluster` policies, `redis_keepalive_timeout` and `redis_keepalive_pool` were ignored and the built-in values were always used.
* **[AI Aliyun Content Moderation](https://docs.api7.ai/hub/ai-aliyun-content-moderation.md)**
  * 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.
* **[AI Proxy](https://docs.api7.ai/hub/ai-proxy.md)**
  * 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](https://docs.api7.ai/hub/prometheus.md)**
  * Fixed issue: The metrics library `nginx-lua-prometheus-api7` was upgraded in 3.9.18, and on 3.9.18, 3.9.19 and 3.9.20 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.9.15. The `expire` option is still honored, and no configuration change is needed.

#### Data Plane[​](#3921-fixes-data-plane "Direct link to 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.
* 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 from the wrong revision or before etcd was reachable. The affected worker kept running the old configuration until the same resource was changed again.

#### Control Plane[​](#3921-fixes-control-plane "Direct link to 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.

#### Console (Dashboard)[​](#3921-fixes-console "Direct link to Console (Dashboard)")

* Fixed issue: On a list with a page size other than the default, the range shown as **Results: X–Y of N** was wrong from the second page onwards. The rows listed were correct.
* 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: On an API product's details page, the last linked gateway service could be deleted, leaving the product with no backend. Its delete button is now disabled, with a tooltip explaining why.
* Fixed issue: A long error message overflowed its notification. Notifications now have a consistent width, and a long message can be scrolled.

## 3.9.20[​](#3920 "Direct link to 3.9.20")

**Release Date**: 2026-09-03

### Breaking Changes[​](#3920-breaking-changes "Direct link to Breaking Changes")

#### Plugins[​](#3920-breaking-changes-plugins "Direct link to Plugins")

* **[Basic Auth](https://docs.api7.ai/hub/basic-auth.md)**

  Upgrade note

  A basic auth password can no longer be empty. The Control Plane now rejects a consumer or a credential whose password is an empty string with `HTTP 400` and `basic-auth plugin: password: String length must be greater than or equal to 1`. On 3.9.19 the same request returned `HTTP 200` and was stored.

  A consumer with an empty password that is already stored turns into an error-level entry in the configuration compatibility report after the upgrade, and any further edit of it is rejected until the password is set.

  The Data Plane now fails closed as well: a password that resolves to an empty string, including an `$env://` or `$secret://` reference that resolves to `""`, is rejected with `HTTP 401` and a warning in the error log. On 3.9.19 such a consumer authenticated successfully with credentials of the username, a colon, and a space.

  Before upgrading, check for basic auth consumers and credentials whose password is empty or whose secret reference resolves to an empty value, and give each of them a real password.

### Upgrade Notes[​](#3920-upgrade-notes "Direct link to Upgrade Notes")

Upgrade note — the grouped compatibility report and dismiss rules need an upgraded Data Plane

The compatibility report is now grouped by issue, and a dismiss rule matches on the machine-readable `reason` the Data Plane reports. Both depend on the Data Plane reporting compatibility problems as structured data, which it does from 3.9.20. API7 Enterprise is upgraded Control Plane first, so during the upgrade window a 3.9.20 Control Plane is talking to gateway instances that are still on 3.9.19, and for those instances neither works.

An older Data Plane reports each problem as a rendered English sentence carrying no machine-readable `reason`. The Control Plane drops such a record as the heartbeat arrives, so for as long as the Control Plane is upgraded and the gateway instance is not, that instance's compatibility report is **empty**. Problems that genuinely exist on it — a resource the Data Plane rejected, a plugin it does not have — are not shown, and a dismiss rule has nothing to act on. Plan for the report to be blank rather than trustworthy until the instance is upgraded, and do not read a blank report as a clean one.

The instance itself is still flagged as needing an upgrade by the version rules, so it does not silently look up to date. This affects only what the compatibility report displays. It never affects traffic or the configuration a gateway instance runs, and the report behaves as documented as soon as the instance is upgraded.

### Features[​](#3920-features "Direct link to Features")

#### Plugins[​](#3920-features-plugins "Direct link to Plugins")

* **[Chaitin WAF](https://docs.api7.ai/hub/chaitin-waf.md)**
  * The response can now be reported to the SafeLine detection service alongside the request, so data leaked in a response body, an exploit's output, or an unexpected status code becomes visible to SafeLine. Three options are available both on the plugin and in its plugin metadata: `config.log_resp` enables response reporting, `config.resp_body_size` caps how much of the response body is reported in KB (`0` reports headers only), and `config.extra_ignored_content_types` adds comma-separated response content types to skip on top of the built-in list. Reporting is off by default. The report is sent after the response has been delivered to the client and is advisory only: it never blocks or modifies a response.
* **[AI Proxy Multi](https://docs.api7.ai/hub/ai-proxy-multi.md)**
  * Instance health checks are now reported through the Data Plane control API. `GET /v1/healthcheck` lists one entry per instance that declares `checks`, carrying the new `plugin` and `meta` fields (`meta.instance` names the instance), and a new sub-resource `GET /v1/healthcheck/{src_type}/{src_id}/checkers` returns every checker a resource owns as an array. A route whose real upstreams were LLM instances previously reported nothing, and `GET /v1/healthcheck/{src_type}/{src_id}` answered `HTTP 404` with `no checker for routes[1]`.

#### Control Plane[​](#3920-features-control-plane "Direct link to Control Plane")

* The gateway instance configuration compatibility report is now organized by issue rather than by resource. `GET /api/gateway_groups/{gateway_group_id}/instances/{gateway_instance_id}/compatibility_issues` returns one entry per distinct problem — a machine-readable `reason` (`resource_invalid`, `plugin_unavailable`, `plugin_config_invalid`, `plugin_unknown_fields`), the plugin and field it concerns, and the resources carrying it — ordered errors first, then by how many resources are affected. The Data Plane reports each issue as structured data instead of one rendered English sentence per resource, so a single cause is no longer repeated across a thousand rows and an unrecognized-field warning is no longer buried under an aggregated error.
* An operator can now dismiss a plugin field the Data Plane does not recognize but safely ignores, so the compatibility report lists only what needs acting on. A dismissal names the plugin and the field and applies across every gateway group and instance, covering every element of an array — dismissing `nodes[*].weight` covers them all. Dismissals can be managed from the Dashboard or through the `/api/compatibility_dismiss_rules` endpoints, are governed by their own permissions, and every change is audited. Only unrecognized-field warnings can be dismissed: dismissing one never changes what the Data Plane does with the configuration, and never turns an Incompatible instance Compatible.
* Services can now be found by domain or path prefix. The `search` parameter on the service list endpoint matches, case-insensitively, any substring of a service's `hosts` or `path_prefix` in addition to name, description, labels and ID; whitespace-separated terms keep their AND semantics. A user who knew only a service's domain or path prefix previously had no way to look it up. The path prefix is recorded in a column that this release adds, and the upgrade backfills it for every existing service, so services published before the upgrade are searchable by path prefix without being republished.

#### Console (Dashboard)[​](#3920-features-console "Direct link to Console (Dashboard)")

* Configuration compatibility warnings now show each affected resource with its full business hierarchy path (for example, gateway group → service → route) instead of a bare resource ID, making it easier to locate the configuration that needs attention.

### Fixes[​](#3920-fixes "Direct link to Fixes")

#### Plugins[​](#3920-fixes-plugins "Direct link to Plugins")

* **[Basic Auth](https://docs.api7.ai/hub/basic-auth.md)**

  * Fixed issue: A consumer whose password contained a colon could never authenticate. RFC 7617 defines everything after the first colon as the password, but the credentials were split on every colon, which truncated it.
  * Fixed issue: A consumer whose password was empty — stored as an empty string, or resolved from an `$env://` or `$secret://` reference that yielded one — authenticated any request presenting its username with an empty password. Such a consumer is now rejected with `HTTP 401`, and an empty password can no longer be configured. See Breaking Changes for what to check before upgrading.

* **[Chaitin WAF](https://docs.api7.ai/hub/chaitin-waf.md)**
  * Fixed issue: Setting any option in a route- or service-level `config` block reset every option it did not set, discarding the values configured in the plugin metadata. A route that set only `read_timeout` silently reverted `req_body_size`, `connect_timeout` and the rest to the built-in defaults. A plugin-level `config` now overrides the metadata field by field, as the documentation already described.

* **[AI Cache](https://docs.api7.ai/hub/ai-cache.md)**
  * Fixed issue: Under the `passthrough` protocol, requests with the same body but a different method, path or query string shared one cache entry, so a request to `/v1/images/generations` on a wildcard route could be served the cached response of an earlier request to `/v1/chat/completions`. The cache key for that protocol now includes the client's method, path and query. Other protocols keep their existing keys, so entries cached before the upgrade stay valid.

* **[AI Proxy](https://docs.api7.ai/hub/ai-proxy.md)** and **[AI Proxy Multi](https://docs.api7.ai/hub/ai-proxy-multi.md)**
  * Fixed issue: With the Vertex AI provider, an embeddings request whose `model` contained a `/`, a `?` or a space was sent to the wrong path or failed outright. A model named `models/text-embedding-004` added a path segment to the prediction URL instead of naming the model, and a `?` or a space produced `HTTP 500` with `invalid characters found in path` in the error log — the request was never sent. The model is now escaped into a single path segment.

* **[Traffic Label](https://docs.api7.ai/hub/traffic-label.md)**
  * Fixed issue: On a route carrying an `ipmatch` rule, the compiled matcher was stored inside the plugin's own configuration, so from the first matching request onward the route could no longer be serialized to JSON. `GET /v1/routes` on the Data Plane control API failed, route dumps at `info` log level came out empty, and matching requests logged `failed to encode: Cannot serialise table: excessively sparse array`.

* **[AWS Lambda](https://docs.api7.ai/hub/aws-lambda.md)**, Azure Functions and OpenFunction
  <!-- -->
  * Fixed issue: A `function_uri` with no path — `https://xxx.lambda-url.us-east-1.on.aws` with no trailing slash, for example — produced a request with an empty request target, which a strict function endpoint rejected with `HTTP 400 Bad Request`. The request is now sent to `/`. A function response with status `400` or above is also logged at `warn` with its status and body; previously the error log carried only `exits with http status code 403`, with no indication of why.

#### Data Plane[​](#3920-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: On the Data Plane control API, `GET /v1/healthcheck` returned an empty JSON object where an array was expected — `"nodes": {}` for an upstream configured with `checks` but not yet used, and `{}` for the whole result when nothing was being health checked. Both are now `[]`.

#### Control Plane[​](#3920-fixes-control-plane "Direct link to Control Plane")

* Fixed issue: A gateway instance was looked up without its gateway group and without ordering its runs, so an instance that had been restarted was answered for from a run that no longer exists, for up to seven days. The compatibility issues endpoint returned a report contradicting the summary shown beside it on the same screen, and never converged; deleting a gateway instance could clear the offline guard on the strength of a stale run and remove a gateway that was still connected, still answering `HTTP 200`; and health check status reported by the Data Plane could be filed under the wrong gateway group when the same instance ID existed in two groups.
* Fixed issue: A service's type was recorded for filtering only when the service was created, never when it was updated, so `?type=` filtering kept the value the service had at creation even after the service was moved between `http` and `stream`.
* Fixed issue: When Prometheus answered the Control Plane with something other than JSON — an authenticating proxy returning an HTML `401` page, for example — the Dashboard's monitoring pages and the Developer Portal's metrics endpoint failed with `HTTP 500` and `invalid character '<' looking for beginning of value`, which said nothing about the real cause. Such a reply is now reported as `HTTP 502` with a message naming the upstream status, for example `prometheus returned 401 Unauthorized`, and the first 256 bytes of the body go to the Control Plane log instead of to the client. Prometheus's own JSON error responses still pass through unchanged.

## 3.9.19[​](#3919 "Direct link to 3.9.19")

**Release Date**: 2026-08-26

### Upgrade Notes[​](#3919-upgrade-notes "Direct link to Upgrade Notes")

Upgrade note — access log formats naming `$http_x_forwarded_*` now record what the client sent

The gateway has always overwritten `X-Forwarded-Proto`, `X-Forwarded-Host` and `X-Forwarded-Port` and cleared `Forwarded` for requests from peers it does not trust. That work now happens in the NGINX configuration rather than in Lua. What the upstream receives is unchanged, and so is what plugins see: `core.request.header` and `ctx.var.http_x_forwarded_*` still return the overwritten values, and `ctx.var.original_x_forwarded_*` still returns what the client sent.

The NGINX configuration level differs. Naming `$http_x_forwarded_proto`, `$http_x_forwarded_host`, `$http_x_forwarded_port` or `$http_forwarded` in an access log format, an `if`, or a `map` now reads what the client sent, where it previously read the overwritten value. A log format that records `$http_x_forwarded_host` for auditing therefore starts recording a value the client controls: a request forging `X-Forwarded-Host: evil.example.com` was logged as the real host before the upgrade and is logged as `evil.example.com` after it.

Use `$scheme`, `$var_x_forwarded_host` and `$var_x_forwarded_port` to log the overwritten values. `$http_x_forwarded_for` is not affected. What the client sent is also available in the new `$original_x_forwarded_proto`, `$original_x_forwarded_host`, `$original_x_forwarded_port`, `$original_x_forwarded_for` and `$original_forwarded` NGINX variables.

Upgrade note — logging plugins now discard entries once the backlog reaches 8192

The batch processor behind every logging plugin kept undelivered entries in worker memory without a limit unless `max_pending_entries` was set in the plugin's metadata, so a log server that was slow or unreachable grew the worker's memory with the request rate. The limit now defaults to 8192 entries, and `datadog`, `lago`, `loggly`, `sls-logger` and the stream subsystem's `syslog` expose the option for the first time.

A deployment whose log server keeps up is unaffected: the backlog tracks `batch_max_size` rather than the request rate and stays well under a thousand entries. Once the limit is reached, entries are discarded and reported at most once per second with a running count. If you log request or response bodies larger than a few kilobytes, lower `max_pending_entries` in the plugin metadata so the backlog fits your memory budget; if you raised `batch_max_size`, raise this with it.

Upgrade note — OpenID Connect enforces the authorization checks it was configured with

Three checks that could be configured on **[OpenID Connect](https://docs.api7.ai/hub/openid-connect.md)** were not applied in every case, so requests that should have been rejected were let through. Configurations that relied on them are now enforced, and traffic that was passing before may start receiving `HTTP 401` or `403`.

`required_scopes` was only applied to tokens validated by introspection. A route using the authorization code flow — the default, with `bearer_only` unset — never read the scopes granted to the session, so every user who completed the login was authorized. The scopes are now read from the access token, and a session whose granted scopes cannot be determined is denied rather than allowed. Check that your identity provider issues the access token as a JWT carrying `scope`, or that the ID token carries it, before relying on `required_scopes` with the authorization code flow.

`claim_validator.audience.match_with_client_id` compared the `aud` claim against the client id only when the claim was present, so a token that omitted `aud` skipped the check. The option now implies that the claim is required, and a token without `aud` receives `HTTP 403`.

In `bearer_only` mode with no `valid_issuers` configured, the trusted issuer comes from the provider's discovery document; when that fetch failed the gateway logged a warning and verified the token with no issuer constraint at all. It now answers `HTTP 401` with `error_description="issuer validation unavailable"` instead. Configure `valid_issuers` explicitly if you do not want availability of the discovery endpoint on the request path.

Upgrade note — AI Proxy Multi rejects instances that share a name

**[AI Proxy Multi](https://docs.api7.ai/hub/ai-proxy-multi.md)** accepted two instances configured with the same `name`, which made the instance a request was routed to ambiguous. Such a configuration is now rejected with `HTTP 400` at write time.

Configurations already stored keep working but are reported in the Data Plane's configuration compatibility report at `error` level after the upgrade. Rename the duplicated instances so each name is unique; the report clears once the configuration is rewritten.

Upgrade note — Proxy Cache in-memory entries are fetched again once after the upgrade

The storage key layout of **[Proxy Cache](https://docs.api7.ai/hub/proxy-cache.md)** in `memory` strategy changed to close the variant collision described under Fixes, and the cache version was bumped alongside it. Entries written by an earlier release are therefore not reachable under the new layout: the first request for each key is a `MISS` and repopulates the cache, and a `PURGE` for a URL that only has pre-upgrade entries answers `HTTP 404`. The old entries stay in the shared dictionary until their own TTL expires. Deployments using the default `disk` strategy are unaffected.

### Features[​](#3919-features "Direct link to Features")

#### Plugins[​](#3919-features-plugins "Direct link to Plugins")

* **[Prometheus](https://docs.api7.ai/hub/prometheus.md)**
  * Added three metrics for Layer 4 traffic, joining the `apisix_stream_connection_total` counter that was already exported: `apisix_stream_status` counting completed sessions by termination status, listening address and upstream node, `apisix_stream_active_connections` as a gauge of TCP connections and UDP sessions per listening address, and `apisix_stream_bandwidth` counting bytes proxied by listening address, direction and side. Enable the plugin on the stream route to collect them. The `stream_status` key can be added to the `disabled_labels` plugin metadata to drop labels from `apisix_stream_status`, as `status` already does for the HTTP counter.
* **[AI Proxy Multi](https://docs.api7.ai/hub/ai-proxy-multi.md)**
  * Added `fallback_http_statuses`, which lists the HTTP status codes an instance may answer with to make the gateway retry the request against the next instance. Previously a fallback only happened when an instance could not be reached at all, so a provider answering `401` for an expired key or `429` for a quota exhausted on that account was returned to the client instead of being retried elsewhere.

#### Control Plane[​](#3919-features-control-plane "Direct link to Control Plane")

* Routes can now match the `PURGE` method, which is how **[Proxy Cache](https://docs.api7.ai/hub/proxy-cache.md)** and **[GraphQL Proxy Cache](https://docs.api7.ai/hub/graphql-proxy-cache.md)** invalidate a cached entry. The gateway has always accepted it; only the Dashboard's own schema rejected it, so a route serving cache invalidation could not be created through the API or the Dashboard.
* Upstream and route timeouts now accept fractional seconds, so `0.5` can be configured where the API previously required a whole number. The Data Plane has always supported sub-second timeouts. The smallest value is `0.001`, because anything below a millisecond is truncated.

#### Data Plane[​](#3919-features-data-plane "Direct link to Data Plane")

* The `X-Forwarded-*` headers a request carries are now sanitized by the NGINX configuration instead of by Lua on every request. Plugins see the same values as before, and the values the client sent — already available to Lua as `ctx.var.original_x_forwarded_*` — are now NGINX variables as well, so a log format can record them. See Upgrade Notes for the one place this changes what is logged.

### Fixes[​](#3919-fixes "Direct link to Fixes")

#### Plugins[​](#3919-fixes-plugins "Direct link to Plugins")

* **[GraphQL Limit Count](https://docs.api7.ai/hub/graphql-limit-count.md)**
  * Fixed issue: A GraphQL document whose fragments spread one another was measured by expanding each spread every time it was referenced, so a small request body could cost an unbounded amount of CPU. A 1.4 KB document with 34 chained fragments held a worker at 100% CPU for over 45 seconds, during which the gateway answered nothing on any route and had to be restarted. Each fragment is now measured once, and a document whose fragment spreads form a cycle is rejected with `HTTP 400`.

* **[AI Proxy](https://docs.api7.ai/hub/ai-proxy.md)**

  * Fixed issue: When a streaming upstream answered `HTTP 200` with `Content-Type: text/event-stream` and then ended the response without writing anything, the request was neither answered nor terminated, so the client received no HTTP response at all and the access log recorded a `500` with a zero-length body. The gateway now returns `HTTP 502`.
  * Fixed issue: When a streaming upstream failed part way through — the connection dropping or timing out after some of the stream had already reached the client — the gateway still tried to answer `HTTP 500` or `504` on a response it had already committed as `HTTP 200`. It logged `attempt to set ngx.status after sending out response headers`, returned the broken connection to the keepalive pool, and on **[AI Proxy Multi](https://docs.api7.ai/hub/ai-proxy-multi.md)** treated the failure as retryable, sending a second billable request to the next instance after the client had already received part of the answer. The stream now ends where the read failed, with no synthesized terminator, so the client detects the truncation from the missing `[DONE]`, `message_stop` or `response.completed`. A read error that arrives before the first byte reaches the client is unchanged: still `504` for a timeout and `500` otherwise, and still eligible for a fallback.

* **[AI Proxy Multi](https://docs.api7.ai/hub/ai-proxy-multi.md)**
  * Fixed issue: When a request was retried against the next instance, it was built from the body the previous attempt had already rewritten, so the previous instance's `options` — for example its `temperature` or `max_tokens` — leaked into the request sent to the fallback and the model name could be overwritten. Each attempt now starts from the client's own request body.

* **[AI AWS Content Moderation](https://docs.api7.ai/hub/ai-aws-content-moderation.md)** and **[AI Aliyun Content Moderation](https://docs.api7.ai/hub/ai-aliyun-content-moderation.md)**
  * Fixed issue: When the gateway cut a stream short itself — `max_response_bytes` or `max_stream_duration_ms` on **[AI Proxy](https://docs.api7.ai/hub/ai-proxy.md)** reaching its limit — these plugins still appended the protocol's completion event to the stream they re-encode and deliver. The client received a well-formed `[DONE]` and had no way to tell that content had been dropped, so a truncated answer was indistinguishable from a complete one: in one measured case 7 of 9 events were discarded and the terminator was sent anyway. The terminator is no longer synthesized for a stream that was aborted.

* **[Redirect](https://apisix.apache.org/docs/apisix/plugins/redirect/)**
  * Fixed issue: With `http_to_https` enabled, the `X-Forwarded-Proto` header was compared case-sensitively, so a client or load balancer sending `HTTPS` was redirected to the HTTPS URL it had already reached, producing a redirect loop. The comparison is now case-insensitive.

* **[Data Mask](https://docs.api7.ai/hub/data-mask.md)**

  * Fixed issue: Request header masking had no effect on a request the gateway answered itself instead of proxying — one rejected by an authentication plugin, a rate limit, or **[Fault Injection](https://docs.api7.ai/hub/fault-injection.md)**, for example. Logging plugins running afterwards read the header from the unmodified request, so a credential that was configured to be masked was shipped to the log sink in plaintext. Masking now holds on every path.
  * Fixed issue: Removing an element from a JSON array left a hole in it rather than compacting the array, so the elements after the removed one were dropped from the logged body: masking `$.items[1]` out of `["a","b","c"]` logged `["a"]` instead of `["a","c"]`.

* **[Proxy Cache](https://docs.api7.ai/hub/proxy-cache.md)**
  * Fixed issue: In `memory` strategy, the storage key of a `Vary` variant was the cache key with the variant signature appended, and the cache key is derived from the request URI. A request crafted to carry another request's variant signature in its own URI therefore produced the same storage key, so it was served that request's cached response and its own response was stored where the next request would look that variant up. Storage keys are now derived so that no crafted request can reproduce another one's key. See Upgrade Notes for what this means for entries cached before the upgrade.

* **[OpenID Connect](https://docs.api7.ai/hub/openid-connect.md)**

  * Fixed issue: An identity provider that redirected back with `error=temporarily_unavailable` — which the specification defines as a transient condition — made the gateway answer `HTTP 500`. The authentication flow is now restarted from the original URL, up to three times per session, and other error codes such as `access_denied` are still treated as a final answer.
  * Fixed issue: `required_scopes`, `claim_validator.audience.match_with_client_id` and issuer validation were not applied in every case, letting through requests the configuration should have rejected. See Upgrade Notes.

* **[HMAC Auth](https://docs.api7.ai/hub/hmac-auth.md)**
  * Fixed issue: With `hide_credentials` enabled, the `Authorization` header was removed from the request sent upstream but stayed in the cached request headers, so a plugin ordered after HMAC Auth on the same route could still read the signature credential.

* **[UA Restriction](https://docs.api7.ai/hub/ua-restriction.md)**
  * Fixed issue: A request carrying more than one `User-Agent` header inverted the `denylist` decision. A client whose user agent was on the denylist was let through by sending the header twice, and a request whose first user agent matched nothing on the list was rejected with `HTTP 403`. Requests with a single `User-Agent` header, and the `allowlist` mode, were not affected.

* **[AWS Lambda](https://docs.api7.ai/hub/aws-lambda.md)**
  * Fixed issue: A request body sent with `Transfer-Encoding: chunked` was forwarded to the function without being reframed, so the invocation failed and the client received `HTTP 503` with `failed to process aws-lambda, err: closed` in the error log. The body is now forwarded with a `Content-Length`. The same applies to the other serverless upstream plugins, which share this code path.

#### Data Plane[​](#3919-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: When resolving an upstream host that is a CNAME, the resolver's answer was only collapsed onto the queried name when the last record of the answer happened to be of the requested type. A resolver that appends an EDNS(0) OPT record, or returns the answer section out of chain order, defeated that test, so the resolved record was recorded under the canonical name rather than the name that was queried — and a same-type record owned by an unrelated name could be renamed onto the queried name and cached there. The chain is now walked to the name it ends at and only the records that name owns are collapsed.
* Fixed issue: The gateway rewrote `conf/apisix.uid` with the instance id it had just read out of it. A deployment that mounts the file without write access for the runtime user — which is how the Docker Compose package ships it — therefore logged `failed to open file [/usr/local/apisix//conf/apisix.uid] for writing` at `error` level on every start — four times in 3.9.18, and six when `apisix.stream_proxy` was configured. The id was always read and registered correctly; the redundant write, and the errors it produced, are gone.

#### Control Plane[​](#3919-fixes-control-plane "Direct link to Control Plane")

* Fixed issue: Any signed-in user could list the upstreams of a service, including their node addresses, because the endpoint that lists them carried no permission check while every other view of the same data was filtered by permission. Listing a service's upstreams now requires view permission on that service.
* Fixed issue: An SSL configuration that carried both `cert`/`key` and `certs`/`keys` for the same SNI — the way an RSA and an ECDSA certificate are served side by side — was rejected with `input matches more than one oneOf schemas`. Both are now accepted together, and the Data Plane negotiates whichever the client prefers.
* Fixed issue: A `jwt-auth` consumer credential using an asymmetric algorithm was written to the configuration store with a placeholder `private_key` field the user never configured, which the Data Plane reported as an unrecognized field and which was stored in the clear. The field is no longer added. Credentials written before the upgrade keep it until they are next saved.
* Fixed issue: A gateway instance running a data-plane-only hotfix — a version such as `3.9.18-patch.1`, which ships without a matching Control Plane release — was reported as `PartiallyCompatible` with an `Upgrade Recommended` hint next to its version, even though it was newer than the Control Plane, while another instance on the base release in the same gateway group was reported as `Compatible`. An error-level item in its compatibility report also turned it `Incompatible` and raised the banner asking for a gateway upgrade. A version that differs from the Control Plane's only in its pre-release part is now judged as the release it is built on.

#### Console (Dashboard)[​](#3919-fixes-console "Direct link to Console (Dashboard)")

* Fixed issue: Reopening the plugin editor in YAML mode repeated every field in the suggestion list once per open, so after five opens each field appeared five times. The editor's YAML support is now configured once per page.

## 3.9.18[​](#3918 "Direct link to 3.9.18")

**Release Date**: 2026-08-12

### Breaking Changes[​](#3918-breaking-changes "Direct link to Breaking Changes")

#### Plugins[​](#3918-breaking-changes-plugins "Direct link to Plugins")

* **[Alibaba Cloud Logging (SLS)](https://apisix.apache.org/docs/apisix/plugins/sls-logger/)**

  Upgrade note

  The plugin now verifies the TLS certificate of the log server. Earlier versions completed the TLS handshake without validating the certificate at all, so a log server presenting a self-signed certificate, a certificate from a private CA, or an expired certificate was accepted silently, and log records containing the configured access key were sent to it.

  Verification is controlled by the new `ssl_verify` option, which defaults to `true`. After the upgrade, a log server whose certificate the gateway cannot validate causes the batch processor to drop the log entries and report `failed to perform TLS handshake to TCP server` in the error log. If your log server presents a certificate that is not signed by a publicly trusted CA, add the issuing CA to the Data Plane's trusted certificate store before upgrading, or set `ssl_verify` to `false` on the plugin to keep the previous behavior.

### Upgrade Notes[​](#3918-upgrade-notes "Direct link to Upgrade Notes")

Upgrade note — the Loki Logger `headers` field is encrypted at rest

When Data Plane data encryption is enabled (`apisix.data_encryption.enable`), the Control Plane now encrypts the **[Loki Logger](https://docs.api7.ai/hub/loki-logger.md)** `headers` field at rest. Because API7 EE upgrades the Control Plane before the Data Plane, during the upgrade window a 3.9.18 Control Plane encrypts this field while an older 3.9.17 Data Plane cannot decrypt it, which can cause the plugin to fail until the Data Plane is also upgraded.

If you use Loki Logger with `headers`, upgrade the Data Plane to 3.9.18 promptly after the Control Plane, and avoid editing that plugin until both sides are on 3.9.18.

Upgrade note — Dashboard users are signed out once after the upgrade

The key used to sign Dashboard session cookies was a compile-time constant, the same in every deployment. It is now a random 32-byte key generated on first start and stored per deployment, so a session cookie can no longer be signed with a value that is identical everywhere.

Sessions issued before the upgrade were signed with the old constant and are no longer accepted. Every signed-in user has to sign in again once after the Control Plane is upgraded. Nothing needs to be done before upgrading, and no configuration change is required.

Upgrade note — Docker Compose deployments switch to the `radixtree_host_uri` router

The Docker Compose package now sets `apisix.router.http` to `radixtree_host_uri`, which is the default the Helm chart already uses. Previously the package did not set the key and fell back to `radixtree_uri`, so the same configuration could resolve routes differently depending on how the gateway was deployed.

Configurations that rely on plain host and path matching are unaffected. The difference appears when routes that specify hosts and routes that do not specify hosts share overlapping paths: `radixtree_host_uri` consults the per-host routers first and falls back to the host-less routes only when none of them matched, whereas `radixtree_uri` keeps every route in a single tree ordered by path specificity and `priority`. To keep the previous engine, set `apisix.router.http` to `radixtree_uri` in `gateway_conf/config.yaml`.

### Features[​](#3918-features "Direct link to Features")

#### Plugins[​](#3918-features-plugins "Direct link to Plugins")

* **[OpenID Connect](https://docs.api7.ai/hub/openid-connect.md)**

  * Added support for Pushed Authorization Requests (PAR, RFC 9126). When `par.enabled` is set, the gateway sends the full authorization request to the identity provider's PAR endpoint over a back channel and redirects the browser with only a `request_uri`, so authorization parameters never travel through the user agent and cannot be tampered with there. The endpoint and its client authentication method are configured with `par.endpoint` and `par.endpoint_auth_method`.
  * Added support for DPoP sender-constrained tokens (RFC 9449). When `dpop.enabled` is set, the gateway signs a DPoP proof with `dpop.private_key` for the token request and advertises the matching `dpop.public_jwk`, binding the issued tokens to that key so a stolen token cannot be replayed from another client. With PAR enabled as well, the key thumbprint is also sent as `dpop_jkt` on the pushed request, as the specification requires.

* **[AI AWS Content Moderation](https://docs.api7.ai/hub/ai-aws-content-moderation.md)**

  * Added `check_response` to moderate the LLM's reply in addition to the request. A non-streaming reply is moderated before it reaches the client. For a streaming reply, `stream_check_mode` selects how it is handled: `final_packet`, the default, moderates the assembled response and annotates the last chunk with its risk level, while `realtime` moderates batches of at most `stream_check_cache_size` characters as the response is relayed and replaces the rest of the stream as soon as a batch is flagged, so a stream that turns harmful mid-response is cut off rather than delivered in full. A blocked reply is returned in the provider's own response format with the configured `deny_code` and `deny_message`.
  * Added `request_check_roles` and `request_check_mode` to choose which message roles are moderated and whether only the last message or every message of the selected roles is checked, matching the options already available in **[AI Aliyun Content Moderation](https://docs.api7.ai/hub/ai-aliyun-content-moderation.md)**.

* **[AI Proxy Multi](https://docs.api7.ai/hub/ai-proxy-multi.md)**
  * Added the `semantic` balancer algorithm, which routes each request to the instance whose configured `examples` are semantically closest to the prompt, instead of by weight or hash. The embedding provider is configured under `semantic_opts.embeddings`, a global or per-instance `threshold` sets how close a match has to be, and requests that match nothing well enough go to `semantic_opts.fallback`. If the embedding service cannot be reached, the request is sent to the fallback instance rather than failed. With `semantic_opts.debugging` enabled, the per-instance scores and the chosen instance are returned in response headers.

#### Control Plane[​](#3918-features-control-plane "Direct link to Control Plane")

* A custom plugin can now be uploaded as a complete package containing an entry file and its dependency files, instead of a single Lua file. The archive holds `$NAME.lua` at the top level, its dependency modules under `$NAME/`, and `metadata.json`; the Dashboard reads the metadata to fill in the plugin's catalog, description, documentation link, and author. The package is distributed to the Data Plane as one unit, so a plugin is never published with only some of its files present, and updating it replaces every file at once without restarting the gateway.
* The Docker Compose package now ships `portal.sh`, which brings up the Developer Portal against a running deployment. It creates the portal instance and its token, writes the frontend configuration and database, and starts the frontend behind a Compose profile, so trying the portal out no longer means following the manual deployment guide by hand. Developer accounts and sessions survive `portal.sh stop` and a later `start`.

#### Data Plane[​](#3918-features-data-plane "Direct link to Data Plane")

* The plugin set selected by global rules is now computed once per request and reused across phases, instead of being recomputed in each of them. On a deployment that enables the **[Prometheus](https://docs.api7.ai/hub/prometheus.md)** plugin through a global rule, this measured 12% higher throughput on a single worker.

#### Console (Dashboard)[​](#3918-features-console "Direct link to Console (Dashboard)")

* The language switcher no longer shows country flags, which do not map to languages, and marks the language that is currently active.

### Fixes[​](#3918-fixes "Direct link to Fixes")

#### Plugins[​](#3918-fixes-plugins "Direct link to Plugins")

* **[AI Aliyun Content Moderation](https://docs.api7.ai/hub/ai-aliyun-content-moderation.md)**

  * Fixed issue: With `system` selected in `request_check_roles`, content placed in a `developer` role message was not sent for moderation. `developer` is the role OpenAI uses in place of `system` on newer models and on the Responses API, so a client could put instructions there and have them proxied to the LLM unchecked. Both roles are now collected together, and the existing `system` entry covers them both.
  * Fixed issue: In `realtime` stream check mode with a protocol converter in use — for example an Anthropic client in front of an OpenAI-compatible upstream — the same response text was submitted to the moderation service once per converted chunk rather than once per upstream chunk. Moderation results were unaffected, but `stream_check_cache_size` was reached far sooner than configured and the number of moderation calls scaled with the converter's output, adding latency and cost.

* **[AI AWS Content Moderation](https://docs.api7.ai/hub/ai-aws-content-moderation.md)**
  * Fixed issue: Content longer than Amazon Comprehend's per-segment and per-request limits was rejected or silently truncated, so long prompts and replies were only partially moderated. Content is now split to stay within the documented limits and submitted across as many batches as needed, and the HTTP client is reused across the calls of one request instead of opening a new connection for each.

* **[Loki Logger](https://docs.api7.ai/hub/loki-logger.md)**
  * Fixed issue: The `headers` field, which commonly carries the authentication token for the Loki endpoint, was stored in plaintext. It is now encrypted at rest when Data Plane data encryption is enabled (see Upgrade Notes).

* **[Limit Conn](https://docs.api7.ai/hub/limit-conn.md)**
  * Fixed issue: When the plugin was configured on a service, each route under that service counted its concurrent connections separately, so the effective limit was multiplied by the number of routes. The counter is now keyed by the resource the plugin is configured on, so a service-level limit applies across all of its routes.

* **[Prometheus](https://docs.api7.ai/hub/prometheus.md)**
  * Fixed issue: Expired entries in the shared dictionary that backs the metrics were not reclaimed, so its usage only ever grew and it eventually stayed full, at which point new metric series were dropped. Expired entries are now reclaimed.

* **[OpenID Connect](https://docs.api7.ai/hub/openid-connect.md)**
  * Fixed issue: An `Authorization` header with leading or trailing whitespace was rejected in `bearer_only` mode, because the whitespace was carried into the extracted token. The header is now trimmed before the token is read.

#### Data Plane[​](#3918-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: The `hosts` configured on a service were matched case-sensitively against the request's `Host` header when the gateway used the `radixtree_host_uri` router, which is the default in Kubernetes deployments. Because the header is normalized to lowercase before matching, a service whose `hosts` contained any uppercase letter could never match, and every route under it returned `HTTP 404` for every request. Service hosts are now normalized, matching how route hosts have always behaved. Docker Compose deployments were not affected before this release, because they used the `radixtree_uri` router (see Upgrade Notes).
* Fixed issue: Control characters in a rewritten upstream URI — for example a carriage return and line feed carried in from a percent-encoded request path — were written into the upstream request line verbatim, which allowed a client to truncate the request line and inject arbitrary headers into the request the gateway sent upstream. Control characters are now percent-encoded.
* Fixed issue: Certificates and private keys for stream (TCP/UDP) TLS listeners were not resolved when they were stored as `$ENV://` or `$secret://` references, so the TLS handshake failed with a PEM parsing error. Secret references are now resolved in the stream subsystem as they are for HTTP listeners.
* Fixed issue: When the watch on the configuration store timed out with no events, the Data Plane advanced its revision as though it had consumed everything up to that point, so configuration changes that arrived around the timeout could be skipped. The revision is no longer advanced on a timeout, and the recovery reload that follows a broken watch is now cheaper.
* Fixed issue: When a full configuration reload delivered an item the Data Plane could not accept, the previously working value for that item was discarded rather than kept, so a single invalid resource could take working configuration out of service after a reconnect. The previous value is now retained.

#### Control Plane[​](#3918-fixes-control-plane "Direct link to Control Plane")

* Fixed issue: The `order_by` and `direction` list parameters were interpolated into the generated SQL without validation, so a value that was not a column name changed the query rather than being rejected. Values are now validated wherever they are used, and the six list endpoints that had not declared the parameters — the four AI Gateway lists, certificate SNI usages, and contact point usages — now document the columns they accept and reject anything else with `HTTP 400`. Sorting by a valid column is unchanged; a request that passes an unsupported value to one of those endpoints now receives an error instead of an arbitrarily ordered result.
* Fixed issue: The Lua parser that reads a custom plugin's schema at upload time evaluated the uploaded file with the full standard library available, so a file could run commands on the Control Plane host while its schema was being read. The parser now runs with only the libraries a schema definition needs, and a file that exceeds a three-second budget is rejected. Ordinary plugin files, whose schemas are declarative tables, are unaffected.
* Fixed issue: The Helm installation script generated for a gateway group wrote the Data Plane's private key, certificate, and CA to fixed paths under `/tmp` with the operator's default file mode, and left them there. The script now creates them with `umask 077`, uses temporary file names, and deletes them when it exits.
* Fixed issue: Metrics pushed by a Data Plane were stored with the `gateway_group_id` label taken from the payload rather than from the credential the connection was authenticated with, so a Data Plane could write series into another gateway group's metrics. The label is now taken from the authenticated identity.
* Fixed issue: The etcd-compatible endpoint that Data Planes read their configuration from forwarded keys outside the caller's gateway group namespace, so a Data Plane could read, write, and delete the configuration of other gateway groups. Keys outside the caller's namespace are now rejected.
* Fixed issue: Service registry health check and probe results reported by a Data Plane were applied by registry ID alone, so a Data Plane could overwrite the discovered services and connection status of a registry belonging to another gateway group. Updates are now scoped to the reporting Data Plane's gateway group.
* Fixed issue: The `security.ssrf_protection` setting had no effect on the Developer Portal process, so approval webhooks and dynamic client registration could still reach internal addresses when it was enabled. The Developer Portal now applies the same policy as the Control Plane.
* Fixed issue: The Developer Portal API usage endpoint filtered statistics by the developer identifier supplied by the portal, which is only unique within one portal, so a developer could see the API product names and hourly call counts of a developer with the same identifier in another portal. Statistics are now restricted to the applications the caller owns.
* Fixed issue: Importing a license could leave the Dashboard rejecting every request with `license clock signature is invalid` for as long as the cache entry lived, because the license and the clock signed for it were cached separately and could be refreshed independently. They are now read and cached as one entry, cross-checked against each other, and written in a single transaction on import.
* Fixed issue: After a license that raises the licensed core allowance was imported, a Control Plane replica that had already blocked a write kept rejecting writes for up to the license cache lifetime. The license restriction is now evaluated against the current state on every request instead of being cached.
* Fixed issue: On SQL Server, a query interrupted mid-flight was indistinguishable from an empty result, so a delete could report success without recording the deletion, and a lookup could come back empty for configuration that existed. Interrupted queries now surface the error. Separately, the isolation level set for compaction leaked onto pooled connections, so later queries ran serializably and could queue behind writers long enough to time out, or deadlock with concurrent writes. Compaction now runs on a dedicated connection whose isolation level is reset before it returns to the pool. PostgreSQL and MySQL deployments were not affected.

#### Console (Dashboard)[​](#3918-fixes-console "Direct link to Console (Dashboard)")

* Fixed issue: The monitoring page reported a success ratio of `0%` when there was no traffic in the selected window, or when the reported failure count exceeded the request count, which read as though every request had failed. Both cases now render an em dash, because there is no ratio to report. The request and failure counts themselves are unchanged.
* Fixed issue: The status badge on an offline gateway instance rendered broken text in both languages, such as `Offline - In 6 DaysUntil Deletion`.
* Fixed issue: The Debug Session sampling rule presets used `http_uri`, `http_method`, and `http_status`. On the Data Plane, a variable with an `http_` prefix resolves to a request header, so those presets never matched and a debug session created from one captured nothing. The presets now use `uri`, `method`, and `status`.
* Fixed issue: Several in-product help links pointed at the frozen documentation archive instead of the current documentation set.

## 3.9.17[​](#3917 "Direct link to 3.9.17")

**Release Date**: 2026-07-28

### Upgrade Notes[​](#3917-upgrade-notes "Direct link to Upgrade Notes")

Upgrade note — logger body size limits are validated more strictly

`max_req_body_bytes` and `max_resp_body_bytes` are now validated as integers of at least `1` in the **ClickHouse Logger**, **Elasticsearch Logger**, **File Logger**, **Loggly**, **Loki Logger**, **SkyWalking Logger**, **Alibaba Cloud Logging (SLS)**, and **Syslog** plugins. Values that earlier versions accepted — `0`, negative numbers, and quoted numbers such as `"1024"` — are now rejected with `HTTP 400`.

After the upgrade, existing routes that carry such a value are listed as errors in the gateway group's compatibility report and are not published to the Data Plane; other routes are unaffected. Before upgrading, review these plugins' configurations for `max_req_body_bytes` or `max_resp_body_bytes` set to `0`, a negative number, or a quoted number, and replace them with a positive integer, or remove the field to fall back to the default of `524288`.

Upgrade note — structural Prometheus metric labels can no longer be disabled

The **[Prometheus](https://docs.api7.ai/hub/prometheus.md)** plugin metadata now rejects `disabled_labels` entries that would remove a label the metric is built around — for example `type` on `latency`, or `code` on `status`. Earlier versions accepted these and produced metric series in which distinct measurements collapsed into one.

If your Prometheus plugin metadata disables one of these labels, any update to it after the upgrade is rejected with `HTTP 400`. Remove the structural entries from `disabled_labels` before upgrading. Non-structural labels such as `route`, `service`, and `consumer` can still be disabled.

Upgrade note — OpenTelemetry metadata and content moderation `deny_code` are validated more strictly

Two more schemas now reject values that earlier versions accepted:

* **[OpenTelemetry](https://docs.api7.ai/hub/opentelemetry.md)** plugin metadata accepts only scalar values — strings, numbers, and booleans — for `resource` attributes and for `collector.request_headers`. Arrays and objects, which earlier versions accepted and then silently dropped at runtime, are now rejected with `HTTP 400`.
* **[AI Aliyun Content Moderation](https://docs.api7.ai/hub/ai-aliyun-content-moderation.md)** requires `deny_code` to be an integer HTTP status code in the `200`–`599` range. **[AI AWS Content Moderation](https://docs.api7.ai/hub/ai-aws-content-moderation.md)** was already validated this way by the Control Plane; this release brings the Data Plane in line.

After the upgrade, an existing configuration that carries such a value is reported as an error in the gateway group's compatibility report, and any update to it is rejected with `HTTP 400`. Gateway instances stay **Healthy** and traffic is not affected. Before upgrading, review your OpenTelemetry plugin metadata and any AI Aliyun Content Moderation configuration, and replace or remove the offending values.

### Features[​](#3917-features "Direct link to Features")

#### Plugins[​](#3917-features-plugins "Direct link to Plugins")

* **[OpenID Connect](https://docs.api7.ai/hub/openid-connect.md)**
  * Added `set_raw_id_token_header`. When enabled, the raw ID token issued by the identity provider is forwarded to the upstream service in the `X-Raw-ID-Token` header, so the upstream can verify the token signature itself instead of trusting the gateway's decoded claims.
* **[Proxy Rewrite](https://docs.api7.ai/hub/proxy-rewrite.md)**
  * `headers.set` and `headers.add` now accept an array of values for a single header name, which is sent upstream as separate header lines rather than one comma-joined line. This matters for upstream services that read only the first occurrence of a header name, or that parse repeated headers differently from a single comma-joined value.
* **[Kafka Logger](https://docs.api7.ai/hub/kafka-logger.md)**
  * Added `tls` for connecting to Kafka brokers over TLS, with `tls.verify` controlling broker certificate verification. Previously the plugin could only connect in plaintext, so a broker listening on a TLS port received no logs at all.
* **Rate-limiting and cache plugins**
  * Added Redis connection keepalive settings (`redis_keepalive_timeout` and `redis_keepalive_pool`) to the Redis and Redis Cluster policies in **[Limit Conn](https://docs.api7.ai/hub/limit-conn.md)**, **[Limit Req](https://docs.api7.ai/hub/limit-req.md)**, and **[AI Cache](https://docs.api7.ai/hub/ai-cache.md)**, so operators can tune idle timeout and connection pool size.
* **Body-buffering plugins**
  * Added `max_req_body_size` and `max_resp_body_size` to bound how much of a request or response body a plugin reads into memory, defaulting to 67108864 bytes (64 MiB). A request body larger than the limit is rejected, and a response body is truncated at the limit — except in Proxy Cache, where an oversized response is streamed through without being cached — so one large body cannot exhaust worker memory. Available in **[AI Proxy](https://docs.api7.ai/hub/ai-proxy.md)**, **[AI Proxy Multi](https://docs.api7.ai/hub/ai-proxy-multi.md)**, **[AI Request Rewrite](https://docs.api7.ai/hub/ai-request-rewrite.md)**, the AI prompt plugins, **[Request Validation](https://docs.api7.ai/hub/request-validation.md)**, **[OAS Validator](https://docs.api7.ai/hub/oas-validator.md)**, **[Body Transformer](https://docs.api7.ai/hub/body-transformer.md)**, **[Response Rewrite](https://docs.api7.ai/hub/response-rewrite.md)**, **[Proxy Cache](https://docs.api7.ai/hub/proxy-cache.md)**, **[gRPC Transcode](https://docs.api7.ai/hub/grpc-transcode.md)**, **[SOAP](https://docs.api7.ai/hub/soap.md)**, and other plugins that buffer bodies.
* **Logger plugins**
  * Added `max_req_body_bytes` and `max_resp_body_bytes` to the remaining logger schemas — **[ClickHouse Logger](https://docs.api7.ai/hub/clickhouse-logger.md)**, **[Elasticsearch Logger](https://docs.api7.ai/hub/elasticsearch-logger.md)**, **[File Logger](https://apisix.apache.org/docs/apisix/plugins/file-logger/)**, **[Loggly](https://apisix.apache.org/docs/apisix/plugins/loggly/)**, **[Loki Logger](https://docs.api7.ai/hub/loki-logger.md)**, **[SkyWalking Logger](https://docs.api7.ai/hub/skywalking-logger.md)**, **[Alibaba Cloud Logging (SLS)](https://apisix.apache.org/docs/apisix/plugins/sls-logger/)**, and **[Syslog](https://docs.api7.ai/hub/syslog.md)** — so the body size limits are validated at configuration time and shown in the Dashboard (see Upgrade Notes).

#### Data Plane[​](#3917-features-data-plane "Direct link to Data Plane")

* Added `nginx_config.stream.real_ip_from`, which lists the addresses trusted to send a PROXY protocol header on stream (TCP/UDP) ports. On a connection from a trusted address, the client address is taken from the PROXY protocol header instead of the directly connected peer, so stream logs and address-based plugins see the real client rather than the load balancer in front of the gateway. It is empty by default and only takes effect on ports that accept the PROXY protocol.
* Upgraded the health check engine. Check targets are now reconciled incrementally instead of being destroyed and rebuilt, so scaling an upstream up or down no longer leaves a window in which no node is being checked, and the accumulated health state and failure counters of unchanged nodes are preserved instead of being reset.
* The `Apisix-Plugins` debug response header now lists the plugins that actually ran, in execution order and annotated with the phase each ran in (for example `limit-count#access`, `response-rewrite#header_filter`), instead of an unordered list of configured plugins.

#### Control Plane[​](#3917-features-control-plane "Direct link to Control Plane")

* The `/api/fe-config` endpoint is now served by the Control Plane binary and driven by `console.*` configuration keys, so the Dashboard's hybrid mode, browser error reporting (Sentry), and a custom sidebar group of external links can be configured through the Control Plane configuration or the Helm chart. Menu items that do not have a name and an absolute `http`/`https` URL are dropped instead of being served to the Dashboard.
* Service conflict checks now take route methods into account. Routes on the same host and path that serve disjoint method sets (for example `GET /foo` and `POST /foo`) are no longer reported as conflicting; an identical method scope is reported as duplicate, and a partially shared scope is reported as overlapping. A route without `methods` still matches all methods.
* Added an opt-in SSRF guard for outbound connections to user-configured endpoints. When `security.ssrf_protection.enable` is set, the Control Plane refuses to connect to loopback, private, link-local, and carrier-grade NAT addresses — including host names that resolve to them — which prevents features such as service registries and SMTP settings from being used to probe internal services or cloud metadata endpoints.

#### Console (Dashboard)[​](#3917-features-console "Direct link to Console (Dashboard)")

* The conflict dialog for services and routes now shows a **Methods** column, so it is clear on which methods two routes collide. Routes without `methods` are shown as **All**.

### Fixes[​](#3917-fixes "Direct link to Fixes")

#### Plugins[​](#3917-fixes-plugins "Direct link to Plugins")

* **[AI Proxy](https://docs.api7.ai/hub/ai-proxy.md)**, **[AI Proxy Multi](https://docs.api7.ai/hub/ai-proxy-multi.md)**, and **[AI Request Rewrite](https://docs.api7.ai/hub/ai-request-rewrite.md)**

  * Fixed issue: The requests the gateway sent to the LLM provider carried the client's own headers, including `Cookie`, `Authorization`, and arbitrary custom headers, exposing end-user credentials to the upstream provider. The gateway now sends only the headers the plugin itself sets.
  * Fixed issue: On an error response from the LLM, `$apisix_upstream_response_time` and `$llm_time_to_first_token` were logged in seconds (for example `0.240`) or as `0`, while successful responses were logged in milliseconds. Error-path values are now reported in milliseconds, consistent with the success path.

* **[AI AWS Content Moderation](https://docs.api7.ai/hub/ai-aws-content-moderation.md)** and **[AI Aliyun Content Moderation](https://docs.api7.ai/hub/ai-aliyun-content-moderation.md)**
  * Fixed issue: `deny_code` accepted arbitrary numbers. It is now validated as an integer HTTP status code in the `200`–`599` range (default `200`), so an out-of-range value is rejected at configuration time. For `ai-aws-content-moderation` the Control Plane already applied this validation, so this release brings the Data Plane in line; for `ai-aliyun-content-moderation` it now applies on both sides.

* **[OpenID Connect](https://docs.api7.ai/hub/openid-connect.md)**

  * Fixed issue: Delivering an authorization callback whose state no longer matched the session — for example after starting a second login flow in the same browser — returned `HTTP 500`. The gateway now redirects to the originally requested page instead.
  * Fixed issue: An empty JSON array in the identity provider's user info (for example `"roles": []`) was re-encoded as an empty object (`{}`) in the `X-Userinfo` header on requests served from an existing session, so upstream services that parse the field as an array failed. Empty arrays now stay arrays.

* **[wolf-rbac](https://apisix.apache.org/docs/apisix/plugins/wolf-rbac/)**
  * Fixed issue: When the authentication service returned success without `userInfo`, the client's own `X-UserId`, `X-Username`, and `X-Nickname` headers were forwarded to the upstream service, letting a caller present any identity it chose. These headers are now always cleared before the request is proxied.

* **[Limit Count](https://docs.api7.ai/hub/limit-count.md)**
  * Fixed issue: With `window_type: sliding` and delayed synchronization, the remaining quota was reported without the sliding-window weighting, so the gateway admitted noticeably more requests than configured around window boundaries. The remaining count is now window-weighted.

* **[Limit Conn](https://docs.api7.ai/hub/limit-conn.md)** and **[Limit Req](https://docs.api7.ai/hub/limit-req.md)**
  * Fixed issue: Redis connections were not returned to the keepalive pool, so every request opened a new Redis connection and the configured keepalive settings had no effect. Connections are now pooled and reused.

* **[Prometheus](https://docs.api7.ai/hub/prometheus.md)**
  * Fixed issue: When the shared dictionary used for metrics filled up, the gateway could enter a loop that held a worker at 100% CPU and did not recover after traffic stopped. A full dictionary now degrades gracefully, logging that reported metric data may be incomplete.

* **[OpenTelemetry](https://docs.api7.ai/hub/opentelemetry.md)**
  * Fixed issue: The plugin metadata schema accepted non-scalar values for `resource` attributes and `collector.request_headers`, which were then silently dropped at runtime. Such values are now rejected at configuration time.

#### Data Plane[​](#3917-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: With the `least_conn` load balancer, adding or removing an upstream node discarded the tracked connection counts, so the balancer degraded to round robin and sent new requests to nodes that were already holding long-lived connections. Load state is now preserved across upstream scaling.
* Fixed issue: When a plugin field referenced a secret that could not be resolved — an unset environment variable, or an error from the secret manager — the failure was silent and the unresolved reference was used as the literal value. The gateway now logs an error identifying the reference and the field it appears in.
* Fixed issue: The gateway read its host name by executing `/bin/hostname`, so on images that do not ship that binary it reported no host name and gateway instances appeared without a host name in the Dashboard. The host name is now read through a system call.
* Fixed issue: Entries in `nginx_config.envs` whose values contained spaces, quotes, or backslashes produced an invalid NGINX configuration and the gateway failed to start. These values are now quoted and escaped correctly.
* Fixed issue: Stopping and immediately restarting the gateway through the CLI could fail because the previous instance had not finished exiting. The CLI now waits for it to stop before starting the new one.
* Fixed issue: After a gateway container was killed rather than shut down cleanly, leftover worker event sockets could prevent the next start from binding. They are now removed during startup.
* Fixed issue: On arm64, a dependency pulled a second copy of the JSON library into the gateway's module path, shadowing the bundled one and encoding empty arrays as invalid JSON. The redundant dependency is removed, so the bundled library is always used.

#### Control Plane[​](#3917-fixes-control-plane "Direct link to Control Plane")

* Fixed issue: Two concurrent PATCH requests against the same resource could each read the resource before the other wrote it, so only the last write survived even though both requests reported success. PATCH requests on the same resource are now serialized.
* Fixed issue: Pooled database connections were reused indefinitely, so after a database failover the Control Plane could keep using connections pinned to a demoted, now read-only primary. Connection lifetime is now bounded at one hour by default and can be tuned with `database.max_lifetime`.
* Fixed issue: Importing a license whose certificate chain had expired reported `license certificate comes from an invalid issuer`, pointing at the signing authority rather than at the expiry. An expired or not-yet-effective certificate chain now reports a dedicated message that includes the relevant timestamp. Certificates from a genuinely unknown authority still report an invalid issuer.
* Fixed issue: The current data plane core count included instances that had stopped sending heartbeats, which stay in **LostConnection** for up to two hours before being marked offline, so the Dashboard's core usage remained inflated long after a data plane was scaled down or crashed. Only connected instances in standard running mode are counted now. License accounting, which is computed from heartbeat usage, is unchanged.

#### Console (Dashboard)[​](#3917-fixes-console "Direct link to Console (Dashboard)")

* Fixed issue: The route paths and service hosts forms allowed adding entries beyond the schema limits of 64 paths and 32 hosts. Creating such a resource failed with a raw server error, and editing one could store a configuration that `adc validate` and `adc sync` later rejected. The **Add** control is now hidden once a list reaches its limit, while lists that are already over the limit still show every entry so the excess can be removed.

## 3.9.16[​](#3916 "Direct link to 3.9.16")

**Release Date**: 2026-07-10

### Upgrade Notes[​](#3916-upgrade-notes "Direct link to Upgrade Notes")

Upgrade note — higher default gateway memory usage (Helm)

The 3.9.16 Helm chart raises several Data Plane shared memory (`lua_shared_dict`) defaults, so a Helm-deployed gateway reserves about **365 MiB more** shared memory at startup than the previous chart:

| Shared dictionary                                                   | Previous    | 3.9.16 chart |
| ------------------------------------------------------------------- | ----------- | ------------ |
| `prometheus-metrics` (advanced metrics)                             | 15 MiB      | 128 MiB      |
| `kubernetes`, `nacos`, `nacos-stream`, `consul` (service discovery) | 20 MiB each | 64 MiB each  |
| `tracing_buffer` (SkyWalking)                                       | 10 MiB      | 32 MiB       |
| `api-calls-for-portal`                                              | 10 MiB      | 64 MiB       |

This change is in the Helm chart's shared-dict values (the gateway image defaults are unchanged), so it applies to Helm-based deployments. Before upgrading the chart, raise the gateway container's memory `requests` and `limits` so the gateway is not OOM-killed. You can lower any dictionary you do not need through the chart's shared-dict values.

Upgrade note — additional plugin secret fields are encrypted at rest

The Control Plane now encrypts additional credential-bearing plugin fields at rest. Because API7 EE upgrades the Control Plane before the Data Plane, during the upgrade window a 3.9.16 Control Plane encrypts these fields while an older 3.9.15 Data Plane cannot decrypt them, which can cause the affected plugins to fail until the Data Plane is also upgraded.

The newly encrypted fields, by plugin, are:

* **limit-count**, **limit-count-advanced**, and **graphql-limit-count**: `redis_password`, `sentinel_password`
* **limit-conn**: `redis_password`
* **limit-req**: `redis_password`
* **ai-rate-limiting**: `redis_password`, `sentinel_password`
* **elasticsearch-logger**: `headers` (the custom authentication headers)
* **ai-cache**: `redis_password`, `semantic.embedding.openai.api_key`, `semantic.embedding.azure_openai.api_key`
* **ai-lakera-guard**: `api_key`

If you use any of these plugins with the listed fields, upgrade the Data Plane to 3.9.16 promptly after the Control Plane, and avoid editing those plugins until both sides are on 3.9.16.

Upgrade note — forwarded headers are trusted only from trusted addresses

The gateway now uses `apisix.trusted_addresses` to decide whether client-supplied `X-Forwarded-*` and RFC 7239 `Forwarded` headers are trusted. When `trusted_addresses` is not configured, or when the request comes from an untrusted address, the gateway overwrites `X-Forwarded-Proto`, `X-Forwarded-Host`, and `X-Forwarded-Port` with gateway-observed values and clears the `Forwarded` header before proxying upstream. If an upstream application depends on the original forwarded protocol, host, or port sent by a trusted load balancer or reverse proxy, configure that proxy's IP or CIDR in `trusted_addresses`.

Upgrade note — OpenID Connect silent re-authentication is no longer enabled by default

The `openid-connect` plugin no longer sets `refresh_session_interval` to `900` seconds by default. Periodic silent re-authentication now happens only when `refresh_session_interval` is explicitly configured. If your deployment relied on the previous 900-second refresh behavior, set `refresh_session_interval: 900` before or during the upgrade.

Upgrade note — built-in user login policy is stricter

Built-in Dashboard users are now temporarily locked out after repeated failed password attempts. The default policy is enabled, bans the user and source IP after 5 consecutive failures, and lasts 15 minutes. Administrators can tune or disable it through the new login failure restriction system setting. New passwords and passwords changed after upgrade must also be at least 12 characters and still satisfy the existing complexity requirements. Existing passwords are not revalidated at sign-in.

If a built-in user enables two-factor authentication, HTTP Basic Auth for that user is rejected because Basic Auth cannot provide a second factor. Use access tokens for programmatic integrations instead; token authentication is sent with the `X-API-KEY` header and does not require a 2FA verification code.

Upgrade note — SQL Server deployments enable snapshot reads on first startup

For SQL Server-backed deployments, the Control Plane now creates and prepares the database before other components connect, and enables `READ_COMMITTED_SNAPSHOT` to prevent gateway configuration reads from blocking behind writes. On an existing SQL Server database where this setting is still disabled, the first startup applies the database-level change with `ROLLBACK IMMEDIATE`; in-flight database transactions and sessions can be disconnected once, after which connection pools reconnect and later starts are no-ops.

### Features[​](#3916-features "Direct link to Features")

#### Plugins[​](#3916-features-plugins "Direct link to Plugins")

* **[AI Cache](https://docs.api7.ai/hub/ai-cache.md)** (new plugin)
  <!-- -->
  * Caches LLM responses in Redis so repeated prompts can be served without calling the upstream model again. It supports exact-match caching, optional semantic (L2) matching through embeddings and RediSearch, streaming response caching and replay, configurable bypass rules, and Prometheus metrics for cache hits, misses, bypasses, and embedding latency.
* **[AI Lakera Guard](https://docs.api7.ai/hub/ai-lakera-guard.md)** (new plugin)
  <!-- -->
  * Screens AI traffic through the Lakera Guard API to detect prompt injection and other unsafe content. The `direction` option (`input`, `output`, or `both`) selects whether the plugin scans request prompts, LLM responses (including streaming responses), or both. Flagged traffic is blocked with a configurable `deny_code`, or only logged when `action` is set to `alert`.
* **[AI Aliyun Content Moderation](https://docs.api7.ai/hub/ai-aliyun-content-moderation.md)**
  * Added `request_check_roles` to choose which request roles are moderated (`user`, `tool`, and/or `system`). `user` and `tool` content follow `request_check_mode` (`last` or `all`, default `last`), while `system` content is checked on every request when selected. Long content is now split into chunks in linear time and is multi-byte (UTF-8) safe.
* **[AI AWS Content Moderation](https://docs.api7.ai/hub/ai-aws-content-moderation.md)**
  * Request moderation now runs after AI protocol detection and checks the decoded prompt content that the upstream LLM sees, rather than the raw HTTP JSON envelope. Deny responses are returned in a provider-compatible format, with configurable `check_request`, `deny_code`, and `deny_message`.
* **[Elasticsearch Logger](https://docs.api7.ai/hub/elasticsearch-logger.md)**
  * Added support for authenticating to Elasticsearch with custom request headers via the `headers` option, for example an `Authorization: Bearer <token>` or API-key header, as an alternative or complement to basic `auth`.
* **Rate-limiting plugins**
  * Added Redis connection keepalive settings (`redis_keepalive_timeout` and `redis_keepalive_pool`) for the Redis and Redis Cluster policies in **[Limit Count](https://docs.api7.ai/hub/limit-count.md)**, **[Limit Count Advanced](https://docs.api7.ai/hub/limit-count-advanced.md)**, **[GraphQL Limit Count](https://docs.api7.ai/hub/graphql-limit-count.md)**, and **[AI Rate Limiting](https://docs.api7.ai/hub/ai-rate-limiting.md)**, so operators can tune idle timeout and connection pool size.

#### Data Plane[​](#3916-features-data-plane "Direct link to Data Plane")

* Added `apisix.trusted_addresses`, which controls whether the gateway trusts client-supplied `X-Forwarded-*` and `Forwarded` headers based on the resolved client address.
* Added `apisix.match_uri_encoded_slash`. When enabled, an encoded slash (`%2F`) stays encoded during route matching so it can be treated as part of a path parameter instead of a path separator.
* Added `apisix.max_post_args_readable_size` (default 64 MiB), which bounds how much JSON or multipart request body data is read when matching `post_arg.*` route predicates. Set it to `0` to disable the limit.
* In standalone YAML mode, environment-variable placeholders are now resolved before YAML parsing. Unquoted placeholders can become native booleans or numbers, while quoted placeholders stay strings, preserving large IDs and token values exactly.

#### Control Plane[​](#3916-features-control-plane "Direct link to Control Plane")

* Added TOTP two-factor authentication for built-in Dashboard users. Users can enroll, enable, disable, and recover 2FA from their account settings, and administrators can reset a user's 2FA state.
* Added login failure restriction for built-in users. Repeated failed logins temporarily lock the user and source IP, emit an audit event, and return a clear lockout message.
* Added the Dashboard UI for two-factor authentication: account setup with QR code and recovery codes, an OTP step during login, and an administrator action to reset a user's 2FA state.
* Updated password forms and generated passwords to use the new 12-character minimum length.

### Fixes[​](#3916-fixes "Direct link to Fixes")

#### Plugins[​](#3916-fixes-plugins "Direct link to Plugins")

* **[AI Proxy](https://docs.api7.ai/hub/ai-proxy.md)** and **[AI Proxy Multi](https://docs.api7.ai/hub/ai-proxy-multi.md)**

  * Fixed issue: Anthropic Messages requests that contained tool results mixed with other content could be converted into an invalid OpenAI Chat message order, causing OpenAI-compatible upstreams to reject every later request in the session. Tool messages are now emitted immediately after the assistant tool-call message, and adjacent text or media is preserved in a following user message.
  * Fixed issue: Several Anthropic-to-OpenAI conversion details diverged from LiteLLM-compatible behavior, including tool name sanitization, long tool-name collision handling, adaptive thinking effort, structured-output schema extraction, empty array encoding, and content block shaping.
  * Fixed issue: Structured chat content could reach downstream AI plugins as a table and cause request processing errors. Protocol adapters now flatten text content consistently before AI guard and cache plugins consume it.
  * Fixed issue: A failure while constructing the `ai-proxy-multi` working instance pool could raise a Lua error and destructively clear pool state. The failure path is now nil-safe and non-destructive.

* **[gRPC Transcode](https://docs.api7.ai/hub/grpc-transcode.md)**
  * Fixed issue: Empty protobuf `repeated` fields were encoded as `{}` instead of JSON arrays (`[]`). Empty repeated fields now appear as arrays, including nested and descriptor-set based messages.

* **[Key Auth](https://docs.api7.ai/hub/key-auth.md)** and other consumer authentication plugins
  <!-- -->
  * Fixed issue: If a consumer credential referenced a secret that could not be resolved, the Data Plane could still index the unresolved literal value and authenticate requests with it. Consumer authentication now fails closed when a referenced secret cannot be resolved.

* **Secret references**
  * Fixed issue: Updates or deletions of `/secrets` configuration did not invalidate the secret LRU cache, so old secret values could continue to be used until cache expiry or indefinitely. Secret references are now re-resolved after secret configuration changes.

* **[Proxy Rewrite](https://docs.api7.ai/hub/proxy-rewrite.md)**
  * Fixed issue: With `use_real_request_uri_unsafe` and `uri` configured together, the request query string was dropped during URI rewriting. The original query string is now preserved and correctly merged when the rewritten URI already contains a query.

* **[Loggly](https://apisix.apache.org/docs/apisix/plugins/loggly/)**
  * Fixed issue: Batched Loggly entries from different routes could use the wrong token or tags because the async handler reused the latest route configuration. Each batch processor now keeps its own route configuration.

* **[Datadog](https://docs.api7.ai/hub/datadog.md)**
  * Fixed issue: Large coalesced DogStatsD datagrams could exceed the common 8192-byte agent buffer and be silently truncated. The plugin now coalesces only when the payload fits, otherwise it falls back to one datagram per metric.

* **[Zipkin](https://docs.api7.ai/hub/zipkin.md)**
  * Fixed issue: Requests explicitly marked as unsampled still built full span tag tables and access-phase child spans. Unsampled requests now skip that extra tracing work while preserving trace propagation.

* **[OpenTelemetry](https://docs.api7.ai/hub/opentelemetry.md)**

  * Fixed issue: Updating OpenTelemetry plugin metadata at runtime did not rebuild the tracer used for injected core spans, so those spans could keep using stale collector or resource settings until worker recycle. The tracer now refreshes when metadata changes.
  * Fixed issue: `additional_attributes` were evaluated before log-phase variables were populated, so attributes that depend on final request state could be missing or stale. They are now evaluated in the log phase.

* **[OpenID Connect](https://docs.api7.ai/hub/openid-connect.md)**
  * Fixed issue: `refresh_session_interval` incorrectly defaulted to `900`, enabling silent re-authentication even when users did not configure it. The default is removed (see Upgrade Notes).

* **[MQTT Proxy](https://docs.api7.ai/hub/mqtt-proxy.md)**
  * Fixed issue: `protocol_name` was required even though the standard default is `MQTT`. It is now optional and defaults to `MQTT`.

* **[Forward Auth](https://docs.api7.ai/hub/forward-auth.md)**
  * Fixed issue: When `request_method` was `POST`, the authorization request could forward the client's `Transfer-Encoding`, `Content-Length`, and `Expect` headers after the body had already been buffered, producing inconsistent request framing. These client framing headers are no longer copied to the auth service.

* **[Authz CASBIN](https://apisix.apache.org/docs/apisix/plugins/authz-casbin/)**
  * Fixed issue: Routes using different Casbin model or policy shapes could trigger `casbin enforce error` / `invalid request size` after switching between them. The bundled `lua-casbin` dependency is updated to include the enforcement fixes.

* **[AI Aliyun Content Moderation](https://docs.api7.ai/hub/ai-aliyun-content-moderation.md)**
  * Fixed issue: Returning `ngx.OK` from the body filter could interrupt later body-filter processing. The plugin now returns normally so other filters can continue.

* **[Request ID](https://docs.api7.ai/hub/request-id.md)**
  * Fixed issue: Configuring `algorithm: range_id` without the optional range object could return `HTTP 500`. The range object now has a default value.

* **[Workflow](https://docs.api7.ai/hub/workflow.md)**
  * Fixed issue: Workflow action plugins could run `_meta.pre_function` hooks before workflow skipped or executed the action, changing behavior even for actions that should not run. Workflow now decides whether to run the action before executing those meta hooks.

* **[Redirect](https://apisix.apache.org/docs/apisix/plugins/redirect/)**
  * Fixed issue: `http_to_https` only redirected requests whose scheme was exactly `http`, so a request arriving with a non-HTTP, non-HTTPS scheme, for example through a forged `X-Forwarded-Proto`, was not redirected. It now redirects every non-HTTPS scheme.

* **[Response Rewrite](https://docs.api7.ai/hub/response-rewrite.md)**
  * Fixed issue: When the upstream response was compressed (gzip or brotli), `filters` were applied to the compressed bytes and did not match, producing a corrupted body. The response is now decoded before filters run.

* **Batch Requests**
  * Fixed issue: When a pipelined sub-request timed out, the response array could contain more entries than there were sub-requests. The number of sub-responses now always matches the number of sub-requests.

* **Tencent Cloud CLS**
  * Fixed issue: With `include_req_body` enabled, the request body was not captured because it was not read in the access phase. The body is now read so that it is included in uploaded logs when sampling allows it.

* **[Attach Consumer Label](https://docs.api7.ai/hub/attach-consumer-label.md)**
  * Fixed issue: A client could spoof a configured header when the matched Consumer had no labels, because the plugin overwrote the header only when a label value was present. Configured headers are now always stripped from the client request, even when the Consumer has no matching label.

* **[Authz Keycloak](https://docs.api7.ai/hub/authz-keycloak.md)**
  * Fixed issue: With `lazy_load_paths` enabled, the request query string was included when resolving the Keycloak resource by URI, so requests with query parameters could fail to match the intended resource. The query string is now stripped before resolution.

* **CAS Auth**
  * Fixed issue: The CAS single-logout (SLO) callback `POST` was proxied to the upstream instead of being handled by the plugin. The callback is now terminated by the plugin and is no longer forwarded upstream.

* **[gRPC Web](https://docs.api7.ai/hub/grpc-web.md)**
  * Fixed issue: A debug log statement wrote the decoded request body to the error log. The statement has been removed so request payloads are no longer leaked into logs.

#### Data Plane[​](#3916-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: Log rotation could leave some log files open after only part of the file set was rotated. The gateway now reopens logs correctly after partial rotation.
* Fixed issue: Environment-variable substitution in configuration directives could match the wrong variable when one variable name was a prefix of another. Names are now resolved exactly.
* Fixed issue: After a transient DNS or service-discovery failure, a domain-name upstream could remain stuck returning `HTTP 503` even after the name resolved again. The upstream now recovers once resolution succeeds.
* Fixed issue: Upgraded the Prometheus metrics library (`nginx-lua-prometheus-api7` to `0.20260623`) to remove duplicate metric series that could cause a scrape to be rejected.

#### Control Plane[​](#3916-fixes-control-plane "Direct link to Control Plane")

* Fixed issue: Gateway instances could be marked **OutOfSync** for a short window immediately after a configuration revision changed, before the next heartbeat reported the new revision. A grace period now keeps recently heartbeating instances **Healthy** during that normal synchronization window.
* Fixed issue: Compatibility reports were capped at 200 unordered items, so large reports could hide errors and differ between gateway instances. The Control Plane now stores the full sorted report and computes compatibility from all items.
* Fixed issue: A secret provider request body could match a different provider type than the provider named in the URL path, causing the Data Plane to discard or misread the stored secret. The Control Plane now validates the body against the selected provider type.
* Fixed issue: The Control Plane accepted some core resource configurations that the Data Plane silently discarded, including invalid TLS, filter, and IP match configurations. These are now rejected by validation before publishing.
* Fixed issue: IPv6 upstream node hosts were rejected by the OpenAPI schema. IPv6 hosts are now accepted.
* Fixed issue: Batch `ssls` validation used the SNI schema instead of the SSL schema, so entries without required certificate fields could pass validation. Batch SSL validation now uses the correct schema.
* Fixed issue: Audit log export returned only the first 256 rows. Exports now include all matching audit logs.
* Fixed issue: Credential lookup indexes could be dropped by components that do not run database migration, and some startup schema repairs rebuilt current indexes unnecessarily. Schema repair now keeps current indexes and repairs only stale shapes.
* Fixed issue: Heartbeat and instance status queries could become slow on large deployments. Additional indexes and Go-side status computation improve these lookups.

## 3.9.15[​](#3915 "Direct link to 3.9.15")

**Release Date**: 2026-06-22

### Upgrade Notes[​](#3915-upgrade-notes "Direct link to Upgrade Notes")

Upgrade note — new plugin fields require both Control Plane and Data Plane on 3.9.15

This release adds new plugin configuration fields: `log_format_extra` on the logger plugins and Redis session storage (`session.storage` and `session.redis`) for `openid-connect`. Because API7 EE upgrades the Control Plane before the Data Plane, a 3.9.15 Control Plane accepts these fields while an older Data Plane does not yet implement them. Configure these new options only after both the Control Plane and the Data Plane are upgraded to 3.9.15.

Upgrade note — SSO-only domains can no longer use local sign-in

In the Developer Portal, the SSO-only domain policy is now enforced on the server, not only in the browser. Local sign-in and sign-up methods — email and password sign-in and sign-up, magic link, and password reset — are now rejected for email addresses whose domain is mapped to an SSO-only provider. Previously these endpoints could be called directly, bypassing the SSO requirement. If users on SSO-managed domains relied on local sign-in, ensure they sign in through SSO after upgrading.

Upgrade note — Developer Portal API proxy is now default-deny

The Developer Portal's API proxy no longer forwards arbitrary backend endpoints. Only an explicit allowlist of organization-scoped resources (API products, applications, credentials, subscriptions, and DCR providers) is proxied; any other path now returns `HTTP 404`. Read-only resources reject write methods with `HTTP 405`, writes to applications, credentials, and subscriptions require an owner or admin role (`HTTP 403` otherwise), and organization-scoped requests require an authenticated session (`HTTP 401` otherwise). If you have integrations that reached other endpoints through the portal proxy, update them to use a supported API path or call the Control Plane directly.

Upgrade note — Developer Portal sign-up consent configuration changed

The Developer Portal sign-up consent options `tosURL` and `beforeSignUpButtonHtml` have been replaced by a single `signUpConsentLabel`, which holds the custom HTML shown next to the consent checkbox. Terms-of-Service acceptance is now enforced only when `signUpConsentLabel` is configured. If your deployment set `tosURL` or `beforeSignUpButtonHtml`, migrate the value to `signUpConsentLabel` before upgrading.

### Features[​](#3915-features "Direct link to Features")

#### Plugins[​](#3915-features-plugins "Direct link to Plugins")

* **[OpenID Connect](https://docs.api7.ai/hub/openid-connect.md)**
  * Added Redis as a session storage backend. Set `session.storage` to `redis` (the default remains `cookie`) and configure the connection under `session.redis` (host, port, authentication, database, key prefix, TLS, and timeouts). Storing sessions in Redis lets multiple gateway nodes and routes share a session and refresh tokens centrally. The Redis password is encrypted at rest, and existing cookie-based configurations are unaffected.

#### Data Plane[​](#3915-features-data-plane "Direct link to Data Plane")

* The logger plugins now accept a `log_format_extra` option that adds fields on top of the default log entry instead of replacing it. Previously, setting `log_format` replaced the entire default entry and dropped fields that have no scalar variable (such as header maps, the parsed query string, the composed URL, and computed latencies); `log_format_extra` keeps the full default entry and overlays your additional fields. When `log_format` is set, it still takes precedence and `log_format_extra` is ignored. A new `$upstream_unresolved_host` variable is also available, recording the configured upstream host or domain before DNS resolution.
* The PROXY protocol for stream (TCP) proxying can now be enabled per listening port. Each `stream_proxy.tcp` entry accepts two optional fields — `proxy_protocol` (accept the PROXY protocol on that port) and `proxy_protocol_to_upstream` (send it to the upstream) — which override the global `proxy_protocol.enable_tcp_pp` and `enable_tcp_pp_to_upstream` defaults. Ports without these fields keep the global behavior, so existing configurations are unchanged.
* Debug sessions now capture each sampled request's log lines (all levels) and attach them to that request's trace as span events. The per-request logs appear alongside the trace in the debug session view, making it easier to correlate log output with a specific traced request.

#### Developer Portal[​](#3915-features-developer-portal "Direct link to Developer Portal")

* The Developer Portal can now run inside a custom PostgreSQL schema instead of only the default `public` schema. The schema is set in the portal configuration (kept out of the connection URL); the portal applies it per connection and runs its migrations within that schema.

### Fixes[​](#3915-fixes "Direct link to Fixes")

#### Plugins[​](#3915-fixes-plugins "Direct link to Plugins")

* **[JWT Auth](https://docs.api7.ai/hub/jwt-auth.md)**
  * Fixed issue: A token whose signature was malformed (wrong length or not valid base64url) caused the verifier to raise an error and return `HTTP 500` instead of rejecting the request. Malformed signatures are now rejected with `HTTP 401`.
* **[AI Proxy](https://docs.api7.ai/hub/ai-proxy.md)** and **[AI Proxy Multi](https://docs.api7.ai/hub/ai-proxy-multi.md)**
  * Fixed issue: When an upstream LLM provider returned an `HTTP 429` or `5xx` response, the gateway returned only the status code with an empty body, discarding the provider's error details (such as rate-limit information). The upstream error response body and its `Content-Type` are now forwarded to the client when the request is not retried.
* **[Loki Logger](https://docs.api7.ai/hub/loki-logger.md)**
  * Fixed issue: When label values referenced per-request variables (for example `$service_name` or `$host`), the value resolved for one request was reused for the other requests in the same batch and could remain frozen across requests, so logs were sent under the wrong labels. Labels are now resolved per request, and each request's logs are grouped into their own Loki stream under its own label set.
* **[HMAC Auth](https://docs.api7.ai/hub/hmac-auth.md)**
  * Fixed issue: With `validate_request_body` enabled, the request body the plugin buffers to verify the signature was limited to 512 KiB by default, rejecting larger bodies that the upstream would accept, and an over-limit body was reported as a misleading `HTTP 401`. The default `max_req_body_size` is now 64 MiB (aligned with APISIX), and a body that exceeds the limit is rejected with `HTTP 413`.

#### Data Plane[​](#3915-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: With consistent-hashing (`chash`) load balancing, the hash ring was rebuilt from only the currently healthy nodes whenever a node's health changed, which — especially with uneven node weights — reshuffled the ring and moved keys that were already mapped to healthy nodes. The ring is now rebuilt only on configuration or weight changes, and node health is evaluated at selection time, so transient health changes no longer disrupt the sticky routing of unaffected keys. This applies to both upstream `chash` and `ai-proxy-multi` `chash` balancing.

#### Control Plane[​](#3915-fixes-control-plane "Direct link to Control Plane")

* Fixed issue: A Data Plane already running the exact version the Control Plane expects could still be shown as **Upgrade Required** in the Dashboard when it reported invalid plugin or configuration fields, even though no newer version was available to upgrade to. A Data Plane on the expected version is now kept compatible; the reported configuration problems are still surfaced separately as configuration error and warning indicators.

#### Developer Portal[​](#3915-fixes-developer-portal "Direct link to Developer Portal")

* Fixed issue: Several two-factor authentication errors were not surfaced — enabling or disabling 2FA with an incorrect password appeared to succeed, the backup-codes dialog could appear empty, and entering a wrong TOTP code at sign-in silently proceeded into the portal. Incorrect passwords and TOTP codes are now correctly rejected with a clear error.

## 3.9.14[​](#3914 "Direct link to 3.9.14")

**Release Date**: 2026-06-15

### Breaking Changes[​](#3914-breaking-changes "Direct link to Breaking Changes")

#### Plugins[​](#3914-breaking-changes-plugins "Direct link to Plugins")

* **[JWT Auth](https://docs.api7.ai/hub/jwt-auth.md)**

  Upgrade note

  `jwt-auth` now checks a token's `exp` (expiration) and `nbf` (not-before) claims when they are present, including when `claims_to_verify` is unset or an empty list. Previously, an unset or empty list on the route or service accepted any correctly signed token, **including expired ones**. After the Data Plane is upgraded, a present `exp` or `nbf` that is expired, not yet valid, or not a number is rejected with `HTTP 401`. With the list unset or empty, a token may omit either claim.

  Set `claims_to_verify` on the route or service's `jwt-auth` configuration. For clients that always send `exp` and omit `nbf`, set `claims_to_verify: ["exp"]` to require a valid expiration. An explicit list validates only the claims it names.

* **[HMAC Auth](https://docs.api7.ai/hub/hmac-auth.md)**

  Upgrade note

  The `hmac-auth` plugin now defaults `signed_headers` to `["date"]`. After the Data Plane is upgraded, any `hmac-auth` configuration that does not explicitly set `signed_headers` requires the client signature to cover the `Date` header. Clients that were not signing `Date` will start receiving `HTTP 401` with `client request can't be validated`.

  Before upgrading, ensure your clients sign the `Date` header, or set `signed_headers` explicitly in the plugin configuration to match what your clients sign.

* **Batch Requests**

  Upgrade note

  The `batch-requests` plugin now bounds the size of a batch. The number of pipelined sub-requests is limited by a new `max_pipeline_items` plugin-metadata option (default `1000`); a batch that exceeds the limit is rejected with `HTTP 400`. Pipeline entries that contain fields other than the documented ones are now rejected, and the per-batch `timeout` must be at least `1` millisecond.

  If you send batches larger than 1000 sub-requests, raise `max_pipeline_items` in the plugin metadata. If your clients send entries with undocumented fields, remove them before upgrading.

#### Developer Portal[​](#3914-breaking-changes-developer-portal "Direct link to Developer Portal")

* **Developer authentication is enforced only for published API products**

  Upgrade note

  Previously, API products in **draft** state also had their developer authentication rules synced to the gateway, so routes belonging to a draft product required developer authentication. Starting in 3.9.14, only **published** API products contribute developer-authentication rules to the data plane.

  After upgrading, routes that belong to a draft (unpublished) API product no longer require developer authentication until the product is published. If you relied on draft products being protected, publish them or restrict access another way.

### Upgrade Notes[​](#3914-upgrade-notes "Direct link to Upgrade Notes")

Upgrade note — default request body size limits

The `forward-auth`, `ai-proxy`, and `ai-proxy-multi` plugins now enforce a `max_req_body_size` limit when they read the request body (default 64 MB). A request whose body exceeds the limit is rejected with `HTTP 413 Request Entity Too Large`.

If you proxy large request bodies through these plugins, set `max_req_body_size` explicitly to a value that fits your workload before upgrading.

Upgrade note — additional plugin secret fields are encrypted at rest

The Control Plane now encrypts additional credential-bearing plugin fields at rest. Because API7 EE upgrades the Control Plane before the Data Plane, during the upgrade window a 3.9.14 Control Plane encrypts these fields while an older 3.9.13 Data Plane cannot decrypt them, which can cause the affected plugins to fail until the Data Plane is also upgraded.

The newly encrypted fields, by plugin, are:

* **[AI AWS Content Moderation](https://docs.api7.ai/hub/ai-aws-content-moderation.md)**: `comprehend.secret_access_key`
* **Azure Functions**: `master_apikey`, `authorization.apikey`
* **DingTalk Auth**: `secret_fallbacks`
* **[Error Log Logger](https://docs.api7.ai/hub/error-log-logger.md)**: `kafka.brokers.sasl_config.password`
* **Feishu Auth**: `secret_fallbacks`
* **[HTTP Logger](https://docs.api7.ai/hub/http-logger.md)**: `auth_header`
* **[Kafka Logger](https://docs.api7.ai/hub/kafka-logger.md)**: `brokers.sasl_config.password`
* **Loggly**: `customer_token`
* **OpenFunction**: `authorization.service_token`
* **[OpenID Connect](https://docs.api7.ai/hub/openid-connect.md)**: `session.secret`
* **[Splunk HEC Logging](https://docs.api7.ai/hub/splunk-hec-logging.md)**: `endpoint.token`

If you use any of these plugins with the listed fields, upgrade the Data Plane to 3.9.14 promptly after the Control Plane, and avoid editing those plugins until both sides are on 3.9.14.

### Features[​](#3914-features "Direct link to Features")

#### Plugins[​](#3914-features-plugins "Direct link to Plugins")

* **[Limit Count](https://docs.api7.ai/hub/limit-count.md)**
  * The advanced rate-limiting capabilities previously provided by `limit-count-advanced` are now built into `limit-count`. You can configure a sliding window (`window_type` set to `sliding`), the `redis-sentinel` policy, multiple rate-limiting rules (`rules`), a `count` derived from a request variable, and shared counters via `group` and `sync_interval`. The separate `limit-count-advanced` plugin remains available for backward compatibility.

* **[AI Proxy](https://docs.api7.ai/hub/ai-proxy.md)**
  * The upstream LLM request body is now JSON-encoded with sorted keys. This produces a stable, byte-identical body for equivalent requests, which improves prompt-cache hit rates on LLM providers that cache by exact request payload.

* **[AI Proxy Multi](https://docs.api7.ai/hub/ai-proxy-multi.md)**
  * Added `max_retries` to bound how many fallback retries are attempted, and `retry_on_failure_within_ms` so that only a failure occurring within the configured window triggers a fallback. A slow failure is returned to the client directly instead of multiplying the total wait time across fallback instances.

* **[AI Prompt Guard](https://docs.api7.ai/hub/ai-prompt-guard.md)** and the AI content-moderation plugins
  <!-- -->
  * Added `fail_mode` (`skip`, `warn`, or `error`, default `skip`) to control how a consumer-bound plugin handles a request whose format it does not recognize: `skip` passes the request through, `warn` passes it through and logs, and `error` rejects it with `HTTP 400`.

* **[OpenID Connect](https://docs.api7.ai/hub/openid-connect.md)**

  * Added support for the `lua-resty-session` session options (such as `cookie_name` and `cookie_path`), so the session cookie can be customized.
  * `client_secret` is now optional for local JWT verification modes (for example `bearer_only` with `public_key`, `use_jwks`, or `private_key_jwt`), where a client secret is not required.

* **CAS Auth**
  * `cas_callback_uri` now accepts an absolute URL, which is used as-is as the CAS service URL. This is useful when the gateway sits behind a proxy and the externally visible callback URL differs from the request path.

* **[Proxy Cache](https://docs.api7.ai/hub/proxy-cache.md)**
  * The in-memory cache strategy now honors the `Vary` response header. Responses are cached per variant computed from the headers listed in `Vary`, and responses with `Vary: *` are not cached.

* **[Kafka Logger](https://docs.api7.ai/hub/kafka-logger.md)**
  * Added the `api_version` option (Produce API version `0`, `1`, or `2`). Set it to `2` so that the message timestamp is carried to and stored by the broker; otherwise messages can be recorded without a timestamp.

#### Data Plane[​](#3914-features-data-plane "Direct link to Data Plane")

* Added built-in NGINX variables for AI requests (`$llm_model`, `$request_llm_model`, `$llm_prompt_tokens`, `$llm_completion_tokens`, `$llm_total_tokens`, `$llm_time_to_first_token`, `$llm_stream`) that can be referenced in the NGINX access log format to record the per-request LLM model and token usage.
* The Prometheus plugin now exports LLM token-distribution histograms (`apisix_llm_prompt_tokens_dist` and `apisix_llm_completion_tokens_dist`) and an `apisix_llm_latency` histogram that includes time-to-first-token (`type="ttft"`).
* The Prometheus plugin now adds MCP tool dimensions (`mcp_tool_name` and `mcp_request_type`) to HTTP metrics, so MCP `tools/call` traffic can be broken down by tool and request type.

#### Developer Portal[​](#3914-features-developer-portal "Direct link to Developer Portal")

* Added an **Approvals** workflow for the Developer Portal. Platform admins can review and accept or reject API-product subscription and developer-registration requests from the portal, with the applicant's organization name resolved for display. The acting administrator is recorded as the operator for auditing, and the Dashboard shows the resolved operator.
* Credential secrets (such as key-auth and basic-auth keys) are now returned only once, at creation time. Subsequent reads of the credential omit the secret value.
* Added an admin **Users** page to manage portal users — list, search, change role, ban or unban, and delete.
* Added two-factor authentication for portal sign-in.
* Added policy-based SSO sign-in: developers can be routed to a configured SSO provider based on their email domain, including anchored, case-insensitive regular-expression matching.
* Added a configurable Terms of Service acceptance step during sign-up.
* Added dark mode.

### Fixes[​](#3914-fixes "Direct link to Fixes")

#### Plugins[​](#3914-fixes-plugins "Direct link to Plugins")

* **[Error Page](https://docs.api7.ai/hub/error-page.md)**
  * Fixed issue: The plugin decided whether to render a custom error page based on the upstream status variable, which could replace error responses that actually came from the upstream service. It now classifies the response source — custom error pages are rendered only for errors generated by the gateway or plugins, while genuine error responses returned by the upstream are passed through unchanged.

* **Feishu Auth** and **DingTalk Auth**
  * Fixed issue: A client could supply a forged `X-Userinfo` header that was forwarded upstream. Both plugins now clear any client-supplied `X-Userinfo` header before authentication, so upstream services only receive plugin-verified identity information.

* **DingTalk Auth**
  * Fixed issue: Authentication failures and transient upstream failures were not distinguished. The plugin now returns `HTTP 401` for authentication errors and `HTTP 503` for transient DingTalk or upstream failures, with clearer error messages.

* **CAS Auth**

  * Fixed issue: The login callback did not validate the signed initiation cookie, allowing a crafted callback request to drive the post-login redirect. The callback now requires a valid signed initiation cookie and is rejected with `HTTP 401` otherwise.
  * Fixed issue: A single logout (SLO) `POST` request with an empty body returned `HTTP 500` instead of `HTTP 400`.

* **Authz Casdoor**

  * Fixed issue: The session cookie name was shared across Casdoor clients, so sessions for different clients could collide. The session cookie is now scoped per client.
  * Fixed issue: The gateway session was not tied to the Casdoor token lifetime, so it could continue to be reused after the token expired. The session now expires when the Casdoor token expires, forcing re-authentication.

* **[Authz Keycloak](https://docs.api7.ai/hub/authz-keycloak.md)**
  * Fixed issue: When static `permissions` were combined with `http_method_as_scope`, the derived method scope was written back to the reused plugin configuration, causing scopes to accumulate across requests. The permission list is now cloned before the method scope is appended.

* **[OPA](https://docs.api7.ai/hub/opa.md)**
  * Fixed issue: For a header listed in `send_headers_upstream` but absent from the OPA response, a client-supplied value could be forwarded upstream. Such headers are now cleared so only OPA-provided values reach the upstream.

* **[SAML Auth](https://docs.api7.ai/hub/saml-auth.md)**
  * Fixed issue: Reworked plugin loading and error handling — removed the `load_resty_saml` wrapper, disabled debug output by default, and returns a clean `HTTP 500` on authentication errors.

* **[AI Proxy](https://docs.api7.ai/hub/ai-proxy.md)**

  * Fixed issue: An upstream LLM timeout was mapped to `HTTP 500`. It is now mapped to `HTTP 504 Gateway Time-out`.
  * Fixed issue: In passthrough mode, the client's HTTP method and query string were not forwarded to the upstream. They are now preserved.

* **[AI Proxy Multi](https://docs.api7.ai/hub/ai-proxy-multi.md)**
  * Fixed issue: Health checks for domain-based upstreams could be unstable — a cached node picker could go stale after health checkers were created, and the health-check configuration could be mutated in place across requests.

* **[GraphQL Limit Count](https://docs.api7.ai/hub/graphql-limit-count.md)**
  * Fixed issue: The query nesting depth was miscalculated, making depth-based rate limiting inaccurate. Depth is now computed from the true maximum nesting depth with fragment expansion, and Content-Type matching tolerates a charset parameter.

* **[GraphQL Proxy Cache](https://docs.api7.ai/hub/graphql-proxy-cache.md)**

  * Fixed issue: A request whose `Content-Type` included a charset parameter was not recognized as a GraphQL request. Content-Type matching is now charset-tolerant.
  * Fixed issue: A `PURGE` request did not clear all `Vary` variants of a cached entry. All variants are now purged.

* **[AWS Lambda](https://docs.api7.ai/hub/aws-lambda.md)**
  * Fixed issue: IAM (SigV4) authentication failed for a request with URL-encoded or multi-value query parameters because the canonical query string was computed incorrectly.

* **AWS Secret Manager**
  * Fixed issue: Resolving a secret whose name contains a slash failed. Such names are now parsed correctly.

* **[Request ID](https://docs.api7.ai/hub/request-id.md)**
  * Fixed issue: The `nanoid` algorithm could produce duplicate or malformed IDs. IDs are now generated with a cryptographically secure random source and always use the valid nanoid alphabet.

* **[Proxy Mirror](https://docs.api7.ai/hub/proxy-mirror.md)**
  * Fixed issue: When mirroring a gRPC request, the original method path was not preserved on the mirrored request. It is now kept intact.

* **[Body Transformer](https://docs.api7.ai/hub/body-transformer.md)**
  * Fixed issue: XML-to-JSON transformation intermittently lost keys that used an XML namespace prefix. Namespaced keys are now preserved and accessible in the template.

* **[Elasticsearch Logger](https://docs.api7.ai/hub/elasticsearch-logger.md)**
  * Fixed issue: A dynamic index template using date placeholders could raise an error for an invalid template. The date formatting is now guarded.

* **Rate limiting (Limit Count, Limit Req, [Limit Conn](https://docs.api7.ai/hub/limit-conn.md))**
  * Fixed issue: Redis connections that differed only by database number or credentials could share the same keepalive connection pool, so a connection could be reused against the wrong database or identity. Connections are now isolated by database, credentials, and TLS settings; this also covers the `redis-sentinel` policy.

* **[Limit Conn](https://docs.api7.ai/hub/limit-conn.md)**
  * Fixed issue: A dynamic `burst` value that resolved to `0` was incorrectly rejected as invalid. It is now allowed.

#### Data Plane[​](#3914-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: When multiple logging plugins captured the response body on the same request, their response-body buffers could interfere with each other, producing truncated or mixed log output. Each logger now uses an isolated buffer.
* Fixed issue: Some logger plugins wrote debug logs that could expose credentials. These logs have been removed.
* Fixed issue: A logging plugin in the log phase could fail when the access phase had been short-circuited, for example by an authentication rejection.
* Fixed issue: A cached request header could keep a stale value when a plugin set the same header using a different letter case. Header cache keys are now normalized.
* Fixed issue: `consul` service discovery discarded all remaining nodes of a service when a single node entry was invalid. Invalid node entries are now skipped individually so the remaining healthy nodes are still used.
* Fixed issue: `nacos` service discovery failed in the stream subsystem because the required shared dictionary was not declared there.

#### Control Plane[​](#3914-fixes-control-plane "Direct link to Control Plane")

* Fixed issue: The `openid-connect` exemption that allows omitting `client_secret` was applied too broadly. It is now scoped to the OIDC flows that genuinely do not require a client secret.
* Fixed issue: Listing labels scoped to a gateway group returned the global labels for the resource type instead of the gateway-group-scoped labels.
* Fixed issue: Developer Portal organization invitations did not honor the configured email-verification requirement.

## 3.9.13[​](#3913 "Direct link to 3.9.13")

**Release Date**: 2026-05-22

### Breaking Changes[​](#3913-breaking-changes "Direct link to Breaking Changes")

#### Plugins[​](#3913-breaking-changes-plugins "Direct link to Plugins")

* **CAS Auth**

  Upgrade note

  The `cas-auth` plugin now requires a `cookie.secret` value of at least 32 characters. The plugin uses this secret to sign and verify the `CAS_REQUEST_URI` cookie, preventing a client-controlled cookie from changing the post-login redirect target.

  Before upgrading, update every existing `cas-auth` configuration with a shared `cookie.secret` across all gateway nodes.

### Upgrade Notes[​](#3913-upgrade-notes "Direct link to Upgrade Notes")

Upgrade note — proxy cache behavior

The `proxy-cache` and `graphql-proxy-cache` plugins now use safer cache behavior by default.

For `proxy-cache`, responses are isolated by consumer when the request has an authenticated consumer or remote user, unless the configured `cache_key` already contains an identity-bearing variable. The in-memory strategy also no longer caches responses whose upstream `Cache-Control` contains `private`, `no-store`, or `no-cache`, and both in-memory and on-disk strategies skip responses with `Set-Cookie` unless `cache_set_cookie` is set to `true`.

For `graphql-proxy-cache`, cache keys now include host, route, service, and consumer identity by default, and responses with `Set-Cookie` are skipped unless `cache_set_cookie` is set to `true`.

If you intentionally share cached responses across consumers, set `consumer_isolation: false`. If you intentionally cache responses with `Set-Cookie`, set `cache_set_cookie: true`.

### Features[​](#3913-features "Direct link to Features")

#### Plugins[​](#3913-features-plugins "Direct link to Plugins")

* **[AI Proxy](https://docs.api7.ai/hub/ai-proxy.md)**

  * Improved OpenAI-compatible streaming response throughput by reducing per-token flush and SSE parsing overhead. In internal single-worker benchmarks with a mock OpenAI upstream, peak streaming throughput increased from 44,102.6 tokens/s to 138,158.7 tokens/s, about 3.13x higher.
  * Improved large JSON request body handling for AI requests that use `post_arg.*` route variables. In internal benchmarks with 1 MB, 5 MB, and 10 MB OpenAI Chat Completions-compatible request bodies, throughput improved by 5.15x-5.35x when the gateway forwarded the original body, and by 2.47x-2.67x when the gateway rewrote the body before forwarding.
  * Added `streaming_flush_interval_ms` to control periodic flushing for streaming responses. The default is 10 ms, which reduces per-chunk flush overhead while keeping streaming latency bounded.

* **[OpenAPI to MCP](https://docs.api7.ai/hub/openapi-to-mcp.md)**
  * Added `allowed_hosts` to restrict which hosts a dynamically resolved `base_url` may target. When `allowed_hosts` is not configured, existing behavior is unchanged. The plugin also rejects malformed resolved URLs and non-HTTP(S) schemes with HTTP 400.

* **[Proxy Cache](https://docs.api7.ai/hub/proxy-cache.md)** and **[GraphQL Proxy Cache](https://docs.api7.ai/hub/graphql-proxy-cache.md)**
  * Added `consumer_isolation` and `cache_set_cookie` options to control the new safer cache behavior described in the upgrade note.

#### Control Plane[​](#3913-features-control-plane "Direct link to Control Plane")

* Alert policies can now automatically create Debug Sessions when alert conditions are triggered. Alert history records whether debug session creation succeeded and includes the created session IDs or error details.
* Fallback Control Plane storage now supports S3-compatible path-style endpoints, which enables integrations with providers such as MinIO that require bucket names in the URL path.

#### Console (Dashboard)[​](#3913-features-console "Direct link to Console (Dashboard)")

* Added Debug Sessions UI under Gateway Groups, including session list, create, stop, delete, trace list, trace waterfall detail, search and filtering, minimap, URL state sync, field formatting, and keyboard navigation.
* Added a copy button to delete/disable confirmation dialogs so users can copy the resource identifier before confirming destructive operations.
* Added search support to the service and route selector on the monitoring page.

#### Developer Portal[​](#3913-features-developer-portal "Direct link to Developer Portal")

* Added a Helm chart for deploying the Developer Portal on Kubernetes.

### Fixes[​](#3913-fixes "Direct link to Fixes")

#### Plugins[​](#3913-fixes-plugins "Direct link to Plugins")

* **[OpenID Connect](https://docs.api7.ai/hub/openid-connect.md)**
  * Fixed issue: Client-supplied identity headers (`X-Access-Token`, `X-Userinfo`, `X-ID-Token`, `X-Refresh-Token`) could be forwarded upstream instead of values validated by the plugin. These headers are now cleared or overwritten so upstream services only receive plugin-controlled identity values.
* **[Data Mask](https://docs.api7.ai/hub/data-mask.md)**
  * Fixed issue: The plugin could crash or produce incorrect masked output for multi-value query parameters, valueless query parameters, non-string JSON values, regex failures, and form parsing errors. It also no longer logs original sensitive values when regex substitution fails.
* **[ACL](https://docs.api7.ai/hub/acl.md)**
  * Fixed issue: `external_user_label_field_parser` and `external_user_label_field_separator` could be applied to consumer labels, causing incorrect allow or deny decisions. They now apply only to external-user label extraction.
* **[Chaitin WAF](https://docs.api7.ai/hub/chaitin-waf.md)** and **Wolf RBAC**
  * Fixed issue: The plugins used raw client-supplied IP headers when sending client IP information to their backend services. They now use the trusted real client IP resolved by the gateway.
* **Client Control**
  * Fixed issue: When a Global Rule plugin read the request body in the access phase, `client-control` on a route or service could not apply its body size override first, causing large requests to be rejected unexpectedly.

#### Control Plane[​](#3913-fixes-control-plane "Direct link to Control Plane")

* Fixed issue: Deleting a Secret that was still referenced by other resources could leave dangling references and cause gateway runtime errors. Secret deletion is now rejected while references exist.
* Fixed issue: Data Plane Manager certificates could fail hostname verification for older Data Planes when `dp_manager_address` contained both domain names and IP addresses.
* Fixed issue: Malformed gateway version strings in heartbeat payloads could crash compatibility validation. They are now handled as incompatible versions instead of causing a panic.
* Fixed issue: Invalid stream route CIDR/IP values and invalid `post_arg.*` JSON path expressions could be accepted by the Control Plane and later rejected or dropped by the Data Plane. These configurations are now rejected at the API level.
* Fixed issue: Sensitive encrypted field values could appear in logs when decrypting `AesEncrypt` fields failed. Logs now include only the value length.

#### Data Plane[​](#3913-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: Stream routes that referenced a service could keep using stale service-level plugin configuration until the route changed or the worker restarted.
* Fixed issue: Gateway workers could crash during startup when the etcd or DP Manager response was missing expected revision headers. The gateway now logs the problem and retries.
* Fixed issue: Stream workers could crash during config sync when status reporting was enabled.
* Fixed issue: The standard gateway runtime image did not honor the `TZ` environment variable for IANA timezone names because timezone data was missing.
* Fixed issue: The tracer could crash on HTTPS or HTTP/2 keepalive connections when tracing was enabled.
* Fixed issue: The gateway CLI wrote Control Plane mTLS client certificate files to the system temporary directory with overly broad permissions. These files are now written under the gateway config certificate directory with restricted permissions.

#### Console (Dashboard)[​](#3913-fixes-console "Direct link to Console (Dashboard)")

* Fixed issue: The OpenID Connect plugin code editor could collapse or become unreachable on small or highly zoomed viewports.
* Fixed issue: Deleting a published service from the service list could show a misleading "service not found" error toast after deletion succeeded.
* Fixed issue: List table defaults could be mutated by one page and leak invalid sorting parameters into the Gateway Instances page.
* Fixed issue: The plugin view drawer could show stale or incorrect JSON when switching between local, global, and metadata tabs.
* Fixed issue: Cached gateway group or portal IDs that no longer existed could lead to blank pages or 404 error toasts instead of redirecting to a valid fallback.

## 3.9.12[​](#3912 "Direct link to 3.9.12")

**Release Date**: 2026-05-08

### Features[​](#3912-features "Direct link to Features")

#### Plugins[​](#3912-features-plugins "Direct link to Plugins")

* **[AI Proxy](https://docs.api7.ai/hub/ai-proxy.md)**
  * Added support for the AWS Bedrock provider using the [Converse API](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html). Configure with `"provider": "bedrock"`, AWS IAM credentials in `auth.aws`, and an AWS region in `provider_conf.region`. Both non-streaming and streaming (ConverseStream) modes are supported — set `"stream": true` in the request body for streaming responses.
* **[OAS Validator](https://docs.api7.ai/hub/oas-validator.md)**
  * Added `spec_url` field that loads the OpenAPI specification from a remote HTTP(S) URL instead of embedding the full JSON inline in the plugin configuration. This is useful when the spec exceeds the 2 MB inline size limit of the `spec` field. The fetched spec is cached with a configurable TTL (default 1 hour, set via plugin metadata `spec_url_ttl`), and stale entries continue serving requests while the spec refreshes in the background. Additional fields `spec_url_request_headers` (custom HTTP headers, e.g. for authentication) and `timeout` (request timeout in milliseconds, default 10000) are available. `spec` and `spec_url` are mutually exclusive.

### Fixes[​](#3912-fixes "Direct link to Fixes")

#### Plugins[​](#3912-fixes-plugins "Direct link to Plugins")

* **[File Logger](https://apisix.apache.org/docs/apisix/plugins/file-logger/)**
  * Fixed issue: When both the `gzip` plugin and `file-logger` (with `include_resp_body` enabled) were configured on a route, `file-logger` incorrectly attempted to decompress the response body. Because APISIX itself performed the gzip encoding, the body available to the logger was still plaintext, causing spurious `inflate gzip err: INFLATE: data error` log entries and the response body being lost from the log output.
* **[Elasticsearch Logger](https://docs.api7.ai/hub/elasticsearch-logger.md)**
  * Fixed issue: Dynamic index patterns using date-time placeholders (such as `gateway-{%Y.%m.%d}`) stopped rotating after the first request. The resolved date string was written back to the shared configuration object, permanently overwriting the template until the worker process restarted.
* **[OAS Validator](https://docs.api7.ai/hub/oas-validator.md)**
  * Fixed issue: Header parameter validation was case-sensitive, causing requests to be rejected when the header name casing did not exactly match the OpenAPI specification (for example, sending `X-Request-Id` when the spec defined `x-request-id`). Header matching is now case-insensitive per RFC 7230 §3.2.

## 3.9.11[​](#3911 "Direct link to 3.9.11")

**Release Date**: 2026-04-30

### Upgrade Notes[​](#3911-upgrade-notes "Direct link to Upgrade Notes")

Upgrade note — Secret references CP→DP compatibility

This version extends secret references (`$secret://`, `$env://`) to work with all plugins centrally. After upgrading the Control Plane to 3.9.11, if you configure secret references in plugin fields that previously did not support them, a Data Plane still running 3.9.10 or earlier will not resolve those references — it will pass the literal `$secret://...` string to the plugin.

**Recommended upgrade path**: Upgrade all Data Planes to 3.9.11 before configuring secret references in newly-supported plugin fields. Plugins that already supported secrets in previous versions (jwt-auth, openid-connect, limit-count, authz-keycloak, csrf, limit-req, limit-conn) are not affected.

### Features[​](#3911-features "Direct link to Features")

#### Plugins[​](#3911-features-plugins "Direct link to Plugins")

* **[AI Proxy](https://docs.api7.ai/hub/ai-proxy.md)**

  * Added a passthrough protocol adapter that proxies unrecognized API formats (such as `/v1/images/generations`) through to the upstream without transformation. Previously, requests that did not match a known protocol (OpenAI Chat, Completions, Embeddings, etc.) were rejected.
  * Rewrote the Anthropic-to-OpenAI protocol converter using a whitelist body construction approach. This prevents Anthropic-specific fields (such as `metadata`, `top_k`, `thinking`, and `output_config`) from leaking through to OpenAI-compatible upstream providers, and improves conversion accuracy for tool use, system prompts, and multimodal content.
  * Upstream nginx variables (`$upstream_status`, `$upstream_addr`, `$upstream_response_time`, `$upstream_header_time`, `$upstream_connect_time`, `$upstream_response_length`) are now populated in access logs when ai-proxy uses cosocket transport to call LLM backends. Previously, these variables were empty because nginx's upstream module was bypassed.

* **[OAS Validator](https://docs.api7.ai/hub/oas-validator.md)**
  * Replaced the Go FFI-based OpenAPI validator with a pure-Lua implementation (`lua-resty-openapi-validator`). Internal benchmarks on a real-world large-scale OpenAPI specification (Stripe, \~414 endpoints) show the new validator is 2–7x faster per-request and compiles the spec 20x faster, while also reducing gateway image size by eliminating the Go shared library. The new validator additionally fixes correctness issues with path parameter routing, nullable schemas, allOf/anyOf merging, and adds support for validating form-encoded request bodies that the previous implementation could not handle.

* All plugins now support `$secret://` and `$env://` references in any configuration field automatically. Previously, only a handful of plugins (jwt-auth, openid-connect, limit-count, authz-keycloak, csrf, limit-req, limit-conn) had explicit secret reference support. This removes the need for each plugin to implement secret resolution individually.

#### Data Plane[​](#3911-features-data-plane "Direct link to Data Plane")

* A new distroless gateway image variant (`api7-ee-3-gateway-distroless`) is now available. Built from scratch with only the shared libraries, CA certificates, and timezone data needed to run the gateway, it eliminates OS packages that carry CVEs but are unused at runtime.

#### Console (Dashboard)[​](#3911-features-console "Direct link to Console (Dashboard)")

* Configuration compatibility warnings and errors are now displayed in a separate clickable badge on Data Plane instance cards. Clicking the badge opens a modal with a detailed table of all configuration issues (resource type, ID, severity level, and message), making it easier to identify and resolve config schema problems without confusing them with version compatibility status.

### Fixes[​](#3911-fixes "Direct link to Fixes")

#### Plugins[​](#3911-fixes-plugins "Direct link to Plugins")

* **[AI Proxy Multi](https://docs.api7.ai/hub/ai-proxy-multi.md)**
  * Fixed issue: After the Control Plane pushed a config update, health check validation logged noisy warnings (`unable to construct upstream for plugin: ai-proxy-multi`) because DNS resolution state was lost during the config table replacement.

* **[AI Rate Limiting](https://docs.api7.ai/hub/ai-rate-limiting.md)**
  * Fixed issue: AI instance names containing dots (such as `Qwen3.5-397B-10.249.238.157`) caused HTTP 500 errors because the name was incorrectly interpreted as a `ctx.var` path expression instead of a constant key.

* **[AI Request Rewrite](https://docs.api7.ai/hub/ai-request-rewrite.md)**
  * Fixed issue: Requests with no body produced a vague upstream error instead of returning a clear HTTP 400 Bad Request.

* **[AI Prompt Template](https://docs.api7.ai/hub/ai-prompt-template.md)**
  * Fixed issue: JSON parse error messages were garbled Lua table references (such as `table: 0x...`) instead of readable error strings.

* **[OpenTelemetry](https://docs.api7.ai/hub/opentelemetry.md)**
  * Fixed issue: Non-string values in `additional_attributes` (such as numbers or booleans from nginx variables) were silently dropped by the OpenTelemetry SDK. They are now coerced to strings before being added to spans.

* **[Limit Count](https://docs.api7.ai/hub/limit-count.md)**
  * Fixed issue: Redis credentials (`redis_password`, `redis_username`, `sentinel_password`) were embedded in rate-limiting group keys, exposing sensitive information in Redis keyspace and APISIX logs.

* **[Traffic Split (Stream)](https://docs.api7.ai/hub/traffic-split.md)**

  * Fixed issue: `ctx.var.route_id` always returned nil in stream (L4) context, causing match conditions based on `route_id` in traffic-split rules to never match.
  * Fixed issue: When traffic-split selected an upstream via `upstream_id` in stream context, the selection was ignored and the route's original upstream was always used.

#### Control Plane[​](#3911-fixes-control-plane "Direct link to Control Plane")

* Fixed issue: Warning-level entries in the configuration compatibility report incorrectly caused Data Plane instances to display "Upgrade Recommended" even when the Control Plane and Data Plane versions matched.

#### Data Plane[​](#3911-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: The batch processor entered an infinite timer loop during nginx worker shutdown, preventing graceful shutdown and flooding logs with `[alert]` messages.
* Fixed issue: The batch processor's `processed_entries` counter was reset when stale buffers were cleaned up, breaking delivery metrics for batch-processing plugins (such as http-logger, kafka-logger).
* Fixed issue: Active health check `request_body` configuration was silently ignored because the underlying healthcheck library expects the field to be named `http_req_body`. The schema field has been renamed to match.
* Fixed issue: Sensitive field values were exposed in error logs when encrypt/decrypt operations failed. Error messages no longer include the raw value.
* Fixed issue: During upgrades with newly added `encrypt_fields`, expected decrypt failures of pre-existing plaintext data generated noisy warn-level log entries. These are now logged at info level with an explanatory message.

## 3.9.10[​](#3910 "Direct link to 3.9.10")

**Release Date**: 2026-04-22

### Breaking Changes[​](#3910-breaking-changes "Direct link to Breaking Changes")

#### Plugins[​](#3910-breaking-changes-plugins "Direct link to Plugins")

* **[OpenAPI to MCP](https://docs.api7.ai/hub/openapi-to-mcp.md)**

  Upgrade note

  The OpenAPI2MCP service is no longer bundled inside the gateway image. It now runs as a separate sidecar container (`api7/openapi-to-mcp`), reducing the gateway image size by approximately 150 MB. If you use the `openapi-to-mcp` or `mcp-tools-acl` plugins, you must deploy the OpenAPI2MCP sidecar alongside the gateway. In Kubernetes, enable `openapiToMcp.enabled=true` in the gateway Helm chart. In Docker Compose, run the `api7/openapi-to-mcp` container in the same network namespace as the gateway.

### Upgrade Notes[​](#3910-upgrade-notes "Direct link to Upgrade Notes")

Upgrade note — additional plugin secret fields are encrypted at rest

The Control Plane now encrypts additional credential-bearing plugin fields at rest. Because API7 EE upgrades the Control Plane before the Data Plane, during the upgrade window a 3.9.10 Control Plane encrypts these fields while an older 3.9.9 Data Plane cannot decrypt them, which can cause the affected plugins to fail until the Data Plane is also upgraded.

The newly encrypted fields, by plugin, are:

* **AI Proxy**: `auth.header`, `auth.query`, `auth.gcp.service_account_json`
* **AI Proxy Multi**: the same fields under `instances.*`
* **AI RAG**: `embeddings_provider.azure_openai.api_key`, `vector_search_provider.azure_ai_search.api_key`
* **AWS Lambda**: `authorization.apikey`, `authorization.iam.accesskey`, `authorization.iam.secretkey`
* **OpenID Connect**: `client_rsa_private_key`
* **SAML Auth**: `secret_fallbacks`

If you use any of these plugins with the listed fields, upgrade the Data Plane to 3.9.10 promptly after the Control Plane, and avoid editing those plugins until both sides are on 3.9.10.

### Features[​](#3910-features "Direct link to Features")

#### Plugins[​](#3910-features-plugins "Direct link to Plugins")

* **[AI Proxy](https://docs.api7.ai/hub/ai-proxy.md)**, **[AI Proxy Multi](https://docs.api7.ai/hub/ai-proxy-multi.md)**

  * Added `override.request_body` for per-protocol deep-merge request body overrides and `override.llm_options` for provider-aware `max_tokens` mapping. Operators can set protocol-specific parameters (such as `max_tokens`, `stop_sequences`) as defaults or enforced settings using the `request_body_force_override` flag. Precedence order: model options → LLM options (always force) → request body (per-protocol deep merge). All three new fields (`request_body`, `llm_options`, `request_body_force_override`) are also available per instance under AI Proxy Multi's `instances[].override`.
  * Added `max_stream_duration_ms` and `max_response_bytes` safeguards to prevent unbounded LLM streaming responses from pinning a worker process at high CPU. When either limit is exceeded, the stream is terminated gracefully with appropriate error signaling.
  * The gateway now detects client disconnection during streaming and immediately stops reading from the LLM upstream, freeing worker resources and avoiding unnecessary API quota consumption.

* **[AI RAG](https://docs.api7.ai/hub/ai-rag.md)**
  * Added a top-level `ssl_verify` field (default `true`) that controls TLS certificate verification when the plugin calls the embeddings and vector search endpoints.

* **[Prometheus](https://docs.api7.ai/hub/prometheus.md)**, **[OpenTelemetry](https://docs.api7.ai/hub/opentelemetry.md)**, **[Zipkin](https://docs.api7.ai/hub/zipkin.md)**
  * Added a new `response_source` label (Prometheus) and `apisix.response_source` span attribute (OpenTelemetry, Zipkin) that classifies each response as `"apisix"` (generated by APISIX, such as plugin rejections or route-not-found), `"nginx"` (NGINX proxy errors such as connection refused or upstream timeout), or `"upstream"` (real response from the upstream service). This enables more precise error attribution in dashboards and alerts.

#### Control Plane[​](#3910-features-control-plane "Direct link to Control Plane")

* Added Consul as a service discovery source. Gateways can now discover upstream services registered in Consul, with support for metadata-based filtering and health-check-aware node selection.
* The Control Plane can now dynamically push telemetry configuration (such as trace sampling ratio and export endpoints) to Data Planes via heartbeat, without requiring a gateway restart.
* Added `skip_mtls_uri_regex` to SSL/SNI configuration, allowing specific URI patterns to bypass mTLS client certificate verification while keeping mTLS enforced for all other URIs.
* Added `POST /apisix/admin/configs/validate` endpoint for batch configuration validation. Operators can validate route, service, upstream, and plugin configurations before applying them, catching schema errors without affecting live traffic.
* DP Manager now supports native gRPC etcd protocol on port 7943 via cmux, providing Data Planes with an additional connectivity option alongside the existing HTTP-based etcd protocol.
* The `encrypt_fields` mechanism now supports nested and complex field structures, including arbitrary-depth dotted paths, arrays, and maps. Plugin configurations with deeply nested sensitive fields (such as `auth.gcp.service_account_json`) are now encrypted at rest correctly.

#### Console (Dashboard)[​](#3910-features-console "Direct link to Console (Dashboard)")

* Added form-based configuration modes for the Key Auth and Basic Auth plugins, enabling visual credential setup without manual JSON editing.
* Added OpenID Connect quick start presets with pre-filled configuration templates for common identity providers, simplifying initial OIDC plugin setup.
* Added Consul as a selectable service discovery type in the upstream configuration UI.
* Supported specifying the SNI when configuring `skip_mtls_uri_regex`.

### Fixes[​](#3910-fixes "Direct link to Fixes")

#### Plugins[​](#3910-fixes-plugins "Direct link to Plugins")

* **[AI Proxy](https://docs.api7.ai/hub/ai-proxy.md)**

  * Fixed issue: When an LLM provider emitted many small SSE chunks per second (such as single-character reasoning tokens), a single streaming request could monopolize a worker process at 100% CPU, degrading availability for all other traffic on that worker.
  * Fixed issue: When a protocol converter was active (for example, Anthropic-to-OpenAI) and the upstream returned SSE events in an unexpected format, the gateway returned a 500 error instead of 502. The gateway now correctly returns 502 Bad Gateway when the upstream response format is incompatible with the configured protocol conversion.
  * Fixed issue: When LLM providers returned JSON `null` for nullable response fields (such as `prompt_tokens_details` or `usage`), the gateway crashed because the JSON null sentinel value passed Lua truthiness checks but could not be indexed as a table.

* **[AI Rate Limiting](https://docs.api7.ai/hub/ai-rate-limiting.md)**
  * Fixed issue: Upstream-provided usage keys (from LLM response usage data) that collided with reserved expression environment names (such as `math` or `abs`) could shadow built-in functions, potentially breaking rate limiting expression evaluation or bypassing limits.

#### Control Plane[​](#3910-fixes-control-plane "Direct link to Control Plane")

* Fixed issue: Creating OAuth credentials via Developer Portal with an OIDC-type DCR Provider failed on identity providers (such as Keycloak) that require the `client_name` field. The `client_name` is now included in both DCR register and update requests, using the Application name as the value.

#### Ingress Controller[​](#3910-fixes-ingress-controller "Direct link to Ingress Controller")

* Fixed issue: The Ingress Controller set `hosts` on both Route and Service when translating ApisixRoute resources. For backends that do not support route-level hosts, this caused a false diff every sync cycle, triggering unnecessary PUT requests and generating massive audit log growth. In one production environment, this resulted in 8 GB / 4.2 million redundant `UpdateService` audit log entries.

#### Console (Dashboard)[​](#3910-fixes-console "Direct link to Console (Dashboard)")

* Fixed issue: The service discovery loading indicator remained visible indefinitely when the discovery request failed.
* Fixed issue: Nacos service metadata was not refreshed when switching between services in the upstream configuration.
* Fixed issue: Switching login option provider types did not clean up configuration fields from the previous provider, leaving stale values in the form.
* Fixed issue: The IAM policy statements editor crashed with a null reference error when policies data was not yet loaded.
* Fixed issue: The InviteUser and ResetPassword actions did not display error messages when the API call failed, making it unclear why the operation did not succeed.
* Fixed issue: The login option name uniqueness check loaded the full list of login options unnecessarily. It now uses a lightweight API call.
* Fixed issue: The IAM delete role operation used the wrong permission action (`iam:UpdateRole` instead of `iam:DeleteRole`).

## 3.9.9[​](#399 "Direct link to 3.9.9")

**Release Date**: 2026-04-10

### Features[​](#399-features "Direct link to Features")

#### Control Plane[​](#399-features-control-plane "Direct link to Control Plane")

* Upstream labels are now persisted and returned correctly via the API. Previously, labels set on upstreams (e.g., by ADC or Ingress Controller) were silently dropped during persistence, causing false diffs on every sync cycle and unnecessary audit log growth.
* The file server address can now be dynamically configured through the System Settings page in the Dashboard, following the same dual-source pattern as the DP Manager address and Admin API address.

### Fixes[​](#399-fixes "Direct link to Fixes")

#### Plugins[​](#399-fixes-plugins "Direct link to Plugins")

* **[AI Proxy](https://docs.api7.ai/hub/ai-proxy.md)**
  * Fixed issue: When using AI Proxy with protocol conversion (e.g., Anthropic client to OpenAI provider), `stream_options.include_usage=true` was injected into the pre-conversion request body instead of the post-conversion OpenAI body, so usage statistics were missing from streaming responses for converted protocols.
* **[Forward Auth](https://docs.api7.ai/hub/forward-auth.md)**
  * Fixed issue: When the auth service responded with HTTP 200 but omitted a header listed in `upstream_headers`, the original client-supplied value was forwarded to the upstream instead of being cleared. This could allow clients to spoof upstream headers by including them in the original request.
* **[JWT Auth](https://docs.api7.ai/hub/jwt-auth.md)**
  * Fixed issue: The JWT Auth plugin did not verify that the JWT token's `alg` header matched the consumer's configured algorithm before signature verification, which could allow algorithm confusion attacks.

#### Data Plane[​](#399-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: The Data Plane compatibility report showed spurious warnings for valid plugin configurations. Plugins using `patternProperties`, conditional schemas (`if`/`then`/`else`), `allOf`, `dependencies`, or `additionalProperties=true` incorrectly reported "unrecognized fields" warnings. Affected plugins included ai-proxy, ai-proxy-multi, openapi-to-mcp, acl, http-logger, limit-count-advanced, portal-auth, jwt-auth, proxy-rewrite, and grpc-transcode.

## 3.9.8[​](#398 "Direct link to 3.9.8")

**Release Date**: 2026-04-07

### Breaking Changes[​](#398-breaking-changes "Direct link to Breaking Changes")

#### Plugins[​](#398-breaking-changes-plugins "Direct link to Plugins")

* **Limit Count**

  Upgrade note

  The `sync_interval` (Redis delayed sync) feature has been removed from the `limit-count` plugin and is now available exclusively in the **[Limit Count Advanced](https://docs.api7.ai/hub/limit-count-advanced.md)** plugin. If you are using `limit-count` with `sync_interval` configured, migrate your configuration to the `limit-count-advanced` plugin before upgrading.

* **[OpenID Connect](https://docs.api7.ai/hub/openid-connect.md)**

  Upgrade note

  The default value of `ssl_verify` has been changed from `false` to `true`. If you have OpenID Connect plugin configurations that do not explicitly set `ssl_verify` and your identity provider uses a self-signed certificate or a certificate issued by an internal CA, TLS verification will now fail after upgrading. Explicitly set `ssl_verify` to `false` in affected configurations before upgrading, or ensure the IdP certificate is trusted by the gateway's CA store.

### Features[​](#398-features "Direct link to Features")

#### Plugins[​](#398-features-plugins "Direct link to Plugins")

* **[MCP Tools ACL](https://docs.api7.ai/hub/mcp-tools-acl.md)** (New Plugin)
  <!-- -->
  * Added a new plugin for per-tool access control on MCP services exposed via the OpenAPI-to-MCP plugin. Supports allowlist (`allow_tools`) and denylist (`deny_tools`) modes with expression-based matching conditions for route-level or service-level tool access policies. Consumers and consumer groups are supported with priority-based rule evaluation. SSE responses are automatically filtered to remove denied tools from `tools/list` results.

* **[AI Proxy](https://docs.api7.ai/hub/ai-proxy.md)**, **[AI Proxy Multi](https://docs.api7.ai/hub/ai-proxy-multi.md)**

  * Added native Anthropic Messages API support. Requests to `/v1/messages` using the Anthropic SDK format are now passed through directly to Anthropic-compatible backends without protocol conversion, preserving Anthropic-specific fields such as cache token usage.
  * Added full support for the OpenAI Responses API (`POST /v1/responses`). Both streaming and non-streaming responses are handled, and all downstream plugins (RAG, content moderation, prompt decorator, prompt guard, logging) work correctly with the Responses API format. Both plugins share the same AI protocol handling, so this also applies to `ai-proxy-multi` routes.

* **[AI Rate Limiting](https://docs.api7.ai/hub/ai-rate-limiting.md)**
  * Added a new `expression` limit strategy with the `cost_expr` field, allowing dynamic token cost calculation using custom Lua arithmetic expressions. For example, `input_tokens + cache_creation_input_tokens` enables cache-aware input token per minute (ITPM) rate limiting for Anthropic Claude.

* **[OAS Validator](https://docs.api7.ai/hub/oas-validator.md)**

  * Added support for OpenAPI 3.1 specification validation, including features such as `exclusiveMinimum`/`exclusiveMaximum` as numbers, `if`/`then`/`else` conditional schemas, nullable types via `["string", "null"]`, `const`, `patternProperties`, `prefixItems`, and JSON Schema `$dynamicRef`/`$dynamicAnchor`.
  * Added a configurable `rejection_status_code` option (400–599, default 400). This allows distinguishing semantic validation errors (e.g., 422 Unprocessable Entity) from malformed request syntax (400 Bad Request).

* **[Request ID](https://docs.api7.ai/hub/request-id.md)**
  * Added `uuidv7` as a new `algorithm` option. UUID v7 generates time-ordered, lexicographically sortable unique identifiers, making them more suitable for distributed tracing and log correlation than random UUID v4.

* **[OpenAPI to MCP](https://docs.api7.ai/hub/openapi-to-mcp.md)**
  * Added support for OpenAPI `in: header` parameters. Header parameters defined in OpenAPI specs are now correctly included in MCP tool schemas and forwarded as HTTP headers when invoking the upstream API.

#### Control Plane[​](#398-features-control-plane "Direct link to Control Plane")

* Added support for Vault dynamic roles for database credential rotation. Dynamic roles create temporary database users with a configurable lease TTL, improving security compared to static roles. Dynamic role is now the default mode, with automatic startup retry using exponential backoff.
* Added a standalone file-server component for hosting files accessible by MCP servers. Files can be uploaded via the Dashboard API and served through a dedicated port. The file server is disabled by default and can be enabled in the system settings.
* Added HTTP Bridge as a new Dynamic Client Registration (DCR) provider type. HTTP Bridge proxies DCR operations (register, update, delete, rotate secret) to an external identity provider via configurable HTTP endpoints.
* Added Data Plane compatibility reporting. When Control Plane and Data Plane versions differ, the Data Plane now reports incompatible resource details (schema validation failures, unknown plugin fields, missing plugins) via heartbeat. Compatibility status is viewable through the runtime instance API.
* Services can now be published without upstream configuration, enabling AI Proxy and other plugin-only scenarios where no backend upstream is needed.
* Optimized custom plugin synchronization with incremental cache refresh. The periodic sync job now queries only for changes instead of performing a full table scan, significantly reducing database load.

#### Data Plane[​](#398-features-data-plane "Direct link to Data Plane")

* Improved Redis Sentinel connection performance. Master node addresses are now cached with a configurable TTL, reducing Sentinel round-trip queries on each new connection. Additionally, pooled connections skip redundant AUTH and SELECT DB commands, lowering latency for high-throughput Redis operations.

#### Developer Portal[​](#398-features-developer-portal "Direct link to Developer Portal")

* Added admin impersonation. Portal administrators can impersonate organization owners to troubleshoot issues, with a 1-hour time-to-live and a persistent warning banner during impersonation.
* Added OAuth client secret regeneration for HTTP Bridge credentials. Organization owners can regenerate secrets through a confirmation modal in the credential management UI.
* Added configurable TOTP-based two-factor authentication (2FA) for Developer Portal login.
* Added role-based access control (RBAC) with three roles: Owner (full control, including organization deletion), Admin (all permissions except organization deletion), and Member (view-only access).
* Organization settings now use slug-prefixed URLs. Page URLs update automatically when switching organizations or renaming the organization slug.
* Application detail pages now display configuration based on portal settings.
* Added an optional signup notice HTML slot for displaying trusted custom content before the sign-up button on the authentication page.

### Fixes[​](#398-fixes "Direct link to Fixes")

#### Plugins[​](#398-fixes-plugins "Direct link to Plugins")

* **[AI Aliyun Content Moderation](https://docs.api7.ai/hub/ai-aliyun-content-moderation.md)**
  * Fixed issue: Empty or whitespace-only content caused a 400 error from the Alibaba Cloud moderation API. Additionally, LLM error responses (status ≥ 400) triggered a 500 error during response moderation, and multimodal content arrays crashed text extraction.
* **[AI Proxy](https://docs.api7.ai/hub/ai-proxy.md)**
  * Fixed issue: The `apisix_llm_active_connections` Prometheus gauge was never decremented when a plugin exited early via `ngx.exit()`, causing the metric to grow indefinitely and report incorrect active connection counts.
* **[AI Rate Limiting](https://docs.api7.ai/hub/ai-rate-limiting.md)**, **[Limit Conn](https://docs.api7.ai/hub/limit-conn.md)**, **[Limit Req](https://docs.api7.ai/hub/limit-req.md)**
  * Fixed issue: `$env://` and `$secret://` references in Redis host configuration were passed as literal strings instead of being resolved to their actual values, causing Redis connection failures.
* Fixed issue: API keys, authentication tokens, OAuth credentials, and full plugin configuration payloads were logged in plaintext across multiple plugin and agent log outputs. Sensitive data is now redacted.

#### Control Plane[​](#398-fixes-control-plane "Direct link to Control Plane")

* Fixed issue: Updating service runtime configuration (e.g., toggling service status) via PATCH failed with a schema validation error when the service had no upstream configured.
* Fixed issue: HTTP and stream subsystem plugins sharing the same name used a single cache entry, causing the wrong plugin schema to be used for validation when both subsystems were active.
* Fixed issue: Subscriptions could be deleted across API products without validating that the subscription belonged to the target product.
* Fixed issue: Services without upstream configuration showed phantom empty upstream records in the upstream list API.
* Fixed issue: Control Plane crashed with a nil pointer dereference during upgrade migration when processing services with no upstream configured.
* Fixed issue: Multiple API Products within the same Developer Portal could link to the same gateway service (same service ID and gateway group), causing configuration conflicts.
* Fixed issue: Updating an SSL certificate allowed SNI collisions when adding new domains that conflicted with existing certificates.
* Fixed issue: Deleting an API Product that shared a gateway service with another product incorrectly removed all system plugins from the shared service, breaking the other product's authentication configuration.
* Fixed issue: DCR provider authentication headers (such as Bearer tokens) were stored in the database without encryption.
* Fixed issue: Consumer credential secrets were not masked in audit logs due to a value/pointer receiver mismatch.
* Fixed issue: Approval handlers (accept/reject subscription) continued execution after returning a 403 status, bypassing the permission check and processing the request.
* Fixed issue: Read-only Developer Portal users could cancel API Product subscriptions because the endpoint used a read permission check instead of write.
* Fixed issue: PATCH operations on route and stream route runtime configurations used read-only or view-only permission checks, allowing users without write access to modify configurations.
* Fixed issue: Upstream resources were not validated against the requested service, allowing access to upstreams belonging to other services.
* Fixed issue: The CAS SSLVerify configuration flag was inverted, causing TLS certificate verification to be disabled when it was configured as enabled. This could expose CAS authentication connections to man-in-the-middle attacks.
* Fixed issue: Concurrent requests from ADC caused a fatal crash (`concurrent map writes`) in the route validator due to unsynchronized access to lazy-initialized schema cache maps.
* Fixed issue: API call statistics flush held a database lock during IO operations, causing performance degradation under high traffic. The flush mechanism now uses swap-and-release with batch writes.

#### Console (Dashboard)[​](#398-fixes-console "Direct link to Console (Dashboard)")

* Fixed issue: The Service Hub page and related modals crashed when a service had an empty or missing name.
* Fixed issue: Adding the same service published to different gateway groups as linked services, was incorrectly blocked by frontend validation.

#### Data Plane[​](#398-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: DNS resolution intermittently returned incorrect IP addresses. When the gateway operated in cache-only mode, DNS Additional section records (nameserver glue records) were incorrectly included in resolution results and their domain names overwritten with the queried domain. This caused random upstream connection failures, as the gateway occasionally selected a nameserver IP instead of the actual service IP.
* Fixed issue: Stream routes with `service_id` silently failed if the referenced service arrived after the route via etcd sync. Service status changes (enable/disable) and deletions also did not trigger stream router rebuild.

#### Developer Portal[​](#398-fixes-developer-portal "Direct link to Developer Portal")

* Fixed issue: Every unauthenticated request to the Developer Portal generated a "No developer ID in session" log entry, flooding production logs and obscuring real errors.
* Fixed issue: The "Regenerate Secret" option was shown (as disabled) for OIDC provider credentials, instead of being hidden. It is now only visible for HTTP Bridge credentials.
* Fixed issue: After re-signing in without logging out, the owner role was not properly restored, causing role-gated UI buttons to appear disabled until a manual page refresh.

## 3.9.7[​](#397 "Direct link to 3.9.7")

**Release Date**: 2026-03-25

### Upgrade Notes[​](#397-upgrade-notes "Direct link to Upgrade Notes")

Upgrade note — additional plugin secret fields are encrypted at rest

The Control Plane now encrypts additional credential-bearing plugin fields at rest. Because API7 EE upgrades the Control Plane before the Data Plane, during the upgrade window a 3.9.7 Control Plane encrypts these fields while an older 3.9.6 Data Plane cannot decrypt them, which can cause the affected plugins to fail until the Data Plane is also upgraded.

The newly encrypted fields, by plugin, are:

* **CSRF**: `key`
* **Kafka Proxy**: `sasl.password`

If you use any of these plugins with the listed fields, upgrade the Data Plane to 3.9.7 promptly after the Control Plane, and avoid editing those plugins until both sides are on 3.9.7.

### Features[​](#397-features "Direct link to Features")

#### Plugins[​](#397-features-plugins "Direct link to Plugins")

* **[AI Proxy](https://docs.api7.ai/hub/ai-proxy.md)**
  * Added bidirectional protocol conversion between Anthropic and OpenAI formats. Users can send requests in Anthropic SDK format to OpenAI-compatible backends (such as DeepSeek or OpenRouter), with the gateway automatically converting request and response formats, including SSE streaming.
* **[OpenAPI to MCP](https://docs.api7.ai/hub/openapi-to-mcp.md)**
  * Added MCP Tool Annotations support. Tools generated from OpenAPI specs can now carry behavioral metadata (read-only, destructive, idempotent) via the `x-mcp-annotations` vendor extension, enabling AI agents to better understand and invoke APIs.

#### Control Plane[​](#397-features-control-plane "Direct link to Control Plane")

* Added a form-based UI for the Limit Count plugin in Dashboard, supporting visual configuration of Local, Redis, and Redis Cluster policies without manually editing JSON/YAML.
* Added custom menu groups in the Dashboard sidebar. External links such as internal documentation or wiki pages can be configured via a YAML config file.
* Improved performance under high API traffic by reducing database write frequency for hot-path operations (such as token last-used timestamps and gateway heartbeat timestamps) through write debouncing and in-memory caching. Also optimized distributed lock acquisition latency.

#### Data Plane[​](#397-features-data-plane "Direct link to Data Plane")

* Added port range support for `stream_proxy` TCP and UDP listeners (e.g., `2000-2100`), eliminating the need to list each port individually when configuring a large number of proxy ports.
* Added `encrypt_fields` to the **CSRF** plugin (`key`) and the **Kafka Proxy** plugin (`sasl.password`).

### Fixes[​](#397-fixes "Direct link to Fixes")

#### Plugins[​](#397-fixes-plugins "Direct link to Plugins")

* **[AI Proxy](https://docs.api7.ai/hub/ai-proxy.md)**
  * Fixed issue: AI request token usage statistics (`prompt_tokens`, `completion_tokens`) were inaccurate when HTTP chunk boundaries did not align with SSE event boundaries in upstream responses.
* **[Prometheus](https://docs.api7.ai/hub/prometheus.md)**
  * Fixed issue: `apisix_llm_*` metrics were exported for all API routes, even those without AI plugins enabled, causing unnecessary metric cardinality and storage overhead. Also added `disabled_labels` support for LLM metrics, allowing operators to selectively disable high-cardinality labels.

#### Control Plane[​](#397-fixes-control-plane "Direct link to Control Plane")

* Fixed issue: When multiple concurrent API requests modified Global Rules simultaneously, only the last write took effect in the gateway, even though Dashboard showed all modifications as successful.
* Fixed issue: Syncing service configurations with non-HTTPS active health checks via ADC failed with the error `Unrecognized key: "https_verify_certificate"`.
* Updated the default worker count to 1 when adding Kubernetes gateway instances in Dashboard.

#### Data Plane[​](#397-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: API call count statistics became inaccurate after a gateway worker process restart (e.g., an unexpected crash).

## 3.9.6[​](#396 "Direct link to 3.9.6")

**Release Date**: 2026-03-09

### Features[​](#396-features "Direct link to Features")

#### Plugins[​](#396-features-plugins "Direct link to Plugins")

* **[Error Log Collect](https://docs.api7.ai/hub/error-log-collect.md)**
  * Added a new plugin to support centralized error log collection.
* **[Oas Validator](https://docs.api7.ai/hub/oas-validator.md)**
  * Added a new parameter `reject_if_not_match`. When set to `false`, it allows requests to pass to upstream services even if they fail OAS validation.
* **[Limit Count Advanced](https://docs.api7.ai/hub/limit-count-advanced.md)**
  * Added more log information for easier debugging.

#### Control Plane[​](#396-features-control-plane "Direct link to Control Plane")

* Supported published Services and Routes in Resource name APIs.
* Added support for Services and Routes as alert conditions in alert policies.
* Supports dynamic rotation of Postgres credentials via Vault.
* The Control Plane Docker images use distroless bases: Dashboard, DP Manager, and the Developer Portal backend use the static Debian image, and the integrated Dashboard image uses the Node.js Debian image. This change does not apply to the gateway image. The installation package and Helm configuration also update the BusyBox helper image from 1.28 to 1.36.1.

#### Data Plane[​](#396-features-data-plane "Direct link to Data Plane")

* Added the `$rate_limiting_info` variable to retrieve detailed status information of rate-limiting plugins.

### Fixes[​](#396-fixes "Direct link to Fixes")

#### Plugins[​](#396-fixes-plugins "Direct link to Plugins")

* **[Limit Count Advanced](https://docs.api7.ai/hub/limit-count-advanced.md)**
  * Fixed issue: A panic in the synchronization function could cause the shared dictionary lock to not be released, leading to synchronization interruptions.

## 3.9.5[​](#395 "Direct link to 3.9.5")

**Release Date**: 2026-02-14

### Features[​](#395-features "Direct link to Features")

#### Plugins[​](#395-features-plugins "Direct link to Plugins")

* **[Feishu Auth](https://docs.apiseven.com/hub/feishu-auth)**
  * Added a new Feishu authentication plugin based on the OAuth 2.0 Authorization Code flow, supporting integration with internal business services in the workbench.
* **Dingtalk Auth**
  * Added a new Dingtalk authentication plugin that logs key information during the authentication process for easier tracking.

#### Control Plane[​](#395-features-control-plane "Direct link to Control Plane")

* **Daily License Information Logging**: The control plane now records daily license information, including CPU limits, expiration time, and current core usage. It starts logging reminders 3 months before the license expires. Users can directly view CPU usage through the logs.

* **OpenTelemetry Data Collection and Visualization**: The control plane can now dispatch debug and sampling tasks to data planes, receive reported data, and support data export via API along with frontend visualization.

  Note

  This feature introduces Jaeger as an additional component. If deploying with Helm, note that the control plane's values file enables Jaeger by default. The official Helm chart is available at <https://charts.api7.ai>.

### Fixes[​](#395-fixes "Direct link to Fixes")

#### Data Plane[​](#395-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: When plugins with `encrypt_fields` had schema fields with `maxLength` constraints (e.g., `hmac-auth` `secret_key` max 32 chars), the encrypted ciphertext exceeded the length limit because schema validation ran before decryption.

## 3.9.4[​](#394 "Direct link to 3.9.4")

**Release Date**: 2026-02-03

### Features[​](#394-features "Direct link to Features")

#### Control Plane[​](#394-features-control-plane "Direct link to Control Plane")

* After disabling SCIM, users can delete historical SCIM accounts synchronized from the IdP in API7.
* Supports uploading OpenAPI 3.1.0 and 3.1.1 files.

### Fixes[​](#394-fixes "Direct link to Fixes")

#### Plugins[​](#394-fixes-plugins "Direct link to Plugins")

* **[Limit Count](https://docs.api7.ai/hub/limit-count.md)**
  * Fixed issue: The counter data could be inaccurate if the Gateway crashed unexpectedly.

#### Data Plane[​](#394-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: The heartbeat and metrics reporting would only use the first control plane address when multiple addresses were configured.

#### Control Plane[​](#394-fixes-control-plane "Direct link to Control Plane")

* Fixed issue: A route URL not starting with `/` would cause the conflict detection API to return a `500` error.
* Fixed issue: The code hints in the plugin configuration editor would sometimes stop working.

## 3.9.3[​](#393 "Direct link to 3.9.3")

**Release Date**: 2026-01-26

### Features[​](#393-features "Direct link to Features")

#### Plugins[​](#393-features-plugins "Direct link to Plugins")

* **[AI Request Rewrite](https://docs.api7.ai/hub/ai-request-rewrite.md)**
  * Supported two new providers: Gemini, Vertex AI.
* **[SAML Auth](https://docs.api7.ai/hub/saml-auth.md)**
  * Added `auth_protocol_binding_method` parameter to support configuring SAML protocol binding methods, including `HTTP-POST` and `HTTP-Redirect`. The default value is `HTTP-Redirect` (backward compatible with previous versions). `HTTP-POST` must be used when Azure AD is the identity provider.

### Fixes[​](#393-fixes "Direct link to Fixes")

#### Plugins[​](#393-fixes-plugins "Direct link to Plugins")

* **[SAML Auth](https://docs.api7.ai/hub/saml-auth.md)**

  * Fixed issue: SAML sessions could not be shared across multiple gateway instances. Added the mandatory `secret` field for configuring the key to encrypt session data.

    Upgrade note

    The `saml-auth` plugin upgraded from older versions can work normally but cannot share sessions across multiple gateway instances. This issue can be resolved by configuring the `secret` field.

  * Fixed issue: Missing `NameID` field in the SAML request when processing logout requests. The absence of the `NameID` field will cause logout failure when Azure AD is the identity provider.

## 3.9.2[​](#392 "Direct link to 3.9.2")

**Release Date**: 2026-01-19

### Breaking Changes[​](#392-breaking-changes "Direct link to Breaking Changes")

#### Plugins[​](#392-breaking-changes-plugins "Direct link to Plugins")

* **[OpenID Connect](https://docs.api7.ai/hub/openid-connect.md)**

  * The `session.secret` field is now required when `bearer_only` is `false` (the default). Previously, if not configured, a random secret was automatically generated on each data plane instance, which prevented sessions from being shared across multiple gateway instances.

    Upgrade note

    After upgrading, existing `openid-connect` plugin configurations without `session.secret` (with `bearer_only` set to `false` or unset) will fail schema validation on the data plane, and the routes they are attached to will stop being served. Configure the `session.secret` field (at least 16 characters, using the same value across all gateway instances) before upgrading the data plane.

### Features[​](#392-features "Direct link to Features")

#### Plugins[​](#392-features-plugins "Direct link to Plugins")

* **[AI Proxy](https://docs.api7.ai/hub/ai-proxy.md)**/**[AI Proxy Multi](https://docs.api7.ai/hub/ai-proxy-multi.md)**
  * Supported four new providers: Gemini, Vertex AI, OpenRouter, and Anthropic.
* **[Basic Auth](https://docs.api7.ai/hub/basic-auth.md)**/**[JWT Auth](https://docs.api7.ai/hub/jwt-auth.md)**/**[Key Auth](https://docs.api7.ai/hub/key-auth.md)**/**[HMAC Auth](https://docs.api7.ai/hub/hmac-auth.md)**/**LDAP Auth**
  * Added a `realm` configuration option to set the Realm value in the `WWW-Authenticate` response header for 401 authentication failures.
* **[OpenID Connect](https://docs.api7.ai/hub/openid-connect.md)**
  * Supported validating claims by configuring `claim_schema`.

#### Control Plane[​](#392-features-control-plane "Direct link to Control Plane")

* Rejected gateway nodes with a version higher than the Control Plane.
* Supported querying node health status in multi-upstream scenarios.

### Fixes[​](#392-fixes "Direct link to Fixes")

#### Plugins[​](#392-fixes-plugins "Direct link to Plugins")

* **[Limit Count](https://docs.api7.ai/hub/limit-count.md)**
  * Fixed issue: The rate limiting counter was shared when the same rate-limiting configuration was applied across multiple consumers (introduced in 3.8.5).

* **[Limit Count Advanced](https://docs.api7.ai/hub/limit-count-advanced.md)**

  * Fixed issue: Incorrect data appeared when resetting request headers (introduced in 3.8.19).
  * Fixed issue: Rate limiting data was not correctly submitted after enabling Redis delayed synchronization (introduced in 3.8.19).
  * Fixed issue: Redis password could not be specified in Redis Sentinel mode.
  * Fixed issue: Keepalive was not enabled for Redis connections in Redis Sentinel mode.

* **[Syslog](https://docs.api7.ai/hub/syslog.md)**
  * Fixed issue: After sending an excessively long log in UDP mode, subsequent logs could not be sent.

* **[Request ID](https://docs.api7.ai/hub/request-id.md)**
  * Fixed issue: The system failed to generate a new request ID when the `request-id` provided by the client was empty.

#### Data Plane[​](#392-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: A `deepcopy table overflow` error could occur during the startup process.
* Fixed issue: The `server` header still returned "APISIX" when `enable_server_tokens` was disabled.
* Fixed issue: The health checker caused the gateway to continuously output error logs after an update to the `ai-proxy-multi` plugin.

#### Control Plane[​](#392-fixes-control-plane "Direct link to Control Plane")

* Fixed issue: The default `client.depth` for SSL resources was too small, causing mTLS migration failure for Cloud v2 users.
* Fixed issue: Data duplication could occur during concurrent calls to the SSL API.
* Fixed issue: The health status of frontend components on the Console (Dashboard) was not reflected in the `/healthz` API response.

## 3.9.1[​](#391 "Direct link to 3.9.1")

**Release Date**: 2026-01-08

### Fixes[​](#391-fixes "Direct link to Fixes")

#### Developer Portal[​](#391-fixes-developer-portal "Direct link to Developer Portal")

* Fixed issue: "Developers" created in older versions of the Developer Portal could not be deleted.

## 3.9.0[​](#390 "Direct link to 3.9.0")

**Release Date**: 2026-01-06

### Breaking Changes[​](#390-breaking-changes "Direct link to Breaking Changes")

#### Developer Portal[​](#390-breaking-changes-developer-portal "Direct link to Developer Portal")

* **Newly Redesigned Developer Portal**

  Upgrade note

  The Developer Portal has been completely redesigned. This release introduces breaking changes that require action before upgrading:

  * The built-in Portal SSO feature has been removed. Configure authentication through the new Portal-level authentication mechanism instead.
  * The Portal frontend is now open-source. Existing Portal customizations must be migrated to the new SDK-based architecture.

#### Data Plane[​](#390-breaking-changes-data-plane "Direct link to Data Plane")

* **Health check status control API**

  Upgrade note

  The health check engine has been rewritten, and the response body of the control API endpoints `GET /v1/healthcheck` and `GET /v1/healthcheck/{src_type}/{src_id}` (served on the Data Plane control port, `9090` by default) has changed. The request paths, methods, and status codes are unchanged. Monitoring scripts, alerting rules, and dashboards that parse these responses must be updated before upgrading.

  Response in 3.8.x and earlier:

  ```
  [

    {

      "name": "upstream#/apisix/upstreams/1",

      "src_type": "upstreams",

      "src_id": "1",

      "nodes": [

        { "host": "127.0.0.1", "port": 1980, "weight": 1, "priority": 0 },

        { "host": "127.0.0.2", "port": 1988, "weight": 1, "priority": 0 }

      ],

      "healthy_nodes": [

        { "host": "127.0.0.1", "port": 1980, "weight": 1, "priority": 0 }

      ]

    }

  ]
  ```

  Response in 3.9.0 and later:

  ```
  [

    {

      "name": "/apisix/upstreams/1",

      "type": "http",

      "nodes": [

        {

          "ip": "127.0.0.1",

          "port": 1980,

          "status": "healthy",

          "counter": { "success": 0, "http_failure": 0, "tcp_failure": 0, "timeout_failure": 0 }

        },

        {

          "ip": "127.0.0.2",

          "port": 1988,

          "status": "unhealthy",

          "counter": { "success": 0, "http_failure": 0, "tcp_failure": 2, "timeout_failure": 0 }

        }

      ]

    }

  ]
  ```

  Field by field:

  * `src_type` and `src_id` are removed. A resource is now identified by `name` alone.
  * `name` no longer carries the `upstream#` prefix. It is now the resource path, such as `/apisix/upstreams/1`.
  * `healthy_nodes` is removed. Each entry in `nodes` now carries its own `status`, which is `healthy`, `unhealthy`, `mostly_healthy`, or `mostly_unhealthy`. A node is in service when its `status` is `healthy` **or** `mostly_healthy` — `mostly_healthy` is a node that is still receiving traffic after some probe failures — so the predicate that reproduces the old `healthy_nodes` list is `status == "healthy" || status == "mostly_healthy"`. Filtering on the literal `healthy` alone drops nodes the gateway is still routing to.
  * `nodes` entries no longer describe the configured upstream node (`host`, `port`, `weight`, `priority`). They describe the health check target: `ip`, `port`, `status`, and a `counter` object holding the consecutive `success`, `http_failure`, `tcp_failure`, and `timeout_failure` counts. A target also reports `hostname` when the health check is configured with a `host`, and `hostheader` when the request carries a rewritten `Host` header.
  * A new top-level `type` field reports the type of the configured check, such as `http`, `https`, or `tcp`.

  Two changes in what the endpoints report:

  * `nodes` now lists the targets registered with the health checker rather than the nodes in the upstream configuration. When `checks.active.host` or `checks.active.port` overrides the node address, several upstream nodes collapse into a single target, so the list can be shorter than the upstream's node list.
  * A resource that has `checks` configured is now listed as soon as it is loaded, with an empty `nodes` list until its health checker is created. Earlier versions listed a resource only after its health checker existed.

### Features[​](#390-features "Direct link to Features")

* All API7 Enterprise Docker images are now signed using Cosign, enhancing image security.

#### Developer Portal[​](#390-features-developer-portal "Direct link to Developer Portal")

* Provides open-source SDKs and a frontend scaffolding project to facilitate user customization and development.
* Introduces a new Portal-level authentication mechanism for API integration.

#### Plugins[​](#390-features-plugins "Direct link to Plugins")

* **[Limit Conn](https://docs.api7.ai/hub/limit-conn.md)**/**[Limit Req](https://docs.api7.ai/hub/limit-req.md)**

  * Supported using Redis and Redis Cluster as the rate limiting data storage backend.

    Upgrade note

    Added a new required field `policy`. Existing configurations do not require modification and will continue to function in the data plane. However, when updating a configuration, this field must be supplied (e.g., `policy=local`), otherwise the update will be rejected.

* **[Request ID](https://docs.api7.ai/hub/request-id.md)**

  * Added a new algorithm `ksuid` for ID generation.

* **[Loki Logger](https://docs.api7.ai/hub/loki-logger.md)**

  * Supported customizing HTTP headers sent to the Loki server.

* **File Logger**

  * Supported conditional request logging using the `match` field.

* **[Workflow](https://docs.api7.ai/hub/workflow.md)**

  * The `rules` field is now required.

#### Control Plane[​](#390-features-control-plane "Direct link to Control Plane")

* Allowed to completely disable built-in username/password login after enabling SSO login.

* Supported configuring the maximum execution time for database statements with `database.timeout`, which defaults to `5s`.

* Observability Enhancements

  <!-- -->

  * Enabled the pprof performance profiling by default.
  * Added database connection pool metrics to the metrics endpoint.
  * Supported separate logging for access and error logs.
  * Added the `request_id` field to access and error logs.

### Fixes[​](#390-fixes "Direct link to Fixes")

#### Plugins[​](#390-fixes-plugins "Direct link to Plugins")

* **[OpenAPI to MCP](https://docs.api7.ai/hub/openapi-to-mcp.md)**
  * Fixed issue: Passing authentication credentials via query parameters could lead to sensitive information leakage.

#### Data Plane[​](#390-fixes-data-plane "Direct link to Data Plane")

* Optimized caching behavior for resolution chains that involve CNAME and A records.

#### Control Plane[​](#390-fixes-control-plane "Direct link to Control Plane")

* Removed the display of IP and Port from the gateway instance list to avoid misleading users.
* Fixed issue: Database deadlocks could occur during concurrent batch inserts into the API call statistics table.
* Fixed issue: Dashboard failed to start when using a non-`public` schema in PostgreSQL.

## 3.8.25[​](#3825 "Direct link to 3.8.25")

**Release Date**: 2026-11-19

### Upgrade Notes[​](#3825-upgrade-notes "Direct link to Upgrade Notes")

Upgrade note — upstream TLS verification error messages

The gateway runtime has been upgraded, and some upstream certificate verification failures are now logged with a different OpenSSL error. For example, when `tls.verify` is enabled and the upstream presents only its own certificate, issued by a CA the gateway does not trust, the error log now reports `verify error: (21:unable to verify the first certificate)` where earlier versions reported `verify error: (20:unable to get local issuer certificate)`.

Which upstream certificates are accepted or rejected is unchanged, and the client still receives `HTTP 502` when verification fails. If you have log-based alerts or searches that match the old message, update them before upgrading.

### Security[​](#3825-security "Direct link to Security")

* Upgraded the gateway runtime to include fixes for the following security vulnerabilities in NGINX:

  <!-- -->

  * [CVE-2026-118899](https://nvd.nist.gov/vuln/detail/CVE-2026-118899): A client sending a request body over TLS 1.3 could put a gateway worker into an infinite loop, using a full CPU core and stalling the other requests handled by that worker.
  * [CVE-2026-123007](https://nvd.nist.gov/vuln/detail/CVE-2026-123007): Memory corruption in HTTP/2 flow control, triggered by the window updates a client sends. HTTP/2 is enabled by default.
  * [CVE-2026-123633](https://nvd.nist.gov/vuln/detail/CVE-2026-123633): Use-after-free in HTTP/2 connection handling.
  * [CVE-2026-1642](https://nvd.nist.gov/vuln/detail/CVE-2026-1642): With an HTTPS upstream, a plain-text response injected before the TLS handshake with the upstream completed could be forwarded to the client as the upstream's response.
  * [CVE-2026-123634](https://nvd.nist.gov/vuln/detail/CVE-2026-123634): Use-after-free in the DNS resolver while processing responses, used when the gateway resolves domain names at request time, for example for the targets of the Proxy Mirror plugin.
  * [CVE-2026-42533](https://nvd.nist.gov/vuln/detail/CVE-2026-42533): Buffer overflow when evaluating variables with regular expression captures, which every request goes through. This also includes the fix for [CVE-2026-93479](https://nvd.nist.gov/vuln/detail/CVE-2026-93479), a defect in the original CVE-2026-42533 patch.
  * [CVE-2026-42945](https://nvd.nist.gov/vuln/detail/CVE-2026-42945): Buffer overflow in URI rewriting, reachable when the Proxy Mirror plugin mirrors gRPC requests.
  * [CVE-2025-23419](https://nvd.nist.gov/vuln/detail/CVE-2025-23419): TLS 1.3 sessions could be resumed under a different SNI, bypassing that SNI's client certificate verification. The gateway already rejected requests on such resumed sessions with `HTTP 400`; the NGINX fix adds a check at the TLS layer.

### Fixes[​](#3825-fixes "Direct link to Fixes")

#### Data Plane[​](#3825-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: Each reload of the gateway, for example with `apisix reload`, logged `[emerg] bind() to 127.0.0.1:9091 failed (98: Address already in use)` for the Prometheus metrics export server, which listens on `127.0.0.1:9091` by default.

## 3.8.24[​](#3824 "Direct link to 3.8.24")

**Release Date**: 2026-11-05

### Features[​](#3824-features "Direct link to Features")

#### Data Plane[​](#3824-features-data-plane "Direct link to Data Plane")

* Upgraded the CA certificate bundle in the gateway image.
* Upgraded Node.js in the gateway image from 20 to 22.

#### Control Plane[​](#3824-features-control-plane "Direct link to Control Plane")

* Reduced the database load of the periodic custom plugin refresh. The job now checks for changes first and reads plugin content only when a plugin has changed.
* Upgraded the CA certificate bundles in the control plane images.

### Fixes[​](#3824-fixes "Direct link to Fixes")

#### Plugins[​](#3824-fixes-plugins "Direct link to Plugins")

* **[OAS Validator](https://docs.api7.ai/hub/oas-validator.md)**
  * Fixed issue: A request body containing escaped quotes, such as `{"name":"a\"b"}`, was rejected with `HTTP 400` even when it matched the specification.
* **[Limit Count Advanced](https://docs.api7.ai/hub/limit-count-advanced.md)**
  * Fixed issue: When delayed synchronization was enabled, an unexpected error during a sync, or a failure to create the sync timer, could stop later periodic synchronization to Redis for that plugin instance.

#### Data Plane[​](#3824-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: The `healthy_nodes` field of the Control API `GET /v1/healthcheck` was returned as `{}` instead of `[]` when an upstream had no healthy nodes.

#### Control Plane[​](#3824-fixes-control-plane "Direct link to Control Plane")

* Fixed issue: The access log of the Data Plane Manager recorded the plaintext API key of key-auth consumer lookups made by gateways, and a lookup for an unknown key returned the key in its `HTTP 404` response body. The key in these lookups is now masked as `***` in the access log and is no longer included in the response.
* Fixed issue: The Control Plane failed to start when using a non-`public` schema, for example with `permission denied for schema public` when its PostgreSQL user had no access to the `public` schema.

## 3.8.23[​](#3823 "Direct link to 3.8.23")

**Release Date**: 2026-02-03

### Features[​](#3823-features "Direct link to Features")

#### Control Plane[​](#3823-features-control-plane "Direct link to Control Plane")

* Supports uploading OpenAPI 3.1.0 and 3.1.1 files.

### Fixes[​](#3823-fixes "Direct link to Fixes")

#### Data Plane[​](#3823-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: Heartbeat and metrics would only be reported to the first control plane address when multiple addresses were configured.

#### Control Plane[​](#3823-fixes-control-plane "Direct link to Control Plane")

* Fixed issue: A route URL not starting with `/` would cause the conflict detection API to return a `500` error.

## 3.8.22[​](#3822 "Direct link to 3.8.22")

**Release Date**: 2026-01-19

### Fixes[​](#3822-fixes "Direct link to Fixes")

#### Plugins[​](#3822-fixes-plugins "Direct link to Plugins")

* **[Limit Count](https://docs.api7.ai/hub/limit-count.md)**
  * Fixed issue: The rate limiting counter was shared when the same rate-limiting configuration was applied across multiple consumers (introduced in 3.8.5).

* **[Limit Count Advanced](https://docs.api7.ai/hub/limit-count-advanced.md)**

  * Fixed issue: Incorrect data appeared when resetting request headers (introduced in 3.8.19).
  * Fixed issue: Rate limiting data was not correctly submitted after enabling Redis delayed synchronization (introduced in 3.8.19).
  * Fixed issue: Redis password could not be specified in Redis Sentinel mode.
  * Fixed issue: Keepalive was not enabled for Redis connections in Redis Sentinel mode.

* **[Syslog](https://docs.api7.ai/hub/syslog.md)**
  * Fixed issue: After sending an excessively long log in UDP mode, subsequent logs could not be sent.

* **[Request ID](https://docs.api7.ai/hub/request-id.md)**
  * Fixed issue: The system failed to generate a new request ID when the `request-id` provided by the client was empty.

#### Data Plane[​](#3822-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: A `deepcopy table overflow` error could occur during the startup process.

#### Control Plane[​](#3822-fixes-control-plane "Direct link to Control Plane")

* Fixed issue: The default `client.depth` for SSL resources was too small, causing mTLS migration failure for Cloud v2 users.
* Fixed issue: Data duplication could occur during concurrent calls to the SSL API.
* Fixed issue: The health status of frontend components on the Console (Dashboard) was not reflected in the `/healthz` API response.

## 3.8.21[​](#3821 "Direct link to 3.8.21")

**Release Date**: 2025-12-23

### Features[​](#3821-features "Direct link to Features")

#### Plugins[​](#3821-features-plugins "Direct link to Plugins")

* **gRPC Web**
  * Supported enabling the plugin on routes that use non-wildcard paths.
* **[OpenAPI to MCP](https://docs.api7.ai/hub/openapi-to-mcp.md)**
  * Provided the `flatten_parameters` parameter to control whether path and query parameters from the OpenAPI specification are placed at the top level of the tools input schema.

#### Data Plane[​](#3821-features-data-plane "Direct link to Data Plane")

* **Fallback CP**

  * Supported using the gateway as a backup node to sync data to AWS S3 and Azure Blob. Note that backup nodes do not provide HTTP/HTTPS services and are not counted towards the license quota.
  * Supported authentication using AWS IAM Role and Azure Managed Identity.

#### Control Plane[​](#3821-features-control-plane "Direct link to Control Plane")

* Supported using MSSQL Server 2022 as the database for the control plane.
* Provided script generation for deploying gateway instances using Docker Compose.
* Improved the text prompts for each parameter when deploying gateway instances in Kubernetes.

### Fixes[​](#3821-fixes "Direct link to Fixes")

#### Plugins[​](#3821-fixes-plugins "Direct link to Plugins")

* **[AI Proxy](https://docs.api7.ai/hub/ai-proxy.md)**/**[AI Proxy Multi](https://docs.api7.ai/hub/ai-proxy-multi.md)**
  * Fixed issue: Headers configured in the plugin could not override downstream headers with the same name due to case-insensitivity.
* **[Limit Conn](https://docs.api7.ai/hub/limit-conn.md)**/**[Limit Count Advanced](https://docs.api7.ai/hub/limit-count-advanced.md)**/**[AI Rate Limiting](https://docs.api7.ai/hub/ai-rate-limiting.md)**
  * Fixed issue: The `rules.key` field did not support the variable default value syntax.
* **[OpenAPI to MCP](https://docs.api7.ai/hub/openapi-to-mcp.md)**
  * Fixed issue: Errors or perpetual loading occurred when configuring the MCP Server in AI clients such as Cursor and Cline.

#### Data Plane[​](#3821-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: The gateway continued its startup process even after failing to connect to the control plane during initialization.
* Fixed issue: Heartbeat failed when the gateway listened on the same port using different IP addresses.
* Fixed issue: The Fallback CP feature failed to load credential data correctly.
* Fixed issue: Optimized the performance after enabling the Prometheus plugin.

#### Control Plane[​](#3821-fixes-control-plane "Direct link to Control Plane")

* Fixed issue: For services created via the Admin API, their routes could not be selected on the console's monitoring page to view monitoring data.
* Fixed issue: Incorrect "Unhealthy Ratio" data displayed on the console's upstream page after configuring active health checks for an upstream.

## 3.8.20[​](#3820 "Direct link to 3.8.20")

**Release Date**: 2025-12-11

### Fixes[​](#3820-fixes "Direct link to Fixes")

#### Plugins[​](#3820-fixes-plugins "Direct link to Plugins")

* **[OpenAPI to MCP](https://docs.api7.ai/hub/openapi-to-mcp.md)**
  * Fixed issue: Variables in `base_url` were not resolved correctly.

## 3.8.19[​](#3819 "Direct link to 3.8.19")

**Release Date**: 2025-12-09

### Features[​](#3819-features "Direct link to Features")

#### Plugins[​](#3819-features-plugins "Direct link to Plugins")

* **[OpenAPI to MCP](https://docs.api7.ai/hub/openapi-to-mcp.md)**
  * Supported using variable syntax in `base_url`.
* **[AI Rate Limiting](https://docs.api7.ai/hub/ai-rate-limiting.md)**
  * Supported using Redis, Redis Cluster, and Redis Sentinel as storage backends.

Upgrade note

The `ai-rate-limiting` plugin now requires a new `policy` field. Existing configurations continue to function on the data plane, but any updates must include `policy: local`; otherwise, the update will be rejected.

#### Data Plane[​](#3819-features-data-plane "Direct link to Data Plane")

* Added support for the `${external_user.*}` [built-in variable](https://docs.api7.ai/enterprise/reference/built-in-variables) to retrieve values from external user information. The variable is injected by the `openid-connect` plugin and developer portal OAuth authentication.

### Fixes[​](#3819-fixes "Direct link to Fixes")

#### Plugins[​](#3819-fixes-plugins "Direct link to Plugins")

* **[AI Proxy](https://docs.api7.ai/hub/ai-proxy.md)**/**[AI Proxy Multi](https://docs.api7.ai/hub/ai-proxy-multi.md)**
  * Fixed issue: Request headers generated by the client or other plugins were not forwarded to the upstream.

* **[AI Rate Limiting](https://docs.api7.ai/hub/ai-rate-limiting.md)**/**[Limit Count Advanced](https://docs.api7.ai/hub/limit-count-advanced.md)**

  * Fixed issue: When multiple `rules` were matched simultaneously, the rate-limiting headers could not be distinguished. By default, they are now distinguished by the index of the matched `rule`. The `header_prefix` configuration is also supported for custom prefixes.
  * Fixed issue: When variables were used in the `limit` field, the rate-limiting status was not updated in real-time after the variable's value changed.

#### Control Plane[​](#3819-fixes-control-plane "Direct link to Control Plane")

* Fixed issue: Users' access tokens could still be used to access APIs after expiration.
* Fixed issue: The "Labels" section in the Dashboard displayed a large number of duplicate input fields when creating a route.
* Fixed issue: Disabled plugins on a route could not override enabled plugins of the same name on the associated service.
* Fixed issue: Dropdown option values in the Portal Dashboard changed frequently.
* Fixed issue: Plugin configurations in the Dashboard did not automatically populate default values.

## 3.8.18[​](#3818 "Direct link to 3.8.18")

**Release Date**: 2025-11-25

important

To support creating multiple Portal instances, the `portal-auth` plugin of the data plane has been upgraded. After upgrading the control plane, users should upgrade the data plane as soon as possible. During the period between the control plane upgrade and the data plane upgrade completion, please do not update existing API products, as such changes will not take effect.

### Features[​](#3818-features "Direct link to Features")

#### Data Plane[​](#3818-features-data-plane "Direct link to Data Plane")

* Supported specifying the `backlog` configuration for listening ports.
* Supported Azure Blob storage type in `fallback_cp`.

#### Control Plane[​](#3818-features-control-plane "Direct link to Control Plane")

* Supported Dynamic Client Registration (DCR) provider management.
* Supported DCR authentication type in API products.
* Supported OAuth authentication type (obtaining client ID and client secret based on DCR) in Developer credentials.
* Supported creating multiple Portal instances. Existing Portal usage data will be assigned to the automatically created `default` Portal instance.
* API7 Dashboard supported specifying the license storage path in the configuration file.

### Fixes[​](#3818-fixes "Direct link to Fixes")

#### Plugins[​](#3818-fixes-plugins "Direct link to Plugins")

* **All Logger Plugins**
  * Fixed issue: Logger plugins failed to obtain request bodies when client request bodies were too large to generate temporary files.
* **[AI Proxy Multi](https://docs.api7.ai/hub/ai-proxy-multi.md)**
  * Fixed issue: Health checkers were rebuilt when requests hit different consumers.

#### Control Plane[​](#3818-fixes-control-plane "Direct link to Control Plane")

* Fixed issue: The Helm Chart version was not locked in the Ingress Controller installation script.
* Fixed issue: Offline gateway instances were still displaying compatibility tags.
* Fixed issue: When creating/updating upstreams, the system did not check if `upstream_host` was empty when `pass_host` was set to `rewrite`.
* Fixed issue: In the Developer Portal, when OpenAPI documents contained multiple `server_urls`, developers could not select a `server_url` when initiating test requests.
* Fixed issue: Developers with subscriptions under the "pending approval" state can still make requests to the gateway.

## 3.8.17[​](#3817 "Direct link to 3.8.17")

**Release Date**: 2025-11-10

### Features[​](#3817-features "Direct link to Features")

#### Plugins[​](#3817-features-plugins "Direct link to Plugins")

* **[Limit Conn](https://docs.api7.ai/hub/limit-conn.md)**

  * Supported variable syntax in the `conn` and `burst` fields.
  * Added a `rules` field for configuring multiple rate-limiting rules simultaneously.

* **[Limit Count Advanced](https://docs.api7.ai/hub/limit-count-advanced.md)**

  * Supported variable syntax in the `count` and `time_window` fields.
  * Added a `rules` field for configuring multiple rate-limiting rules simultaneously.

* **[AI Rate Limiting](https://docs.api7.ai/hub/ai-rate-limiting.md)**

  * Supported variable syntax in the `limit` and `time_window` fields.
  * Added a `rules` field for configuring multiple rate-limiting rules simultaneously.

* **[AI Proxy](https://docs.api7.ai/hub/ai-proxy.md)**/**[AI Proxy Multi](https://docs.api7.ai/hub/ai-proxy-multi.md)**/**[AI Request Rewrite](https://docs.api7.ai/hub/ai-request-rewrite.md)**
  * Supported the `aimlapi` provider.

* **[OpenAPI to MCP](https://docs.api7.ai/hub/openapi-to-mcp.md)**
  * Considered the default values of query parameters defined in OpenAPI when sending requests to the upstream service.

* **All Access Log Logging Plugins**

  * Supported configuring each plugin's batch processor `max_pending_entries` in the plugin metadata, for the the maximum number of pending entries in the batch processor.
  * Flushed the pending logs to the logging service before the worker process exited.

#### Control Plane[​](#3817-features-control-plane "Direct link to Control Plane")

* Supported configuring IP whitelist and blacklist for accessing the dashboard.

### Fixes[​](#3817-fixes "Direct link to Fixes")

#### Plugins[​](#3817-fixes-plugins "Direct link to Plugins")

* **[AI Proxy Multi](https://docs.api7.ai/hub/ai-proxy-multi.md)**
  * Fixed issue: Multiple worker processes cannot share the health checker of an AI instance.

#### Control Plane[​](#3817-fixes-control-plane "Direct link to Control Plane")

* Fixed issue: Cannot upload license when the browser lacks permissions.
* Fixed issue: Bad performance of the gateway when the number of `upstream.nodes` is very large.
* Fixed issue: The `policy` field of plugins, such as `limit-count` and `limit-count-advanced`, is optional (should be required).
* Fixed issue: When creating a new SSO page and clicking "Back", the page redirected to the SMTP Server page.

## 3.8.16[​](#3816 "Direct link to 3.8.16")

**Release Date**: 2025-10-28

### Features[​](#3816-features "Direct link to Features")

#### Plugins[​](#3816-features-plugins "Direct link to Plugins")

* **[Kafka Logger](https://docs.api7.ai/hub/kafka-logger.md)**
  * Supported SCRAM-SHA-512 in SASL mechanism.

#### Data Plane[​](#3816-features-data-plane "Direct link to Data Plane")

* Supported wildcard SNI matching for SSL certificates, allowing a single certificate to cover multiple subdomains.

#### Control Plane[​](#3816-features-control-plane "Direct link to Control Plane")

* Added support for specifying host when publishing Gateway service in API Portal.
* Added cache configuration support for query failure scenarios in the Gateway secret module.
* Updated Ingress Controller installation form to support configuring namespace and name.
* Specified supported versions when importing OpenAPI in the Dashboard UI.
* Removed the bare metal tab from the Gateway deployment page.

### Fixes[​](#3816-fixes "Direct link to Fixes")

#### Plugins[​](#3816-fixes-plugins "Direct link to Plugins")

* **[OpenAPI to MCP](https://docs.api7.ai/hub/openapi-to-mcp.md)**

  * Fixed issue: SSE mode does not work when `path_prefix` and `strip_path_prefix` were both configured in the service.
  * Fixed issue: MCP tool names were generated from the OpenAPI paths, which could exceed the length limit for tool names. Now MCP tool names are generated from OpenAPI operation IDs.
  * Fixed issue: A 500 status code was thrown when the headers field was not configured.

#### Control Plane[​](#3816-fixes-control-plane "Direct link to Control Plane")

* Fixed issue: ADC Sync could synchronize to the wrong gateway group when group names were similar.
* Fixed issue: Login option role mapping retained previous roles even when no rules were matched.
* Fixed issue: The Request Scope field of the OIDC Login Option included an unnecessary “Add” button.
* Fixed issue: Old configurations were sometimes not displayed in the Edit Login Option form.
* Fixed issue: Unnecessary changes occurred during ADC diff due to overly complex core resource schema.
* Fixed issue: User’s `updated_at` timestamp was not refreshed when updating user roles.

## 3.8.15[​](#3815 "Direct link to 3.8.15")

**Release Date**: 2025-10-13

### Features[​](#3815-features "Direct link to Features")

#### Plugins[​](#3815-features-plugins "Direct link to Plugins")

* **[Lago](https://apisix.apache.org/docs/apisix/plugins/lago)**
  * Introduced new plugin.
* **[Traffic Split](https://docs.api7.ai/hub/traffic-split.md)**
  * Now available for Stream service.
* **[OpenAPI to MCP](https://docs.api7.ai/hub/openapi-to-mcp.md)**
  * Supported streamable HTTP as a transport method for MCP.

#### Data Plane[​](#3815-features-data-plane "Direct link to Data Plane")

* Supported GCP Secret Manager as a secret management backend.

#### Control Plane[​](#3815-features-control-plane "Direct link to Control Plane")

* Supported configuring the Prometheus query path prefix in Dashboard.

### Fixes[​](#3815-fixes "Direct link to Fixes")

#### Data Plane[​](#3815-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: Creating multiple GatewayProxy/IngressClass for the same gateway group will cause resource conflicts and route overwrites.
* Fixed issue: Error logs contain sensitive information.
* Fixed issue: `grpc-web` responses lost trailers when the response body was empty.

## 3.8.14[​](#3814 "Direct link to 3.8.14")

**Release Date**: 2025-09-25

### Fixes[​](#3814-fixes "Direct link to Fixes")

#### Data Plane[​](#3814-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: Upstream reference error when configuring multiple services with duplicate backends in Ingress Controller v2.0.6.
* Fixed issue: Gateway instance status calculation error when using PostgreSQL databases with non-UTC timezones.

## 3.8.13[​](#3813 "Direct link to 3.8.13")

**Release Date**: 2025-09-23

### Features[​](#3813-features "Direct link to Features")

#### Plugins[​](#3813-features-plugins "Direct link to Plugins")

* **[OpenAPI to MCP](https://docs.api7.ai/hub/openapi-to-mcp.md)**
  * Introduced new plugin.

#### Console (Dashboard)[​](#3813-features-console "Direct link to Console (Dashboard)")

* Supported Admin API and DPM Address in API7 Helm Chart.

#### Data Plane[​](#3813-features-data-plane "Direct link to Data Plane")

* Supported configuring the Prometheus remote write endpoint URLs in DP Manager.
* Aligned the certificate usage API response fields with the OpenAPI specification.

### Fixes[​](#3813-fixes "Direct link to Fixes")

#### Console (Dashboard)[​](#3813-fixes-console "Direct link to Console (Dashboard)")

* Fixed issue: Prompt message handling for internal login email integration on the API7 Dashboard.
* Fixed issue: Error messages for invalid custom plugin schemas, previously only visible in the browser console, are now displayed on the API7 Dashboard.
* Fixed issue: Configuration interference between `include_resp_body` settings across logging plugins.
* Fixed issue: Warnings appeared during the frontend console build process.

#### Data Plane[​](#3813-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: Secrets could not be dynamically updated.

#### Developer Portal[​](#3813-fixes-developer-portal "Direct link to Developer Portal")

* Fixed issue: OAS could not be queried when creating products in Provider Portal for services created using ADC.
* Fixed issue: Hierarchy issues when downloading OpenAPI documentation in Provider Portal.

## 3.8.12[​](#3812 "Direct link to 3.8.12")

**Release Date**: 2025-09-17

### Fixes[​](#3812-fixes "Direct link to Fixes")

#### Console (Dashboard)[​](#3812-fixes-console "Direct link to Console (Dashboard)")

* Fixed issue: Users with policies scoped by `service_label` could not edit the corresponding services or service templates.
* Fixed issue: Authorization by label on service templates incorrectly reused the label of a published service with the same ID during list API authorization.

## 3.8.11[​](#3811 "Direct link to 3.8.11")

**Release Date**: 2025-08-25

### Features[​](#3811-features "Direct link to Features")

#### Plugins[​](#3811-features-plugins "Direct link to Plugins")

* **[AI Request Rewrite](https://docs.api7.ai/hub/ai-request-rewrite.md)**
  * Introduced new plugin.
* **[AI RAG](https://docs.api7.ai/hub/ai-rag.md)**
  * Introduced new plugin.
* **[AI AWS Content Moderation](https://docs.api7.ai/hub/ai-aws-content-moderation.md)**
  * Introduced new plugin.

#### Console (Dashboard)[​](#3811-features-console "Direct link to Console (Dashboard)")

* Improved guidance when the root user generates a token. The UI now clearly instructs users to create a new user and generate tokens under that account.
* Supported enabling pprof in the Enterprise control plane with a configuration switch. It listens on 127.0.0.1 and is disabled by default.

#### Dependencies[​](#3811-features-dependencies "Direct link to Dependencies")

* Included the latest version of ADC in the Enterprise offline release package.

### Fixes[​](#3811-fixes "Direct link to Fixes")

#### Plugins[​](#3811-fixes-plugins "Direct link to Plugins")

* Custom Plugins
  <!-- -->
  * Fixed issue: Uploading a custom plugin without a `schema` returned 500.
* **[Basic Auth](https://docs.api7.ai/hub/basic-auth.md)**
  * Fixed issue: Made the scheme part ("Basic") case-insensitive.
* **[AI Proxy Multi](https://docs.api7.ai/hub/ai-proxy-multi.md)**
  * Fixed issue: Abnormal traffic distribution.
* **[AI Prompt Decorator](https://docs.api7.ai/hub/ai-prompt-decorator.md)**
  * Fixed issue: User historical messages were incorrectly appended to `messages` in logs/configurations. The plugin now only inserts system prompts as expected.

#### Data Plane[​](#3811-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: With the EWMA load balancing algorithm, historical statistics were not cleaned up, which could exhaust the allocated shared memory and cause errors.

#### Console (Dashboard)[​](#3811-fixes-console "Direct link to Console (Dashboard)")

* Fixed issue: Users logging in on multiple devices could get stuck on the license activation page.
* Fixed issue: The `/plugins` key was only written during custom plugin operations or at dashboard startup. As a result, creating a new gateway under a newly created gateway group could not synchronize the list of enabled plugins from the control plane. The key is now created correctly.
* Fixed issue: When creating Services via ADC, duplicate Routes across different Services were not detected by the route conflict checker.
* Fixed issue: Long labels were not fully displayed in the UI.
* Fixed issue: Concurrently creating a Service with the same ID could result in duplicate creation.
* Fixed issue: Creating two Routes simultaneously could report that the Routes' Service already exists.
* Fixed issue: On the login page, when there were too many login options, the header overlapped and the page could not scroll.

## 3.8.10[​](#3810 "Direct link to 3.8.10")

**Release Date**: 2025-08-25

### Features[​](#3810-features "Direct link to Features")

#### Plugins[​](#3810-features-plugins "Direct link to Plugins")

* **[SOAP](https://docs.api7.ai/hub/soap.md)**
  * Introduced new plugin.

#### Data Plane[​](#3810-features-data-plane "Direct link to Data Plane")

* Supported configuring the addresses for DP Manager and the Admin API via an API7 Dashboard configuration file.

#### Console (Dashboard)[​](#3810-features-console "Direct link to Console (Dashboard)")

* Supported specifying the Admin API address in the gateway deployment configuration, which will be used to populate the GatewayProxy Endpoint address in the API7 Ingress Controller deployment script.
* Consolidated `allow_access` API calls in the API7 Dashboard frontend to reduce redundant requests.
* Added `hash_on` configuration item to upstream connection configuration.

### Fixes[​](#3810-fixes "Direct link to Fixes")

#### Plugins[​](#3810-fixes-plugins "Direct link to Plugins")

* **[AI Proxy Multi](https://docs.api7.ai/hub/ai-proxy-multi.md)**
  * Fixed issue: A panic was triggered by connection timeouts to the upstream service.
* Removed the `ext-plugin-pre-req`, `ext-plugin-post-req`, and `ext-plugin-post-resp` plugins from the Enterprise Edition.

#### Data Plane[​](#3810-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: A deadlock could occur when the Control Plane updates the service API due to insufficient database connections.
* Fixed issue: Upon restarting, worker processes could load stale data from the master process. This could cause temporary request failures (e.g., 404 errors) for recently created or modified routes before the worker process synchronized the latest data from etcd.
* Fixed issue: Etcd history compaction could trigger a full data load in APISIX, causing a significant performance impact on the etcd service, especially in environments with a large number of gateway nodes.

#### Console (Dashboard)[​](#3810-fixes-console "Direct link to Console (Dashboard)")

* Fixed issue: A consumer could not be created when its permission policy was configured to grant all permissions based on labels.
* Fixed issue: In the consumer list page, pagination would occasionally fail. Attempting to navigate to another page would result in a brief loading state, but the view would remain on the current page.

## 3.8.9[​](#389 "Direct link to 3.8.9")

**Release Date**: 2025-08-11

### Features[​](#389-features "Direct link to Features")

#### Plugins[​](#389-features-plugins "Direct link to Plugins")

* **[JWT Auth](https://docs.api7.ai/hub/jwt-auth.md)**
  * Added `store_in_ctx` parameter to store validated JWT object in request context. When set to true (default is false), the plugin stores the validated JWT object in the request context, useful for custom plugins that need to parse JWT to extract permissions.
* **[Workflow](https://docs.api7.ai/hub/workflow.md)**
  * Added support for `limit-conn` plugin integration, allowing dynamic connection limit strategies based on user requests and current APISIX load pressure.

#### Data Plane[​](#389-features-data-plane "Direct link to Data Plane")

* Supported Kubernetes 1.18 in API7 Enterprise Ingress Controller.
* Backported Chaitin WAF plugin from APISIX to API7 Enterprise.

#### Console (Dashboard)[​](#389-features-console "Direct link to Console (Dashboard)")

* Added audit log record TTL configuration option, allowing users to set automatic deletion time for audit log table data. Default value is 60 days.
* Optimized Dataplane manager SQL statements when updating cached Consumer data.

#### Developer Portal[​](#389-features-developer-portal "Direct link to Developer Portal")

* Added support for CAS login.

### Fixes[​](#389-fixes "Direct link to Fixes")

#### Plugins[​](#389-fixes-plugins "Direct link to Plugins")

* **[OAS Validator](https://docs.api7.ai/hub/oas-validator.md)**
  * Fixed issue: Adjusted error level for detailed response errors from `error` to `warn` when `verbose_errors` is enabled.
* **[JWT Auth](https://docs.api7.ai/hub/jwt-auth.md)**
  * Fixed issue: Plugin failed to validate `exp` claim when `claims_to_verify: ["exp"]` is set.
* **[Consumer Restriction](https://docs.api7.ai/hub/consumer-restriction.md)**
  * Fixed issue: Improved error messages when using `consumer-restriction` with `basic-auth` plugin. When `type` is set to `consumer_group_id` with blacklist configuration, non-blacklisted consumers now receive appropriate error messages.
* **[Kafka Logger](https://docs.api7.ai/hub/kafka-logger.md)**
  * Fixed issue: Performance degradation when `max_pending_entries` is enabled in service configuration with many routes. The issue was caused by each route creating separate batch processor buffers due to plugin conf deepcopy during service and route merging.
* **[Limit Count Advanced](https://docs.api7.ai/hub/limit-count-advanced.md)**
  * Fixed issue: Plugin panic triggering shared memory deadlock.

#### Data Plane[​](#389-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: Error information could not be properly recorded when reading request body in `ctx` variables.

#### Console (Dashboard)[​](#389-fixes-console "Direct link to Console (Dashboard)")

* Fixed issue: Chinese labels imported from OpenAPI files were displayed as Chinese pinyin instead of original Chinese characters.
* Fixed issue: Route information occasionally stuck in loading state after frequent route switching.
* Fixed issue: PUT API could create credentials for non-existent consumers.
* Fixed issue: Language switching inconsistency where switching to English on login page would revert to Chinese after login.

#### Developer Portal[​](#389-fixes-developer-portal "Direct link to Developer Portal")

* Fixed issue: SAML/OIDC logout did not properly sign out from IDP login state. After SSO logout, only Control Plane login state was cleared while IDP login state remained, causing automatic login success when clicking SSO login button again.

## 3.8.8[​](#388 "Direct link to 3.8.8")

**Release Date**: 2025-07-28

### Features[​](#388-features "Direct link to Features")

#### Data Plane[​](#388-features-data-plane "Direct link to Data Plane")

* Supported Consul service discovery deduplication and node sorting.
* Supported accessing `uri_param_*` variables when using `radixtree_uri_with_parameter` router.
* Upgraded the base image for the API7-EE-3-Gateway to Ubuntu 24.04.

#### Developer Portal[​](#388-features-developer-portal "Direct link to Developer Portal")

* Supported viewing current API usage statistics for developers in applications.
* Upgraded Scalar to version 0.7.25.

#### Dependencies[​](#388-features-dependencies "Direct link to Dependencies")

* Upgraded Casbin to version 1.41.9.

#### Console (Dashboard)[​](#388-features-console "Direct link to Console (Dashboard)")

* Optimized Ingress gateway group deployment scripts by adding `config.controllerName`.

### Fixes[​](#388-fixes "Direct link to Fixes")

#### Data Plane[​](#388-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: Corrupt data in `routes()` response due to health checker data.
* Fixed issue: `grpc-web` responses could contain duplicate trailer chunks.
* Fixed issue: Inconsistent response headers for different strategies in the `proxy-cache` plugin.

#### Plugins[​](#388-fixes-plugins "Direct link to Plugins")

* **[API Breaker](https://apisix.apache.org/docs/apisix/plugins/api-breaker/)**
  * Fixed issue: The `api-breaker` plugin failed to trigger correctly due to an inaccurate time point (`breaker_time`) in the implementation.
* **[AI Proxy](https://docs.api7.ai/hub/ai-proxy.md)**
  * Fixed issue: Fix `upstream_response_time` being empty by adding `apisix_upstream_response_time` variable to measure the time APISIX takes to communicate with the upstream and receive the response.

#### Console (Dashboard)[​](#388-fixes-console "Direct link to Console (Dashboard)")

* Fixed issue: Concurrent requests to generate deployment scripts for a new gateway group could result in duplicate keys.
* Fixed issue: Repeatedly clicking "View ID" across different routes would accumulate route IDs.
* Fixed issue: Creation and update timestamps were incorrectly positioned in the resource details.
* Fixed issue: Audit logs were not recorded for plugin operations (create/delete/edit) in published services.
* Fixed issue: Infinite redirect during CAS login caused by an abnormal server timestamp.
* Fixed issue: Resource selector on the monitoring page was too narrow, causing text truncation.

## 3.8.7[​](#387 "Direct link to 3.8.7")

**Release Date**: 2025-07-17

### Features[​](#387-features "Direct link to Features")

#### Plugins[​](#387-features-plugins "Direct link to Plugins")

* **[Limit Count Advanced](https://docs.api7.ai/hub/limit-count-advanced.md)**
  * Added support for Redis Sentinel mode.

#### Data Plane[​](#387-features-data-plane "Direct link to Data Plane")

* Supported component upgrade sequence control to ensure dp-manager waits for database migration before startup.

#### Console (Dashboard)[​](#387-features-console "Direct link to Console (Dashboard)")

* Supported OpenAPI editor pre-fills previous data for service OpenAPI specifications, avoiding full re-entry for simple modifications.
* Supported configuring and enabling Content Security Policy (CSP) by default.
* Supported displaying both Gateway API and Ingress deployment scripts for Ingress Controller gateway groups.

#### Developer Portal[​](#387-features-developer-portal "Direct link to Developer Portal")

* Supported deleting developers in the Provider Portal.
* Introduced an "Application" resource to manage API product subscriptions and credentials at the application level.

### Fixes[​](#387-fixes "Direct link to Fixes")

#### Plugins[​](#387-fixes-plugins "Direct link to Plugins")

* **[Zipkin](https://docs.api7.ai/hub/zipkin.md)**
  * Fixed issue: `zipkin_trace_id` appeared garbled in `access.log`.
* **[Forward Auth](https://docs.api7.ai/hub/forward-auth.md)**
  * Fixed issue: Forwarding POST requests with `forward-auth` plugin may result in 504 errors caused by the request body being lost. Resolved by introducing `extra_headers`.

#### Data Plane[​](#387-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: Some Control Plane APIs (`/api/license`, `/api/system_infos`, `/api/developer-portal-url`) could be accessed without authorization.
* Fixed issue: `delay_encode` could only be used once per log line.
* Fixed issue: Metrics failed to report after startup due to certificate issues.

#### Console (Dashboard)[​](#387-fixes-console "Direct link to Console (Dashboard)")

* Fixed issue: Deleting source code while editing a custom plugin cleared the entire form.

#### Developer Portal[​](#387-fixes-developer-portal "Direct link to Developer Portal")

* Fixed issue: Unauthenticated users could see non-subscribable products after filtering for subscribed API products.
* Fixed issue: The "Clear All" button has been removed for API products with a single filter, as its function overlaps with selecting "All" conditions.

## 3.8.6[​](#386 "Direct link to 3.8.6")

**Release Date**: 2025-06-27

### Features[​](#386-features "Direct link to Features")

#### Plugins[​](#386-features-plugins "Direct link to Plugins")

* **[Elasticsearch Logger](https://docs.api7.ai/hub/elasticsearch-logger.md)**
  * Added support for Elasticsearch 9.0.2.

### Fixes[​](#386-fixes "Direct link to Fixes")

#### Plugins[​](#386-fixes-plugins "Direct link to Plugins")

* **[OpenID Connect](https://docs.api7.ai/hub/openid-connect.md)**
  * Fixed issue: Sessions not properly closed on errors, leading to resource leaks.

#### Data Plane[​](#386-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: Worker process not exiting when executing quit or reload command.
* Fixed issue: Port values greater than 65535 were incorrectly accepted.
* Fixed issue: etcd data sync failure when keys contain special characters.
* Fixed issue: Kubernetes service discovery performance degradation due to watch progress re-listing all data.
* Fixed issue: Memory leak in [Kafka Logger](https://docs.api7.ai/hub/kafka-logger.md) causing nginx worker crashes.

#### Console (Dashboard)[​](#386-fixes-console "Direct link to Console (Dashboard)")

* Fixed issue: Clicking "Delete" on plugins only disabled them instead of removing them.
* Fixed issue: Incorrect or missing namespace/service data in upstream when using Kubernetes service discovery.

#### Security[​](#386-fixes-security "Direct link to Security")

* Fixed issue: TLSv1.3 cross-SNI session resumption vulnerability (backported HTTP fixes from nginx 1.21.4).

## 3.8.5[​](#385 "Direct link to 3.8.5")

**Release Date**: 2025-06-16

### Features[​](#385-features "Direct link to Features")

#### Console (Dashboard)[​](#385-features-console "Direct link to Console (Dashboard)")

* Added route URI information to alert messages for status code-related alert events.

### Fixes[​](#385-fixes "Direct link to Fixes")

#### Dependencies[​](#385-fixes-dependencies "Direct link to Dependencies")

* Upgraded OpenSSL from version 3.2.3 to 3.2.4.
* Upgraded Debian base image to Bookworm.

#### Data Plane[​](#385-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: Severe performance impact occurred when OAS plugin spec files are too large.
* Fixed issue: `post_arg` matching fails when content-type contains charset.
* Fixed issue: Consumers did not share the same counter in the `limit-count` plugin.
* Fixed issue: Missing etcd `init_dir` prevents listing resources.
* Fixed issue: `real_payload` can be overridden by malicious payload in the `jwt-auth` plugin.
* Fixed issue: Incorrect variables and redundant TLS configs in `upstream_schema`.

#### Console (Dashboard)[​](#385-fixes-console "Direct link to Console (Dashboard)")

* Fixed issue: Route plugin updates in services mistakenly override existing plugins.

## 3.8.4[​](#384 "Direct link to 3.8.4")

**Release Date**: 2025-06-11

### Fixes[​](#384-fixes "Direct link to Fixes")

#### Data Plane[​](#384-fixes-data-plane "Direct link to Data Plane")

* Optimized the performance of large table data migration during control plane upgrades.
* Added caching logic to `post_arg` to optimize performance and prevent repeated inefficient parsing.
* Fixed issue: The cache for `ctx` variables prefixed with `http_` and `graph_` is not effective.
* Fixed issue: Prometheus metrics are not properly retained after degradation and recovery.

#### Console (Dashboard)[​](#384-fixes-console "Direct link to Console (Dashboard)")

* Fixed issue: The plugin's editing method (form or code) is not displayed correctly.
* Fixed issue: Error in the code suggestions in the Response Rewrite plugin editor.

## 3.8.3[​](#383 "Direct link to 3.8.3")

**Release Date**: 2025-06-04

### Features[​](#383-features "Direct link to Features")

#### Plugins[​](#383-features-plugins "Direct link to Plugins")

* Automatically inserted `_meta` into the schemas of custom plugins.

#### Data Plane[​](#383-features-data-plane "Direct link to Data Plane")

* Supported the configuration of `apisix.disable_upstream_healthcheck` in `conf/config.yaml` to disable all health checks with a single switch.
* Optimized Prometheus performance by mitigating high memory consumption.
* Released [API7 Ingress Controller 2.0](https://github.com/api7/api7-ingress-controller/releases/tag/2.0.0).

#### Console (Dashboard)[​](#383-features-console "Direct link to Console (Dashboard)")

* Optimized the deployment process for ingress controller type of gateway groups.
* Added alert policy event trigger "license will expire".

### Fixes[​](#383-fixes "Direct link to Fixes")

#### Data Plane[​](#383-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: Occasional route matching error when reading body for GraphQL requests with `post_arg`.

#### Console (Dashboard)[​](#383-fixes-console "Direct link to Console (Dashboard)")

* Fixed issue: Upgrade dependencies `ramda` to `0.30.1` and `cross-spawn` to `7.0.5` to avoid high-risk vulnerabilities.
* Fixed issue: The `max-age` field is displayed incorrectly when configuring the `cors` plugin details using the dashboard form.
* Fixed issue: After upgrading ADC from version 17.x to 19.x, the Dashboard continues displaying outdated configurations when multiple routes under the same service are updated simultaneously.
* Fixed issue: Unable to view plugin configurations within a service with the `gateway:GetPublishedService` or `gateway:GetServiceTemplate` permissions in the dashboard.
* Fixed issue: API7 Enterprise built-in plugins do not work properly when two custom plugins contain faulty code.
* Fixed issue: Kubernetes service discovery experiences performance issues with a high number of upstream nodes.
* Fixed issue: Headers have inconsistent casing. They are standardized to title case.

## 3.8.2[​](#382 "Direct link to 3.8.2")

**Release Date**: 2025-05-19

### Features[​](#382-features "Direct link to Features")

#### Plugins[​](#382-features-plugins "Direct link to Plugins")

* **[AI Proxy Multi](https://docs.api7.ai/hub/ai-proxy-multi.md)**
  * Added retry logic for 429/5xx response codes to improve request success rate.

#### Data Plane[​](#382-features-data-plane "Direct link to Data Plane")

* Added support for reverse proxying AzureAI services.

#### Console (Dashboard)[​](#382-features-console "Direct link to Console (Dashboard)")

* Supported CAS as an SSO login option for API7 Enterprise.

### Fixes[​](#382-fixes "Direct link to Fixes")

#### Console (Dashboard)[​](#382-fixes-console "Direct link to Console (Dashboard)")

* Fixed issue: Failed to update basic information of published services.
* Fixed issue: `retry_timeout` and `retries` cannot be edited in the stream service upstream.
* Fixed issue: Page crash when gateway instance is missing compatibility field.

#### Data Plane[​](#382-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: Long startup time for standalone mode with large configuration files.
* Fixed issue: [OAS Validator](https://docs.api7.ai/hub/oas-validator.md) plugin incorrectly rejecting numbers between 1.11-1.19 with `multipleOf: 0.01` rule.
* Fixed issue: [AI Proxy](https://docs.api7.ai/hub/ai-proxy.md) plugin would accept invalid endpoint URLs (e.g. missing colon in "http//localhost").

## 3.8.1[​](#381 "Direct link to 3.8.1")

**Release Date**: 2025-05-07

### Features[​](#381-features "Direct link to Features")

#### Plugins[​](#381-features-plugins "Direct link to Plugins")

* **[Limit Count Advanced](https://docs.api7.ai/hub/limit-count-advanced.md)**
  * Added automatic fallback to local shared dict when Redis is unavailable, preventing request failures during Redis outages.

#### Data Plane[​](#381-features-data-plane "Direct link to Data Plane")

* Supported active and passive health checks for Stream (Layer 4) routes.

#### Console (Dashboard)[​](#381-features-console "Direct link to Console (Dashboard)")

* Specified the validity period of the gateway instance certificate when adding a gateway instance.
* Added a warning in the gateway instance list when the certificate is about to expire.
* Supported viewing the certificate renew method for gateway instances in the dashboard and generating new gateway instance certificates.

### Fixes[​](#381-fixes "Direct link to Fixes")

#### Data Plane[​](#381-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: Health checks do not work as expected when using TCP services, and requests are still forwarded to unhealthy upstream nodes.
* Fixed issue: High latency in gateway requests due to Redis service failures.
* Fixed issue: Error in determining the default value of `llm_time_to_first_token` in AI Gateway.

#### Plugins[​](#381-fixes-plugins "Direct link to Plugins")

* Removed the `snowflake` algorithm from the `request-id` plugin due to potential risks.

#### Console (Dashboard)[​](#381-fixes-console "Direct link to Console (Dashboard)")

* Fixed issue: The total bandwidth chart data on the monitoring page was inconsistent with Prometheus.
* Fixed issue: When forced publishing is enabled, modifications to the Route’s timeout and plugin configurations are not allowed in the published service.

## 3.8.0[​](#380 "Direct link to 3.8.0")

**Release Date**: 2025-04-22

### Features[​](#380-features "Direct link to Features")

#### Plugins[​](#380-features-plugins "Direct link to Plugins")

* **[AI Proxy](https://docs.api7.ai/hub/ai-proxy.md)**
  * Implemented new identifier fields `logging` and `summaries` for collecting LLM request and response content.

* **[AI Proxy Multi](https://docs.api7.ai/hub/ai-proxy-multi.md)**

  * Supported HTTP POST method for health checks.
  * Displayed a record at the warning log level if the fallback was triggered.
  * Implemented a new identifier field for collecting LLM request and response content.

* **[AI Aliyun Content Moderation](https://docs.api7.ai/hub/ai-aliyun-content-moderation.md)**
  * Added support for streaming (HTTP SSE) scenarios.

* **[AI Prompt Guard](https://docs.api7.ai/hub/ai-prompt-guard.md)**
  * Introduced new plugin.

* **[Kafka Logger](https://docs.api7.ai/hub/kafka-logger.md)**
  * Supported reading the user request and response body content cached in `ctx` and pushing it to the specified Kafka service.

#### Data Plane[​](#380-features-data-plane "Direct link to Data Plane")

* Supported using values from an array object within the user request body in routing conditions. While `post_arg` was already permitted in routing conditions, this update introduces support for array scenarios for the type field's location.
* Supported the recording of additional AI request context information within access logs.
* Supported adding a request type identifier to Prometheus metrics to collect more granular data on AI requests.

#### Console (Dashboard)[​](#380-features-console "Direct link to Console (Dashboard)")

* Added detailed statistics for service name and route name in status code alert messages.
* Optimized plugin configuration: When configuring [Traffic Split](https://docs.api7.ai/hub/traffic-split.md) plugin on a service or route, verify that the `upstream_id` configured indeed belongs to the current service's upstreams.
* Aligned the upstream connection configuration field names with the API in published services.
* Introduced a form-based UI for [CORS](https://docs.api7.ai/hub/cors.md) plugin configuration.

### Fixes[​](#380-fixes "Direct link to Fixes")

#### Data Plane[​](#380-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: When the upstream type was Kubernetes service discovery, nodes in health checks were not updated after node changes, resulting in many health check failure logs.
* Fixed issue: An error occurred when the `shared_size` parameter for Kubernetes service discovery was adjusted to 100m.[#11857](https://github.com/apache/apisix/issues/11857)
* Fixed issue: APISIX/API7 Enterprise with Kubernetes discovery will fail after token file expires. [#11779](https://github.com/apache/apisix/issues/11779)
* Fixed issue: After updating the `prefix` of Vault secret provider, the data plane continued to use the old configuration.

#### Console (Dashboard)[​](#380-fixes-console "Direct link to Console (Dashboard)")

* Fixed issue: The `retries` field in the upstream was incorrectly set as required.

* Fixed issue: An error occurred on the published service page due to lack of service template permissions.

* Fixed issue: Updating the service discovery service name in published services did not take effect.

* Fixed issue: Creating multiple records with rapid clicks.

* Fixed issue: High database CPU utilization when using large scale of consumers.

* Optimized the wildcard configuration method for [Permission Policy](https://docs.api7.ai/enterprise/key-concepts/roles-and-permission-policies):

  <!-- -->

  * Wildcard configuration using `*` is now supported in authorization statements, with the same meaning as the current `<.*>`；
  * The asterisk `*` is restricted and not allowed in any resource ID fields to prevent authorization failures.

## 3.7.8[​](#378 "Direct link to 3.7.8")

**Release Date**: 2025-06-16

### Fixes[​](#378-fixes "Direct link to Fixes")

#### Console (Dashboard)[​](#378-fixes-console "Direct link to Console (Dashboard)")

* Fixed issue: Route plugin updates in services mistakenly override existing plugins.

## 3.7.7[​](#377 "Direct link to 3.7.7")

**Release Date**: 2025-06-11

### Fixes[​](#377-fixes "Direct link to Fixes")

#### Console (Dashboard)[​](#377-fixes-console "Direct link to Console (Dashboard)")

* Optimized the performance of large table data migration during control plane upgrades.

## 3.7.6[​](#376 "Direct link to 3.7.6")

**Release Date**: 2025-06-02

### Fixes[​](#376-fixes "Direct link to Fixes")

#### Data Plane[​](#376-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: Kubernetes service discovery experiences performance issues with a high number of upstream nodes.

#### Console (Dashboard)[​](#376-fixes-console "Direct link to Console (Dashboard)")

* Fixed issue: API7 Enterprise built-in plugins do not work properly when two custom plugins contain faulty code.
* Fixed issue: After upgrading ADC from version 17.x to 19.x, the Dashboard continues displaying outdated configurations when multiple routes under the same service are updated simultaneously.

## 3.7.5[​](#375 "Direct link to 3.7.5")

**Release Date**: 2025-05-19

### Fixes[​](#375-fixes "Direct link to Fixes")

#### Console (Dashboard)[​](#375-fixes-console "Direct link to Console (Dashboard)")

* Fixed issue: Failed to update basic information of published services.

#### Data Plane[​](#375-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: Long startup time for standalone mode with large configuration files.
* Fixed issue: [OAS Validator](https://docs.api7.ai/hub/oas-validator.md) plugin incorrectly rejecting numbers between 1.11-1.19 with `multipleOf: 0.01` rule.

## 3.7.4[​](#374 "Direct link to 3.7.4")

**Release Date**: 2025-04-30

### Features[​](#374-features "Direct link to Features")

#### Console (Dashboard)[​](#374-features-console "Direct link to Console (Dashboard)")

* Specified the validity period of the gateway instance certificate when adding a gateway instance.
* Added a warning in the gateway instance list when the certificate is about to expire.
* Supported viewing the certificate renew method for gateway instances in the dashboard and generating new gateway instance certificates.

### Fixes[​](#374-fixes "Direct link to Fixes")

#### Data Plane[​](#374-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: Health checks do not work as expected when using TCP services, and requests are still forwarded to unhealthy upstream nodes.
* Fixed issue: High latency in gateway requests due to Redis service failures.
* Fixed issue: Error in determining the default value of `llm_time_to_first_token` in AI Gateway.

#### Plugins[​](#374-fixes-plugins "Direct link to Plugins")

* Removed the `snowflake` algorithm from the `request-id` plugin due to potential risks.

#### Console (Dashboard)[​](#374-fixes-console "Direct link to Console (Dashboard)")

* Fixed issue: The total bandwidth chart data on the monitoring page was inconsistent with Prometheus.
* Fixed issue: When forced publishing is enabled, modifications to the Route’s timeout and plugin configurations are not allowed in the published service.

## 3.7.3[​](#373 "Direct link to 3.7.3")

**Release Date**: 2025-04-22

### Fixes[​](#373-fixes "Direct link to Fixes")

#### Console (Dashboard)[​](#373-fixes-console "Direct link to Console (Dashboard)")

* Fixed issue: High database CPU utilization when using large scale of consumers.

* Optimized the wildcard configuration method for [Permission Policy](https://docs.api7.ai/enterprise/key-concepts/roles-and-permission-policies):

  <!-- -->

  * Wildcard configuration using `*` is now supported in authorization statements, with the same meaning as the current `<.*>`；
  * The asterisk `*` is restricted and not allowed in any resource ID fields to prevent authorization failures.

## 3.7.2[​](#372 "Direct link to 3.7.2")

**Release Date**: 2025-03-24

### Fixes[​](#372-fixes "Direct link to Fixes")

#### Plugins[​](#372-fixes-plugins "Direct link to Plugins")

* **[OpenTelemetry](https://docs.api7.ai/hub/opentelemetry.md)**
  * Fixed issue: A 404 response on the dynamic route `/v2/:customerNumber` results in an empty reported path.

#### Admin APIs[​](#372-fixes-admin-apis "Direct link to Admin APIs")

* Fixed issue: Resources lack consistent `name` and `desc` length enforcement up to 65535 characters, causing errors when users input valid long strings.

#### Console (Dashboard)[​](#372-fixes-console "Direct link to Console (Dashboard)")

* Fixed issue: Users observe encrypted ciphertext, not their original plaintext input, for sensitive service and route fields after database storage.
* Fixed issue: Upon dashboard restart, the previously deleted default gateway group is erroneously regenerated.
* Fixed issue: Token name updates are not reflected in the notification area.

### Dependencies[​](#372-dependencies "Direct link to Dependencies")

* Upgraded to [Go 1.23](https://tip.golang.org/doc/go1.23).
* Upgraded to [Next.js 14.2.25](https://nextjs.org/blog/next-14-2) to resolve [CVE-2025-29927](https://nvd.nist.gov/vuln/detail/CVE-2025-29927).

## 3.7.1[​](#371 "Direct link to 3.7.1")

**Release Date**: 2025-03-14

### Fixes[​](#371-fixes "Direct link to Fixes")

#### Plugins[​](#371-fixes-plugins "Direct link to Plugins")

* **[OpenID Connect](https://docs.api7.ai/hub/openid-connect.md)**

  * Fixed issue: Cannot configuring verify issuer.
  * Fixed issue: Unable to validate audience claim. [#11018](https://github.com/apache/apisix/issues/11018).

## 3.7.0[​](#370 "Direct link to 3.7.0")

**Release Date**: 2025-03-10

### Features[​](#370-features "Direct link to Features")

#### Data Plane[​](#370-features-data-plane "Direct link to Data Plane")

* **Reference Secrets in Kubernetes Secret**: The secret provider now supports Kubernetes secrets. This allows you to reference sensitive values from Kubernetes secrets for use in SSL certificates, SSL private keys, consumer credentials, and various plugin configurations.

#### Plugins[​](#370-features-plugins "Direct link to Plugins")

* **[AI Rate Limiting](https://docs.api7.ai/hub/ai-rate-limiting.md)**
  * Introduced new AI plugin which enforces token-based rate limiting for requests sent to LLM services. It helps manage API usage by controlling the number of tokens consumed within a specified time frame, ensuring fair resource allocation and preventing excessive load on the service. It is often used with [AI Proxy Multi](https://docs.api7.ai/hub/ai-proxy-multi.md) plugin.

* **[AI Proxy](https://docs.api7.ai/hub/ai-proxy.md)**

  * Supported openai-compatible provider.
  * Supported proxying embedding model APIs.

* **[AI Proxy Multi](https://docs.api7.ai/hub/ai-proxy-multi.md)**

  * Supported openai-compatible provider.
  * Supported bypassing upstream configuration when using the plugin.
  * Supported active health check.
  * Supported proxying embedding model APIs.

#### Console (Dashboard)[​](#370-features-console "Direct link to Console (Dashboard)")

* Supported \**referencing a specific secret from Kubernetes Secrets*: See [Reference a secret in Kubernetes Secrets](https://docs.api7.ai/enterprise/api-security/kubernetes-secret) for details.
* Added page size selector for all tables.
* Displayed the service ID and service template ID on the service page header, and the route ID and route template ID on the route page header.

#### Admin APIs[​](#370-features-admin-apis "Direct link to Admin APIs")

* Added **Reference Secrets in Kubernetes Secret** related APIs:

  <!-- -->

  * [Get a Kubernetes secret provider on a gateway group](https://docs.api7.ai/enterprise/3.7.x/admin-api#tag/Secret-Provider/operation/getKubernetesSecretProvider).
  * [Update a Kubernetes secret provider on a gateway group](https://docs.api7.ai/enterprise/3.7.x/admin-api#tag/Secret-Provider/operation/putKubernetesSecretProvider).
  * [Delete a Kubernetes secret provider on a gateway group](https://docs.api7.ai/enterprise/3.7.x/admin-api#tag/Secret-Provider/operation/deleteKubernetesSecretProvider).

### Fixes[​](#370-fixes "Direct link to Fixes")

#### Data Plane[​](#370-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: Duplicated gateway instance IDs result in inaccurate CPU counts.

#### Console (Dashboard)[​](#370-fixes-console "Direct link to Console (Dashboard)")

* Fixed issue: Alert email delivery failed due to an invalid `From Name` format in the SMTP server configuration.
* Fixed issue: Plugin metadata is not deleted when deleting the custom plugin.
* Fixed issue: The `Skip Path Prefix` field is not removed when manually adding a stream service.
* Fixed issue: The priority of route cannot be set to negative numbers.

## 3.6.1[​](#361 "Direct link to 3.6.1")

**Release Date**: 2025-03-14

### Fixes[​](#361-fixes "Direct link to Fixes")

#### Plugins[​](#361-fixes-plugins "Direct link to Plugins")

* **[Limit Count Advanced](https://docs.api7.ai/hub/limit-count-advanced.md)**
  * Fixed issue: Intermittently experiences 500 errors during load testing.
* **[OpenID Connect](https://docs.api7.ai/hub/openid-connect.md)**
  * Fixed issue: The plugin does not support configuring verify issuer.

## 3.6.0[​](#360 "Direct link to 3.6.0")

**Release Date**: 2025-02-26

### Breaking Changes[​](#360-breaking-changes "Direct link to Breaking Changes")

* Removed [service runtime configurations](https://docs.api7.ai/enterprise/key-concepts/services#service-runtime-configurations) in service templates, for better template reuse across gateway groups. **Existing service runtime configurations within service templates will be removed, but your published service configurations will remain unchanged.** Furthermore, the publishing process is simplified and streamlined, with no service runtime configurations allowed during the process. See the renewed guide to [publish service](https://docs.api7.ai/enterprise/getting-started/publish-service).

### Features[​](#360-features "Direct link to Features")

#### Data Plane[​](#360-features-data-plane "Direct link to Data Plane")

* Supported the configuration of upstream mTLS: see [Configure mTLS between API7 Enterprise and Upstream](https://docs.api7.ai/enterprise/api-security/upstream-mtls) for more details.

#### Console (Dashboard)[​](#360-features-console "Direct link to Console (Dashboard)")

* Supported **Logged in with Email**: API7 Enterprise dashboard now supports login using either username or email address with password. To use email for login or to receive notifications, please bind an email address to your user profile.
* Supported configuring mTLS for upstreams.
* Supported referencing environment variables for SSO connection information.
* Introduced a form-based UI for plugin configuration.
* Added Basic Authentication as an authentication option for Developer Portal credentials. If the API product allows multiple authentication types, any valid credential can be used.

### Fixes[​](#360-fixes "Direct link to Fixes")

#### Data Plane[​](#360-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: Race condition problem while update `upstream.nodes`.[#11916](https://github.com/apache/apisix/pull/11916).
* Fixed service discovery issue: Upstream `original_nodes` is not updated when fill\_node\_info structure after cloning the nodes table.[#10722](https://github.com/apache/apisix/pull/10722).

## 3.5.5[​](#355 "Direct link to 3.5.5")

**Release Date**: 2025-03-14

### Fixes[​](#355-fixes "Direct link to Fixes")

#### Plugins[​](#355-fixes-plugins "Direct link to Plugins")

* **[Limit Count Advanced](https://docs.api7.ai/hub/limit-count-advanced.md)**
  * Fixed issue: Intermittently experiences 500 errors during load testing.

* **[OpenID Connect](https://docs.api7.ai/hub/openid-connect.md)**

  * Fixed issue: The plugin does not support configuring verify issuer.
  * Fixed issue: Unable to validate audience claim.[#11018](https://github.com/apache/apisix/pull/11018)

## 3.5.4[​](#354 "Direct link to 3.5.4")

**Release Date**: 2025-03-07

### Fixes[​](#354-fixes "Direct link to Fixes")

#### Plugins[​](#354-fixes-plugins "Direct link to Plugins")

* **[Elasticsearch Logger](https://docs.api7.ai/hub/elasticsearch-logger.md)**
  * Fixed issue: The plugin cannot configuring the index to dynamically send data based on the current date in the plugin.

#### Console (Dashboard)[​](#354-fixes-console "Direct link to Console (Dashboard)")

* Fixed issue: Re-publishing with a template can lead to the loss of upstream configurations.
* Fixed issue: The OpenAPI cache on the page failed to invalidate after a service was rebuilt with ADC.
* Optimized slow queries.

## 3.5.3[​](#353 "Direct link to 3.5.3")

**Release Date**: 2025-02-18

### Fixes[​](#353-fixes "Direct link to Fixes")

* Fixed issue: Alert email subject cannot contain variables.

## 3.5.2[​](#352 "Direct link to 3.5.2")

**Release Date**: 2025-02-18

### Fixes[​](#352-fixes "Direct link to Fixes")

#### Data Plane[​](#352-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: Failed to enable the `Log Rotate` plugin.
* Fixed issue: Duplicate data may occasionally occur in gateway instances during the upgrade process, specifically when using MySQL databases.
* Fixed issue: Deletion of custom plugins may occasionally fail.
* Fixed issue: When the data plane reports metrics, it may occasional encounter 500 errors.

#### Plugins[​](#352-fixes-plugins "Direct link to Plugins")

* **[Proxy Rewrite](https://docs.api7.ai/hub/proxy-rewrite.md)**
  * Fixed issue: Version compatibility issue with the plugin.

#### Admin API[​](#352-fixes-admin-api "Direct link to Admin API")

* [List all stream routes in a published service on a gateway group](https://docs.api7.ai/enterprise/3.5.x/admin-api#tag/Stream-Route/operation/listPublishedServiceStreamRoutes)
  * Fixed issue: Response error.

#### Console (Dashboard)[​](#352-fixes-console "Direct link to Console (Dashboard)")

* Fixed issue: Upgrading the dashboard before the DP Manager during a version upgrade can cause the DP Manager to restart continuously.

## 3.5.1[​](#351 "Direct link to 3.5.1")

**Release Date**: 2025-02-06

### Fixes[​](#351-fixes "Direct link to Fixes")

#### Plugins[​](#351-fixes-plugins "Direct link to Plugins")

* **[OpenTelemetry](https://docs.api7.ai/hub/opentelemetry.md)**
  * Fixed issue: Cannot reporting `request.url` as `route.url` when the plugin reports dynamic routes `/v2/:customerNumber`.

#### Console (Dashboard)[​](#351-fixes-console "Direct link to Console (Dashboard)")

* Fixed issue: Failed to configure the Azure SMTP server to send alert emails.

## 3.5.0[​](#350 "Direct link to 3.5.0")

**Release Date**: 2025-01-27

### Features[​](#350-features "Direct link to Features")

#### Data Plane[​](#350-features-data-plane "Direct link to Data Plane")

* **Multiple Upstreams in a Service**: For advanced scenarios such as canary deployments, blue-green deployments, or managing multiple clusters, a service can now utilize multiple upstreams. In such cases, a default upstream serves as the primary target for most requests, while other upstreams can be used for specific purposes, such as routing traffic to a canary deployment or a secondary cluster. See the renewed [Configure Canary Traffic Shifting](https://docs.api7.ai/enterprise/getting-started/canary-upstream) for details.

info

The old **Canary Rule** function is no longer available.

* Supported custom configuration of DP metrics label through [Prometheus](https://docs.api7.ai/hub/prometheus.md) plugin metadata.
* Optimized performance of data plane Prometheus metrics reporting.
* \[Beta] Configured mTLS for upstream. API support is currently available. Full support is coming soon.

#### Plugins[​](#350-features-plugins "Direct link to Plugins")

* **[OpenID Connect](https://docs.api7.ai/hub/openid-connect.md)**
  * Added `redirect_after_logout_uri` for plugin that do not have an `end_session_endpoint`.[#10653](https://github.com/apache/apisix/pull/10653)

* **[Zipkin](https://docs.api7.ai/hub/zipkin.md)**
  * Added Zipkin variable.[#10361](https://github.com/apache/apisix/pull/10361)

* **[Proxy Rewrite](https://docs.api7.ai/hub/proxy-rewrite.md)**

  * Supported miltiple regex pattern matching.[#9194](https://github.com/apache/apisix/pull/9194)
  * Supported variable when rewrite header.[#9112](https://github.com/apache/apisix/pull/9112)

* **GRPC web**
  * Supported configuring `allow-headers`.[#10904](https://github.com/apache/apisix/pull/10904)

* **[Mocking](https://docs.api7.ai/hub/mocking.md)**
  * Supported adding headers.[#9720](https://github.com/apache/apisix/pull/9720)

* **[OPA](https://docs.api7.ai/hub/opa.md)**
  * Supported sending headers upstream returned by OPA.[#9710](https://github.com/apache/apisix/pull/9710)

* **[HTTP Logger](https://docs.api7.ai/hub/http-logger.md)**
  * Supported compressed responses in loggers.[#10884](https://github.com/apache/apisix/pull/10884)

* **[Kafka Logger](https://docs.api7.ai/hub/kafka-logger.md)**
  * Supported compressed responses in loggers.[#10884](https://github.com/apache/apisix/pull/10884)

* **[RocketMQ Logger](https://docs.api7.ai/hub/rocketmq-logger.md)**
  * Supported compressed responses in loggers.[#10884](https://github.com/apache/apisix/pull/10884)

* **[Traffic Split](https://docs.api7.ai/hub/traffic-split.md)**
  * Supported HTTPs.[#9115](https://github.com/apache/apisix/pull/9115)

#### Admin APIs[​](#350-features-admin-apis "Direct link to Admin APIs")

* Added **Multiple Upstreams** related APIs:

  <!-- -->

  * [Create a upstream in a published service on a gateway group](https://docs.api7.ai/enterprise/3.5.x/admin-api#tag/Published-Service/operation/createPublishedServiceUpstream).
  * [Update a upstream in a published service on a gateway group](https://docs.api7.ai/enterprise/3.5.x/admin-api#tag/Published-Service/operation/putPublishedServiceUpstream).
  * [Patch a upstream in a published service on a gateway group](https://docs.api7.ai/enterprise/3.5.x/admin-api#tag/Published-Service/operation/patchPublishedServiceUpstream).
  * [List all upstreams in a published service on a gateway group](https://docs.api7.ai/enterprise/3.5.x/admin-api#tag/Published-Service/operation/listPublishedServiceUpstreams).
  * [Get a upstream in a published service on a gateway group](https://docs.api7.ai/enterprise/3.5.x/admin-api#tag/Published-Service/operation/getPublishedServiceUpstream).
  * [Delete a upstream in a published service on a gateway group](https://docs.api7.ai/enterprise/3.5.x/admin-api#tag/Published-Service/operation/deletePublishedServiceUpstream).

* Updated **Published Service** APIs due to the new feature:**Configured mTLS for upstreams**:

  <!-- -->

  * [Create a published service on a gateway group](https://docs.api7.ai/enterprise/3.5.x/admin-api#tag/Published-Service/operation/createPublishedService)
    * Added properties: `client_certificate`, `ca_certificate`, `tls_verify`.
  * [Create a upstream in a published service on a gateway group](https://docs.api7.ai/enterprise/3.5.x/admin-api#tag/Published-Service/operation/createPublishedServiceUpstream)
    * Added properties: `client_certificate`, `ca_certificate`, `tls_verify`.
  * [Update published service(without publishing)](https://docs.api7.ai/enterprise/3.5.x/admin-api#tag/Published-Service/operation/putPublishedService)
    * Added properties: `client_certificate`, `ca_certificate`, `tls_verify`.
  * [Update a upstream in a published service on a gateway group](https://docs.api7.ai/enterprise/3.5.x/admin-api#tag/Published-Service/operation/putPublishedServiceUpstream)
    * Added properties: `client_certificate`, `ca_certificate`, `tls_verify`.

#### Console (Dashboard)[​](#350-features-console "Direct link to Console (Dashboard)")

* **Multiple Upstreams in a Service**: For advanced scenarios such as canary deployments, blue-green deployments, or managing multiple clusters, a service can now utilize multiple upstreams. In such cases, a default upstream serves as the primary target for most requests, while other upstreams can be used for specific purposes, such as routing traffic to a canary deployment or a secondary cluster. See the renewed [Configure Canary Traffic Shifting](https://docs.api7.ai/enterprise/getting-started/canary-upstream) for details.
* Prohibited new resource creation due to exceeding the License CPU limit.
* Added page size selection for API7 Portal dashboard pages.
* Supported both YAML/JSON format for plugin configurations.
* Improved UI for upstream health check configuration.
* Renamed **Enable/Disable Plugin** to **Add/Delete Plugin** for improved accuracy.

### Fixes[​](#350-fixes "Direct link to Fixes")

#### Plugins[​](#350-fixes-plugins "Direct link to Plugins")

* **[Traffic Split](https://docs.api7.ai/hub/traffic-split.md)**
  * Fixed issue: LRU Cache object creation function causes client request exceptions.
* **[Limit Conn](https://docs.api7.ai/hub/limit-conn.md)**
  * Fixed issue: Report error attribute does not exist because using HTTP variable in stream mode.[#9816](https://github.com/apache/apisix/pull/9816)
* **[Prometheus](https://docs.api7.ai/hub/prometheus.md)**
  * Fixed issue: Even after the Prometheus plugin is disabled, all features related to Prometheus are not entirely shut down..[#11117](https://github.com/apache/apisix/pull/11117)
* **[OpenID Connect](https://docs.api7.ai/hub/openid-connect.md)**
  * Fixed issue: The `redirect_uri` was set to `ngx.var.request_uri` if not configured and caused the underlying `lua-resty-openidc` module to raise error.[#7690](https://github.com/apache/apisix/pull/7690)
* **[Zipkin](https://docs.api7.ai/hub/zipkin.md)**
  * Fixed issue: Getting a `nil` value in log phase.[#10666](https://github.com/apache/apisix/pull/10666)
* **[Proxy Rewrite](https://docs.api7.ai/hub/proxy-rewrite.md)**
  * Fixed issue: Incompatibility problems arise from not setting `ngx.var.uri`.[#9309](https://github.com/apache/apisix/pull/9309)
* **Log Rotate**
  * Fixed issue: The use of `string.byte` is less efficient than `string.sub`.[#9984](https://github.com/apache/apisix/pull/9984)

## 3.4.2[​](#342 "Direct link to 3.4.2")

**Release Date**: 2025-02-18

### Fixes[​](#342-fixes "Direct link to Fixes")

#### Admin APIs[​](#342-fixes-admin-apis "Direct link to Admin APIs")

* [List all stream routes in a published service on a gateway group](https://docs.api7.ai/enterprise/reference/admin-api#tag/Stream-Route/operation/listPublishedServiceStreamRoutes)
  * Fixed issue: Response error.

#### Console (Dashboard)[​](#342-fixes-console "Direct link to Console (Dashboard)")

* Fixed issue: Upgrading the dashboard before the DP Manager during a version upgrade can cause the DP Manager to restart continuously.

## 3.4.1[​](#341 "Direct link to 3.4.1")

**Release Date**: 2025-01-14

### Fixes[​](#341-fixes "Direct link to Fixes")

#### Data Plane[​](#341-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: Configuring `access_log_format` in DP and setting `access_log_format_escape` to `json`, the result will append an extra `request_id`.

#### Console (Dashboard)[​](#341-fixes-console "Direct link to Console (Dashboard)")

* Fixed issue: Pasting the password failed when using BasicAuth authentication for online debugging in API7 Portal.

## 3.4.0[​](#340 "Direct link to 3.4.0")

**Release Date**: 2025-01-07

### Features[​](#340-features "Direct link to Features")

#### Data Plane[​](#340-features-data-plane "Direct link to Data Plane")

* **SNI Management**: Introduced [SNI](https://docs.api7.ai/enterprise/key-concepts/snis) as a new mechanism for managing TLS and mTLS authentication and certificate matching. See [Configure mTLS between Client and API7 Gateway](https://docs.api7.ai/enterprise/api-security/client-mtls) for details.

#### Plugins[​](#340-features-plugins "Direct link to Plugins")

* **[OpenID Connect](https://docs.api7.ai/hub/openid-connect.md)**

  * Added authorization parameters.[#10058](https://github.com/apache/apisix/pull/10058)
  * Added more attributes.[#10591](https://github.com/apache/apisix/pull/10591)
  * Added required scopes configuration property.[#10493](https://github.com/apache/apisix/pull/10493)
  * Added `session.cookie` configuration.[#10919](https://github.com/apache/apisix/pull/10919)
  * Supported setting headers in introspection request.[#11090](https://github.com/apache/apisix/pull/11090)

* **[Fault Injection](https://docs.api7.ai/hub/fault-injection.md)**
  * Supported header injection.[#9039](https://github.com/apache/apisix/pull/9039).

* **[Skywalking Logger](https://docs.api7.ai/hub/skywalking-logger.md)**

  * Supported `$hostname` in skywalking `service_instance_name`.[#9401](https://github.com/apache/apisix/pull/9401)
  * Add option to include request body and response body in logger plugins.[#10888](https://github.com/apache/apisix/pull/10888)

* **[Forward Auth](https://docs.api7.ai/hub/forward-auth.md)**

  * Added exception configuration `status_on_error`.[#10898](https://github.com/apache/apisix/pull/10898)
  * Supported degradation.[#9435](https://github.com/apache/apisix/pull/9345).

* **[Elastic Search Logger](https://docs.api7.ai/hub/elasticsearch-logger.md)**

  * Added compatibility headers.[#10828](https://github.com/apache/apisix/pull/10828)
  * Added option to include request body and response body in logger plugins.[#10888](https://github.com/apache/apisix/pull/10888)

* **[Prometheus](https://docs.api7.ai/hub/prometheus.md)**
  * Supported custom configuration of `DEFAULT_BUCKETS`.[#9673](https://github.com/apache/apisix/pull/9673)

* **[CORS](https://docs.api7.ai/hub/cors.md)**
  * Supported for the `Timing-Allow-Origin` header.[#9365](https://github.com/apache/apisix/pull/9365)

* **File Logger**:
  <!-- -->
  * Added schema attribute definition for logger plugins.[#10738](https://github.com/apache/apisix/pull/10738)

* **[HTTP Logger](https://docs.api7.ai/hub/http-logger.md)**:
  <!-- -->
  * Added schema attribute definition for logger plugins.[#10738](https://github.com/apache/apisix/pull/10738)

* **[Syslog](https://docs.api7.ai/hub/syslog.md)**
  * Added option to include request body and response body in logger plugins.[#10888](https://github.com/apache/apisix/pull/10888)

* **SLS Logger**
  * Added option to include request body and response body in logger plugins.[#10888](https://github.com/apache/apisix/pull/10888)

* **TCP Logger**
  * Added option to include request body and response body in logger plugins.[#10888](https://github.com/apache/apisix/pull/10888)

* **UDP Logger**
  * Added option to include request body and response body in logger plugins.[#10888](https://github.com/apache/apisix/pull/10888)

* **Tencent Cloud CLS**

  * Added schema attribute definition for logger plugins.[#10738](https://github.com/apache/apisix/pull/10738)
  * Added option to include request body and response body in logger plugins.[#10888](https://github.com/apache/apisix/pull/10888)

#### Admin APIs[​](#340-features-admin-apis "Direct link to Admin APIs")

* Added **SNI** related APIs:

  <!-- -->

  * [Create a SNI](https://docs.api7.ai/enterprise/3.4.x/admin-api#tag/SNI/operation/createSNI).
  * [Update a SNI on a gateway group](https://docs.api7.ai/enterprise/3.4.x/admin-api#tag/SNI/operation/putSNI).
  * [List all SNIs on a gateway group](https://docs.api7.ai/enterprise/3.4.x/admin-api#tag/SNI/operation/listSNIs).
  * [Get a SNI on a gateway group](https://docs.api7.ai/enterprise/3.4.x/admin-api#tag/SNI/operation/getSNI).
  * [Delete a SNI on a gateway group](https://docs.api7.ai/enterprise/3.4.x/admin-api#tag/SNI/operation/deleteSNI).

#### Console (Dashboard)[​](#340-features-console "Direct link to Console (Dashboard)")

* **API7 Portal Monitoring**: Provided monitoring data and visualizations to track API Product metrics.
* Applied custom plugin configuration at the gateway group level. See [Add Custom Plugin](https://docs.api7.ai/enterprise/best-practices/custom-plugin) for details.

### Fixes[​](#340-fixes "Direct link to Fixes")

#### Data Plane[​](#340-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: Shared memory leak used by Redis delayed synchronization function.
* Fixed issue: Warn log when sending requests to external services insecurely.[#11403](https://github.com/apache/apisix/pull/11403)

#### Plugins[​](#340-fixes-plugins "Direct link to Plugins")

* **[AI Proxy](https://docs.api7.ai/hub/ai-proxy.md)**
  * Fixed issue: Query parameters from `override.endpoint` are not sent to LLM.

* **[OpenID Connect](https://docs.api7.ai/hub/openid-connect.md)**
  * Fixed issue: Not closing session and blocking until TTL expired when using lockable session storage backend.[#10788](https://github.com/apache/apisix/pull/10788)

* **[Forward Auth](https://docs.api7.ai/hub/forward-auth.md)**

  * Fixed issue: Request body is too large.[#10589](https://github.com/apache/apisix/pull/10589)
  * Fixed issue: Plugin does not work if the request is POST and authentication service API is GET.[#11021](https://github.com/apache/apisix/pull/11021)

* GRPC Web:
  <!-- -->
  * Fixed issue: Receiving an error missing trailers.[#10851](https://github.com/apache/apisix/pull/10851)

* **[GRPC Transcode](https://docs.api7.ai/hub/grpc-transcode.md)**
  * Fixed issue: The position of enumerations in `pb_option_def` is wrong.[#11448](https://github.com/apache/apisix/pull/11448)

#### Console (Dashboard)[​](#340-fixes-console "Direct link to Console (Dashboard)")

* Fixed issue: Audit log failed to record when publishing multiple services.

### Dependencies[​](#340-dependencies "Direct link to Dependencies")

* Data plane upgraded to LuaJit 2.1-20240815.
* Removed `grpc-client-nginx-module`.

## 3.3.4[​](#334 "Direct link to 3.3.4")

**Release Date**: 2025-02-18

### Fixes[​](#334-fixes "Direct link to Fixes")

#### Admin APIs[​](#334-fixes-admin-apis "Direct link to Admin APIs")

* [List all stream routes in a published service on a gateway group](https://docs.api7.ai/enterprise/reference/admin-api#tag/Stream-Route/operation/listPublishedServiceStreamRoutes)
  * Fixed issue: Response error.

#### Console (Dashboard)[​](#334-fixes-console "Direct link to Console (Dashboard)")

* Fixed issue: Upgrading the dashboard before the DP Manager during a version upgrade can cause the DP Manager to restart continuously.

## 3.3.3[​](#333 "Direct link to 3.3.3")

**Release Date**: 2025-01-14

### Fixes[​](#333-fixes "Direct link to Fixes")

#### Data Plane[​](#333-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: Configuring `access_log_format` in DP and setting `access_log_format_escape` to `json`, the result will append an extra `request_id`.

#### Console (Dashboard)[​](#333-fixes-console "Direct link to Console (Dashboard)")

* Fixed issue: Pasting the password failed when using BasicAuth authentication for online debugging in API7 Portal.

## 3.3.2[​](#332 "Direct link to 3.3.2")

**Release Date**: 2024-12-24

### Fixes[​](#332-fixes "Direct link to Fixes")

#### Console (Dashboard)[​](#332-fixes-console "Direct link to Console (Dashboard)")

* Fixed issue: Dashboard failed to start when upgrading from 3.2.16.2 or older version to 3.3.1 and higher version.

## 3.3.1[​](#331 "Direct link to 3.3.1")

**Release Date**: 2024-12-19

### Fixes[​](#331-fixes "Direct link to Fixes")

#### Data Plane[​](#331-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: Plugins running in the rewrite phase will be executed repeatedly after hitting a consumer.

## 3.3.0[​](#330 "Direct link to 3.3.0")

**Release Date**: 2024-12-17

### Features[​](#330-features "Direct link to Features")

#### Data Plane[​](#330-features-data-plane "Direct link to Data Plane")

* Refactored an expiration and elimination mechanism in the data plane.

#### Plugins[​](#330-features-plugins "Direct link to Plugins")

* **[OpenID Connect](https://docs.api7.ai/hub/openid-connect.md)**
  * Synchronized the latest APISIX code.
* **[Datadog](https://docs.api7.ai/hub/datadog.md)**
  * Reported consumer username tag.[#11354](https://github.com/apache/apisix/pull/11354)
* **[Body Transformer](https://docs.api7.ai/hub/body-transformer.md)**
  * Supported `content-type` using `x-www-form-urlencoded` format and parsing uri parameters of get requests[#10496](https://github.com/apache/apisix/pull/10496)
* **[OpenTelemetry](https://docs.api7.ai/hub/opentelemetry.md)**
  * Added variables.[#8871](https://github.com/apache/apisix/pull/8871)
* **[OpenID Connect](https://docs.api7.ai/hub/openid-connect.md)**
  * Added `proxy_opts` attribute.[#9948](https://github.com/apache/apisix/pull/9948)

#### Console (Dashboard)[​](#330-features-console "Direct link to Console (Dashboard)")

* Announced the General Availability (GA) of the API7 Portal, a comprehensive solution for API exposure and consumption. Explore the key concepts of the [API Portal](https://docs.api7.ai/enterprise/key-concepts/api-portal) and [Developers](https://docs.api7.ai/enterprise/key-concepts/developers), and begin your journey towards [productize services](https://docs.api7.ai/enterprise/api-portal/productize-services).
* Recorded request IDs in access logs and error logs.
* Added prompt in the alert history when an alert policy had not been configured with a notification channel.
* Supported integration with external Prometheus metrics.

### Security[​](#330-security "Direct link to Security")

* Fixed the vulnerabilities from the CVE report.

### Fixes[​](#330-fixes "Direct link to Fixes")

#### Data Plane[​](#330-fixes-data-plane "Direct link to Data Plane")

* Fixed issue: Data plane queries to the DPM for consumer errors, other than 404 errors, should not have been cached.

#### Plugins[​](#330-fixes-plugins "Direct link to Plugins")

* **[CORS](https://docs.api7.ai/hub/cors.md)**
  * Fixed issue: The `Access-Control-Expose-Headers` response header will be overwritten.[#11136](https://github.com/apache/apisix/pull/11136).
* **[Body Transformer](https://docs.api7.ai/hub/body-transformer.md)**
  * Fixed issue: The `input_format` enumeration lacks a means to prevent body parsing and validation, leading to unnecessary warnings.[#10862](https://github.com/apache/apisix/pull/10862)

#### Console (Dashboard)[​](#330-fixes-console "Direct link to Console (Dashboard)")

* Fixed issue: After disabling the API7 integrated authentication, password login on the login page had been unavailable.
* Fixed issue: The plugin global rules search result is not accurate.

## 3.2.16.7[​](#32167 "Direct link to 3.2.16.7")

**Release Date**: 2024-12-13

### Fixes[​](#32167-fixes "Direct link to Fixes")

* Fixed issue: The DP Manager had entered an infinite loop when it received truncated Prometheus metrics.
* Fixed issue: Data plane synchronization with the control plane may have been disrupted due to an interrupted watch.
* Fixed issue: The Redis delayed synchronization function of the rate limiting plugin had not worked as expected for low-frequency requests.
* Fixed issue: The shared memory used by Limit Count Advanced plugin had been faulty.
* Fixed issue: `radixtree_uri_with_parameter` had been unable to match requests containing path parameters with special characters.
* Fixed issue: The remain value in Limit Count Advanced plugin sliding window should have been rounded down, and the reset value should have had two decimal places.

## 3.2.16.6[​](#32166 "Direct link to 3.2.16.6")

**Release Date**: 2024-11-25

### Improvements[​](#32166-improvements "Direct link to Improvements")

* The [JWT Auth](https://docs.api7.ai/hub/jwt-auth.md) plugin supported `key_claim_name`.
* Added gateway group filtering to monitoring.

### Fixes[​](#32166-fixes "Direct link to Fixes")

* Fixed UI issues in alert pages.
* Fixed issue: Multiple data plane containers had been identified as a single instance in the control plane, which had impaired license control capabilities and some metric reporting display functions.
* Fixed issue: Audit logs failed to record when multiple services were published.
* Revised SSL certificate expiration alert condition text.
* Fixed issue: The health check had failed because the node IP address had not been updated.
* Added validation of the legitimacy of Lua code in plugins to the control plane codes.
* Added a record of error messages for sub-plugins to the [Multi Auth](https://docs.api7.ai/hub/multi-auth.md) plugin.
* Removed extra warning log in the [Basic Auth](https://docs.api7.ai/hub/basic-auth.md) plugin.
* Fixed the permission verification error of the secret providers when new credentials were added.
* Fixed issue: Added published service on gateway group had lacked the `skip path prefix` configuration item.

## 3.2.16.5[​](#32165 "Direct link to 3.2.16.5")

**Release Date**: 2024-11-21

### Improvements[​](#32165-improvements "Direct link to Improvements")

* Added multipart content type to [body transformer](https://docs.api7.ai/hub/body-transformer.md).
* Adjusted resource ID length limit from 64 to 256.
* The [workflow](https://docs.api7.ai/hub/workflow.md) plugin has supported `limit-count-advanced` as an action.
* Refactored `core.response.exit` to clarify parameter definitions.
* Recorded the executed plugins in the request context to ensure that the same plugin had only been executed once when using the [workflow](https://docs.api7.ai/hub/workflow.md) plugin.

### Fixes[​](#32165-fixes "Direct link to Fixes")

* Fixed issue: Enabling the `prefer_name` option in the [Prometheus](https://docs.api7.ai/hub/prometheus.md) plugin will cause the filters on the monitor page to malfunction.
* Fixed issue: When an anonymous consumer is matched, the `x-consumer-custom-id` header is not added to the request.
* Fixed issue: When configured together, the [body transformer](https://docs.api7.ai/hub/body-transformer.md) plugin and [CORS](https://docs.api7.ai/hub/cors.md) plugin had caused errors with OPTIONS requests.
* Temporarily removed the sandbox mechanism in the[exit transformer](https://docs.api7.ai/hub/exit-transformer.md) plugin.

## 3.2.16.4.1[​](#321641 "Direct link to 3.2.16.4.1")

**Release Date**: 2024-12-09

### Fixes[​](#321641-fixes "Direct link to Fixes")

* Fixed issue: The DP Manager had entered an infinite loop when it received truncated Prometheus metrics.
* Fixed issue: Data plane synchronization with the control plane may have been disrupted due to an interrupted watch.

## 3.2.16.4[​](#32164 "Direct link to 3.2.16.4")

**Release Date**: 2024-11-01

### Features[​](#32164-features "Direct link to Features")

#### Send Notification through Email[​](#32164-features-send-notification-through-email "Direct link to Send Notification through Email")

Alert policies can send notification through webhook and email at the same time by utilizing the new *Contact Points*. A *Contact Point* defines a set of email addresses or webhook URLs that can be used by multiple alert policies.

See [Trigger Gateway Alerts](https://docs.api7.ai/enterprise/api-observability/alert) for instruction.

note

Existing `Webhook Templates` will be migrated to new contact points and notifications, ensuring seamless transition and backward compatibility for alert policies.

#### Limit Count Advanced Plugin[​](#32164-features-limit-count-advanced-plugin "Direct link to Limit Count Advanced Plugin")

Enhanced the open-source limit count plugin with a sliding window algorithm for more accurate rate limiting.

#### Exit Transformer Plugin[​](#32164-features-exit-transformer-plugin "Direct link to Exit Transformer Plugin")

The exit-transformer plugin supports the customization of gateway responses based on the status codes, headers, and bodies returned from APISIX plugins. When configured as a global plugin, it also supports the response customization when a route that does not exist is requested.

#### Count Healthy Gateway Instances in a Gateway Group Through Alert Policy[​](#32164-features-count-healthy-gateway-instances-in-a-gateway-group-through-alert-policy "Direct link to Count Healthy Gateway Instances in a Gateway Group Through Alert Policy")

If the number of healthy gateway instances in a gateway group falls below a critical threshold, it indicates potential service disruptions and impacts on traffic handling. This scenario is particularly relevant in Kubernetes deployments, where gateway instances may experience failures or be scaled down unexpectedly.

[Create an alert policy for counting healthy gateway instances in a gateway group](https://docs.api7.ai/enterprise/api-observability/alert#count-healthy-gateway-instances-in-a-gateway-group) and send notifications to relevant personnel.

#### Utilized Expression Matching[​](#32164-features-utilized-expression-matching "Direct link to Utilized Expression Matching")

Enable `Expression Match` in a route to match requests based on specific variables for greater precision, similar to nginx. Use expressions in the format \[\[var, operator, val], \[var, operator, val], ...] to define matching criteria. Note that cookie name matching is case-sensitive.

See [Expressions](https://docs.api7.ai/enterprise/reference/expressions) and [lua-resty-expr](https://github.com/api7/lua-resty-expr) for more details.

#### Security[​](#32164-features-security "Direct link to Security")

* Added a status interface for self health checks on the data plane. For details, see [enable data plane health check for high availability](https://docs.api7.ai/enterprise/high-availability/high-availability-installation#health-check).

### Improvements[​](#32164-improvements "Direct link to Improvements")

* [JWT Auth Plugin](https://docs.api7.ai/hub/jwt-auth.md) now supports more algorithm.
* Enriched more metrics in [Grafana Dashboard Template](https://grafana.com/grafana/dashboards/11719-apache-apisix/).
* Allowed users to log in by pressing Enter.

### Fixes[​](#32164-fixes "Direct link to Fixes")

* Fixed issue: [CORS Plugin](https://docs.api7.ai/hub/cors.md) `expose_header`s default value should not be `*`.
* Fixed issue: Successfully added first stream route when adding stream service.
* Fixed issue: `max_req_body_bytes` limit does not take effect in logger plugins.
* Fixed issue: Dynamic updates to rate limiting parameters in the [Limit Count Plugin](https://docs.api7.ai/hub/limit-count.md) are now reflected in the data plane.
* Fixed issue: Services deleted via API are now consistently removed from the data plane.

## 3.2.16.3[​](#32163 "Direct link to 3.2.16.3")

**Release Date**: 2024-10-21

### Features[​](#32163-features "Direct link to Features")

#### Reference Secrets in AWS Secrets Manager[​](#32163-features-reference-secrets-in-aws-secrets-manager "Direct link to Reference Secrets in AWS Secrets Manager")

A *secret* object is a piece of sensitive information that needs to be protected from unauthorized access, while a *secret provider* object is used to set up integration with an external secret manager(HashiCorp Vault, AWS Secret Manager, etc.), so that API7 Gateway can establish connections and fetch secrets from the secret manager dynamically at runtime.

See [Reference Secrets in AWS Secrets Manager](https://docs.api7.ai/enterprise/api-security/aws-secrets-manager) for more details.

#### Anonymous Consumers for API authentication[​](#32163-features-anonymous-consumers-for-api-authentication "Direct link to Anonymous Consumers for API authentication")

An anonymous consumer does not need to authenticate, but can be restricted by rate limiting. You should configure anonymous consumers in authentication plugins on the service/route, then combined with rate limiting plugins.

For details, see the following documentation:

* [Key Authentication](https://docs.api7.ai/hub/key-auth.md)
* [Basic Authentication](https://docs.api7.ai/hub/basic-auth.md)
* [JWT Authentication](https://docs.api7.ai/hub/jwt-auth.md)
* [HMAC Authentication](https://docs.api7.ai/hub/hmac-auth.md)
* [Rate Limit with Anonymous Consumers](https://docs.api7.ai/enterprise/api-security/rate-limiting#add-an-anonymous-consumer)

#### Security[​](#32163-features-security "Direct link to Security")

* Added a status interface for self health checks on the data plane. For details, see [enable data plane health check for high availability](https://docs.api7.ai/enterprise/high-availability/high-availability-installation#health-check).

### Improvements[​](#32163-improvements "Direct link to Improvements")

* Supported for 2 million consumers.

* Sorted the consumer list by name.

* Removed `conf_server` from API7 gateway.

* Improved rate limiting related plugins to be more flexible, allowed for consumer-specific rate limits on a per-service/route basis. For details, see [Limit Count Plugin](https://docs.api7.ai/hub/limit-count.md) and [Limit Req Plugin](https://docs.api7.ai/hub/limit-req.md).

* Advanced request & response transformation:

  <!-- -->

  * During request transformation, support passing Lua code to obtain values.
  * Aligned the capabilities of Kong's Request Transformation and Response Transformation.

* Displayed the total number of routes added in a service.

* Changed plugin list configuration from data plane to control plane. **Not compatible with version under 3.2.15.0**

* Added certificate expiration reminder in alert policies.

* Displayed a notification explaining the logout reason before redirecting to the login page due to multi-device login.

* Improved frontend page responsiveness and loading speed.

* Optimized the "Use Upstream Timeout" UI.

* Optimized API7 Portal(Beta) list page rendering speed.

### Fixes[​](#32163-fixes "Direct link to Fixes")

* Fixed issue: multiple paths can now be configured for a single route on the Dashboard.
* Fixed issue：the [OpenTelemetry Plugin](https://docs.api7.ai/hub/opentelemetry.md) did not support `set_ngx_var`.
* Fixed issue: the [ACL Plugin](https://docs.api7.ai/hub/acl.md) should not output warning logs during normal use.
* Enhanced data plane `lua_ssl_trusted_certificate` configuration item.
* Synchronized the [Body Transformer Plugin](https://docs.api7.ai/hub/body-transformer.md) code with the APISIX mainline version.
* Resolve issue: when a plugin that is not available to the stream module is configured on a service, the data plane prints error logs.
* Changed the `Edit` operation for Token to `Edit Name`.
* Resolve issue: when editing a service registry, the service discovery type does not match the form.

## 3.2.16.2[​](#32162 "Direct link to 3.2.16.2")

**Release Date**: 2024-10-11

### Fixes[​](#32162-fixes "Direct link to Fixes")

* Fixed the issue where plugin configuration updates in Consumer were not taking effect.

## 3.2.16.1[​](#32161 "Direct link to 3.2.16.1")

**Release Date**: 2024-10-04

### Improvements[​](#32161-improvements "Direct link to Improvements")

* Improved Developer Portal(Beta) performance.

### Fixes[​](#32161-fixes "Direct link to Fixes")

* Fixed panic issue in the `radixtree_host_uri` routing mode when deleting routes.
* Fixed incompatibility between custom authentication type plugins and the `multi-auth` plugin.

## 3.2.16.0[​](#32160 "Direct link to 3.2.16.0")

**Release Date**: 2024-09-30

### Features[​](#32160-features "Direct link to Features")

#### Reference Secrets in HashiCorp Vault[​](#32160-features-reference-secrets-in-hashicorp-vault "Direct link to Reference Secrets in HashiCorp Vault")

info

This is a breaking change. The `secrets` resource has been renamed to `secret provider` to align with best practices and facilitate integration with external secret management tools. All associated APIs have been updated accordingly.

A *secret* object is a piece of sensitive information that needs to be protected from unauthorized access, while a *secret provider* object is used to set up integration with an external secret manager(HashiCorp Vault, AWS Secret Manager, etc.), so that API7 Gateway can establish connections and fetch secrets from the secret manager dynamically at runtime.

See [Reference Secrets in HashiCorp Vault](https://docs.api7.ai/enterprise/api-security/hashicorp-vault) for more details.

### Improvements[​](#32160-improvements "Direct link to Improvements")

* 【Breaking Change】**Removed the JWT plugin's functionality for issuing tokens, and removed the ability to upload private keys.** See [JWT Plugin](https://docs.api7.ai/hub/jwt-auth.md) for details.
* Added support for deleting offline gateway instances.
* Added a `sync_rate` parameter to plugins that utilize Redis to control the frequency of counter synchronization with Redis. Real-time synchronization can put significant pressure on Redis.
* Supported accessing specific route detail pages via URL.
* Supported API online test for API7 Portal(Beta).
* UI Improvement: shorten the custom host input box.
* UI Improvement: change the load balancing algorithm dropdown to radio buttons.
* UI Improvement: new style for creating labels.

### Fixes[​](#32160-fixes "Direct link to Fixes")

* Fixed issue: the data plane failed to start due to an improperly cleaned `config_listen.sock`.
* Fixed issue: requests return a 404 error after disabling the service.
* Added `keepalive_timeout` configuration to `splunk-hec-logging` plugin.
* Removed whitespace before and after the delimiter after splitting consumer labels.
* Fixed issue: the `Skywalking` plugin cannot be restarted after being destroyed.
* Handled encryption and decryption correctly when non-authentication plugin configurations were applied to the consumer.
* Fixed issue: built-in permission policies should not be able to deleted.
* Fixed issue: ingress controller type gateway group should be able to delete.
* Fixed issue: data plane now supports `/` as a path prefix.
* Fixed UI issue: clicking on the label page jumps to the search bar.
* Fixed UI issue: after creating and deleting a token, the new token prompt does not disappear.
* Added Chinese translation for the plugin categories.
* Enlarged the plugin description text box to fully display the plugin's introduction.
* Fixed the issue where the new token prompt did not disappear after creating and deleting a token.

## 3.2.15.2.1[​](#321521 "Direct link to 3.2.15.2.1")

**Release Date**: 2024-12-09

### Fixes[​](#321521-fixes "Direct link to Fixes")

* Fixed issue: The DP Manager had entered an infinite loop when it received truncated Prometheus metrics.
* Fixed issue: Data plane synchronization with the control plane may have been disrupted due to an interrupted watch.

## 3.2.15.2[​](#32152 "Direct link to 3.2.15.2")

**Release Date**: 2024-09-19

### Fixes[​](#32152-fixes "Direct link to Fixes")

* Adjusted the `attach-consumer-label` plugin to execute in the `before_proxy` phase.

## 3.2.15.1[​](#32151 "Direct link to 3.2.15.1")

**Release Date**: 2024-09-18

### Fixes[​](#32151-fixes "Direct link to Fixes")

* Fixed issue: Using token to get `instance_token` returns 401.

## 3.2.15.0[​](#32150 "Direct link to 3.2.15.0")

**Release Date**: 2024-09-14

### Features[​](#32150-features "Direct link to Features")

#### Consumer Credentials[​](#32150-features-consumer-credentials "Direct link to Consumer Credentials")

info

This is a breaking change. Creating new authentication plugins (key-auth, basic-auth, JWT-auth, or HMAC-auth) for consumers is no longer supported. Please use consumer credentials instead. Existing plugin configurations will remain accessible and editable until disabled.

Consumer credentials offer enhanced flexibility by allowing multiple credentials per consumer. They replace traditional authentication plugins like key-auth, basic-auth, JWT-auth, and HMAC-auth, providing a more user-friendly experience. See [Manage Consumer Credentials](https://docs.api7.ai/enterprise/api-consumption/manage-consumer-credentials) for details.

### Security[​](#32150-security "Direct link to Security")

* The root user, `admin`, becomes a protected account that cannot be modified by roles, permission policies, or other users. It cannot be deleted or have its password reset by other users.

### Improvements[​](#32150-improvements "Direct link to Improvements")

* Sorted the service list alphabetically by name is now supported.
* Added gateway group ID to every audit log, so you can search or filter audit logs by gateway group.
* Recorded audit log for automatically deleted gateway instances that have been offline for more than 7 days.
* Supported filtering published services on a gateway group by label.
* Ensured control plane addresses do not end with a slash.
* Supported annotations in Helm.
* Provided configuration options to control the timeout for data plane heartbeat and telemetry requests, and adjust the default value to 30s.

### Fixes[​](#32150-fixes "Direct link to Fixes")

* Clarified the error message when a user logs in via SSO after SCIM is enabled, but the user does not exist in the system.
* Fixed the issue of failed canary configuration adjustments after modifying no version published service.

## 3.2.14.6[​](#32146 "Direct link to 3.2.14.6")

**Release Date**: 2024-08-28

### Features[​](#32146-features "Direct link to Features")

#### ARM Installation[​](#32146-features-arm-installation "Direct link to ARM Installation")

Standardized ARM installation packages are available since version 3.2.14.6.

### Security[​](#32146-security "Direct link to Security")

* Fixed known CVE vulnerabilities.

### Improvements[​](#32146-improvements "Direct link to Improvements")

* Reduced installation image size through component optimization.
* Enabled `mqtt-proxy` plugin support for stream routes.
* Enhanced alert policy trigger conditions to include `Allowed license CPU quota exceeded`.

### Fixes[​](#32146-fixes "Direct link to Fixes")

* Wrote data plane certificate to a fixed local file.
* Fixed the issue of not being able to directly set the weight of the canary upstream to 100 when starting canary.
* Adjusted the order of custom plugins in the `init_worker` phase to avoid printing warning logs when the data plane restarts.
* Fixed UI display of blank route `Methods` when calling Admin API without methods.
* Fixed the issue where the route name length limit was 100 characters when synchronizing with ADC.
* Fixed the issue of alerts being sent even after the alert policy was disabled.

## 3.2.14.5.1[​](#321451 "Direct link to 3.2.14.5.1")

**Release Date**: 2024-12-09

### Fixes[​](#321451-fixes "Direct link to Fixes")

* Fixed issue: The DP Manager had entered an infinite loop when it received truncated Prometheus metrics.
* Fixed issue: Data plane synchronization with the control plane may have been disrupted due to an interrupted watch.

## 3.2.14.5[​](#32145 "Direct link to 3.2.14.5")

**Release Date**: 2024-08-20

### Fixes[​](#32145-fixes "Direct link to Fixes")

* Fixed a body validation bug in the `response-rewrite` plugin when `body_base64` is set to `false`.

## 3.2.14.4.1[​](#321441 "Direct link to 3.2.14.4.1")

**Release Date**: 2024-12-09

### Fixes[​](#321441-fixes "Direct link to Fixes")

* Fixed issue: The DP Manager had entered an infinite loop when it received truncated Prometheus metrics.
* Fixed issue: Data plane synchronization with the control plane may have been disrupted due to an interrupted watch.

## 3.2.14.4[​](#32144 "Direct link to 3.2.14.4")

**Release Date**: 2024-08-14

### Features[​](#32144-features "Direct link to Features")

#### Override Upstream Timeout for Each Route[​](#32144-features-override-upstream-timeout-for-each-route "Direct link to Override Upstream Timeout for Each Route")

API7 Gateway offers granular control over request handling by enabling the configuration of distinct upstream timeouts for individual routes, to override the timeout configuration at the upstream side.

#### User Permission Boundary[​](#32144-features-user-permission-boundary "Direct link to User Permission Boundary")

Permissions boundaries define the maximum allowable permissions for a user, acting as a safeguard against excessive privilege escalation.

### Security[​](#32144-security "Direct link to Security")

* Upgraded frontend dependency.
* Ensured single device login - new login will revoke previous active sessions.
* Prohibited importing old license.
* Upgraded OpenResty version to fix security vulnerabilities.

### Improvements[​](#32144-improvements "Direct link to Improvements")

* Added service description in service hub list and published services list.
* Added "Connecting" status for service registry to avoid misunderstanding.
* Optimized custom plugin: Code Obfuscation and Encrypted Storage.
* Displayed a notification when using a test environment license.
* Implemented card-based UI for plugin management and modification.
* Supported configuration of custom plugin metadata.
* Minimized the image size of API7 Enterprise.

### Fixes[​](#32144-fixes "Direct link to Fixes")

* Fixed the issue of empty values for service runtime configuration parameters (e.g., host, path prefix) being lost when publishing a service version to a gateway group.
* Eliminated unnecessary audit log generation for dry-run license uploads.
* Fixed issue with incorrect route creation and modification timestamps.
* Fixed plugin metadata schema validation errors.
* Improved service search accuracy.
* Fixed issue with plugin loss during service template publishing.

## 3.2.14.3[​](#32143 "Direct link to 3.2.14.3")

**Release Date**: 2024-08-06

### Fixes[​](#32143-fixes "Direct link to Fixes")

* Supported referencing `$env` in SSL Certificates.
* Fixed UI instability when labels contained periods.
* Removed source code from frontend build artifacts.

## 3.2.14.2[​](#32142 "Direct link to 3.2.14.2")

**Release Date**: 2024-07-30

### Fixes[​](#32142-fixes "Direct link to Fixes")

* Fixed UI error for viewing Ingress Controller routes on the Dashboard.
* Fixed missing default Helm release name when installing gateway instance on Kubernetes.
* Enhanced Microsoft Entra ID (Azure AD) integration through ID token utilization.
* Fixed the issue that plugin inconsistencies may occur between service templates and published gateway groups.

## 3.2.14.1[​](#32141 "Direct link to 3.2.14.1")

**Release Date**: 2024-07-22

### Improvements[​](#32141-improvements "Direct link to Improvements")

#### Import OpenAPI to Create Service on Gateway Group[​](#32141-improvements-import-openapi-to-create-service-on-gateway-group "Direct link to Import OpenAPI to Create Service on Gateway Group")

Simply import your OpenAPI specification directly into a gateway group to have your new service and all its routes ready.

#### Unveiling Granular Access Control with API7 Portal[​](#32141-improvements-unveiling-granular-access-control-with-api7-portal "Direct link to Unveiling Granular Access Control with API7 Portal")

Leverage custom roles and permission policies for granular control over access to API Products.

#### Security[​](#32141-improvements-security "Direct link to Security")

* Control plane address must be HTTPs.
* Removed the use of ngx.req.get\_post\_args(0), use the default value instead to avoid potential attacks.
* Regenerate Ingress Controller deployment scripts now requires second confirmation.

#### Managing Published Service Basics without Versioning[​](#32141-improvements-managing-published-service-basics-without-versioning "Direct link to Managing Published Service Basics without Versioning")

Service name/description/labels now can be modified without publishing a new version.

#### First Route Creation During Service Setup[​](#32141-improvements-first-route-creation-during-service-setup "Direct link to First Route Creation During Service Setup")

Allowing you to define the initial route right from the start. This eliminates the need for a separate step and simplifies your workflow.

### Fixes[​](#32141-fixes "Direct link to Fixes")

* Merged datadog plugin fix(<https://github.com/apache/apisix/pull/11354>) to API7 Enterprise.
* Fixed the issue of DP being invisible on the console.
* Fixed an issue: service registry status was always displayed as "disconnected" after changing the Prometheus data reporting method from remote-write to scrape.
* Fixed issue: Data plane encountered errors after deploying a custom plugin through the Dashboard.
* Fixed UI issue: you can not modify upstream of published service on a Ingress Controller gateway group.
* Wrong notification: When switching to Nodes, even if health checks are enabled, the prompt for users to enable health checks still exists.
* Fixed issue: When uploading a custom plugin, if there is a parsing error, the plugin name displayed in the error message does not match the actual file name.

## 3.2.14.0[​](#32140 "Direct link to 3.2.14.0")

**Release Date**: 2024-07-08

### Features[​](#32140-features "Direct link to Features")

#### Brand Access Control[​](#32140-features-brand-access-control "Direct link to Brand Access Control")

info

This is a breaking change. Roles from older versions can not be kept.

API7 Enterprise moves beyond traditional role-based permissions, adopting a permission policy architecture for granular access control through reusable policies assigned to roles. See [roles and permission policies](https://docs.api7.ai/enterprise/key-concepts/roles-and-permission-policies)

### Improvements[​](#32140-improvements "Direct link to Improvements")

#### Configure Priority for Routes[​](#32140-improvements-configure-priority-for-routes "Direct link to Configure Priority for Routes")

In specific scenarios, you can configure same routes within two different services. With priority determining which route handles the request. The route with a higher assigned priority will be used first.

#### Harden mTLS Certificate Security[​](#32140-improvements-harden-mtls-certificate-security "Direct link to Harden mTLS Certificate Security")

Improved following issues:

* Overly Long Certificate: The certificate string is too long and should be shortened.
* Unnecessary Tokens: The certificate contains unnecessary tokens that should be removed.
* Shared CA: Using the same Certificate Authority (CA) for multiple certificates is insecure.
* Mismatched Certificate Handling: When a certificate mismatch occurs, the handshake should immediately fail, rejecting the client's request instead of proceeding with further validation.

#### Include Parameter `lua_shared_dict` in API7 Helm Chart[​](#32140-improvements-include-parameter-lua_shared_dict-in-api7-helm-chart "Direct link to 32140-improvements-include-parameter-lua_shared_dict-in-api7-helm-chart")

Introduced new parameter to Helm chart.

### Fixes[​](#32140-fixes "Direct link to Fixes")

* Upgrading from older version may cause missing upstream data or 404 errors.
* UI error encountered during service request URL update.
* Fixed Developer Portal library issue.
* Fixed HTTP logger plugin memory leak.
* Frontend and backend password policies are inconsistent.
* The `data-mask` plugin reports an error when the GET request does not match any route.
* The status field of the ApisixUpstream CRD is recorded incorrectly
* Data Plane supports configuring the reporting interval for monitoring data.
* Fixed warning logs after configuring plugin metadata.
* Fixed plugin reload issue.
* Reduced the number of PostgreSQL connections.
* Optimized frontend resource consumption.
* Removed trailing dot in FQDN.
* Plugin Metadata should be able to be deleted.

## 3.2.11.8[​](#32118 "Direct link to 3.2.11.8")

**Release Date**: 2024-06-26

### Fixes[​](#32118-fixes "Direct link to Fixes")

* Reduced API latency by minimizing etcd calls.
* Kine database connection pool configuration can function normally.

## 3.2.11.7[​](#32117 "Direct link to 3.2.11.7")

**Release Date**: 2024-06-24

### Fixes[​](#32117-fixes "Direct link to Fixes")

* Improve API performance.
* Data Plane supports disabling telemetry data collection and configuring reporting intervals.
* Custom plugins can function even without a schema definition.

## 3.2.11.6[​](#32116 "Direct link to 3.2.11.6")

**Release Date**: 2024-06-24

### Fixes[​](#32116-fixes "Direct link to Fixes")

* Large data sets no longer cause etcd range API error.

## 3.2.13.0[​](#32130 "Direct link to 3.2.13.0")

**Release Date**: 2024-06-19

### Admin API Breaking Changes[​](#32130-admin-api-breaking-changes "Direct link to Admin API Breaking Changes")

1. The service template API has been migrated to the "/api/services/template" path prefix.

* [Service template APIs](https://docs.api7.ai/enterprise/reference/admin-api#tag/Services-Template)
* [Route template APIs](https://docs.api7.ai/enterprise/reference/admin-api#tag/Routes-Template)

2. The original "/apisix/admin/services" endpoint now requires the gateway\_group\_id parameter.

* [Service APIs on the gateway group](https://docs.api7.ai/enterprise/reference/admin-api#tag/Services)
* [Route APIs on the gateway group](https://docs.api7.ai/enterprise/reference/admin-api#tag/Routes)

### Features[​](#32130-features "Direct link to Features")

#### Create/Update Service on Gateway Group without Publishing[​](#32130-features-createupdate-service-on-gateway-group-without-publishing "Direct link to Create/Update Service on Gateway Group without Publishing")

If version control is not your requirement, you can now directly create services on the gateway group. These services become active immediately, eliminating the need for a separate publishing step. This simplifies the deployment process and saves you time.

However, it is important to consider the trade-off involved. By bypassing the publishing stage, you also lose the ability to easily roll back to a previous version or track the version changes.

See the latest starter tutorial for details: [Launch your first API](https://docs.api7.ai/enterprise/getting-started/launch-your-first-api).

#### Integrate with Ingress Controller(UI Support)[​](#32130-features-integrate-with-ingress-controllerui-support "Direct link to Integrate with Ingress Controller(UI Support)")

API7 Gateway officially introduces Ingress Controllers, a new type of gateway group. While the dashboard offers convenient management for creating and viewing your Ingress Controller, configuration modifications require to declarative way for any configuration changes.

### Improvement[​](#32130-improvement "Direct link to Improvement")

#### Search for Gateway Group Name and Filter by Labels[​](#32130-improvement-search-for-gateway-group-name-and-filter-by-labels "Direct link to Search for Gateway Group Name and Filter by Labels")

Makes it easier to find the specific gateway group you are looking for within the gateway group list.

#### Secure Sensitive Data in Configuration File[​](#32130-improvement-secure-sensitive-data-in-configuration-file "Direct link to Secure Sensitive Data in Configuration File")

The database's DSN configuration (including access address, username, and password) can be configured through environment variables and Helm chart.

#### Support Prometheus Authentication[​](#32130-improvement-support-prometheus-authentication "Direct link to Support Prometheus Authentication")

Prometheus remote write now supports Basic Auth/mTLS.

#### Support Secret Feature for SSL Variables[​](#32130-improvement-support-secret-feature-for-ssl-variables "Direct link to Support Secret Feature for SSL Variables")

Secure `ssl.certs` and `ssl.keys` with encrypted secrets.

### Fixes[​](#32130-fixes "Direct link to Fixes")

* The `ctx.var` variable will be updated promptly after setting headers.
* Duplicate SSL certificates cannot be uploaded.

## 3.2.11.5[​](#32115 "Direct link to 3.2.11.5")

**Release Date**: 2024-06-18

### Fixes[​](#32115-fixes "Direct link to Fixes")

* The ssl\_verify configuration now works fine for the Login Option OIDC and LDAP protocols.

## 3.2.11.4[​](#32114 "Direct link to 3.2.11.4")

**Release Date**: 2024-06-07

### Fixes[​](#32114-fixes "Direct link to Fixes")

* Protect sensitive fields within the login options related to API.

## 3.2.12.0[​](#32120 "Direct link to 3.2.12.0")

**Release Date**: 2024-05-24

### Admin API Breaking Changes[​](#32120-admin-api-breaking-changes "Direct link to Admin API Breaking Changes")

1. The "service status" field has been changed from "0: enabled, 1: disabled" to "0: disabled, 1: enabled".

* [Publish a service](https://docs.api7.ai/enterprise/reference/admin-api#tag/Services/paths/~1api~1services~1publish/post)
* [Update service runtime configurations by ID](https://docs.api7.ai/enterprise/reference/admin-api#tag/Gateway-Groups/operation/changeServiceRuntimeConfiguration)
* [Get all published services in Gateway Group](https://docs.api7.ai/enterprise/reference/admin-api#tag/Gateway-Groups/operation/listPublishedService)

2. The "ID" field has been removed from the consumer API. Queries and deletions are now performed using "gateway group ID" and "username".

* [Consumers APIs](https://docs.api7.ai/enterprise/reference/admin-api#tag/Consumers)

3. SSL-related APIs now require the "gateway group ID" parameter.

* [SSL APIs](https://docs.api7.ai/enterprise/reference/admin-api#tag/SSLs)

### Features[​](#32120-features "Direct link to Features")

#### Stream Route[​](#32120-features-stream-route "Direct link to Stream Route")

API7 Gateway extends beyond API management. It can also handle Layer 4 (L4) traffic, like database or Kafka connections. Add a stream service and several stream routes to [Proxy TCP Traffic](https://docs.api7.ai/enterprise/best-practices/proxy-tcp-traffic).

#### Custom Role (UI Support)[​](#32120-features-custom-role-ui-support "Direct link to Custom Role (UI Support)")

Design your own custom roles with granular permission control. See [Add Custom Role](https://docs.api7.ai/enterprise/getting-started/create-custom-role).

#### Ingress Controller (Beta, API Support Only)[​](#32120-features-ingress-controller-beta-api-support-only "Direct link to Ingress Controller (Beta, API Support Only)")

Integrate with Ingress Controller.

### Improvement[​](#32120-improvement "Direct link to Improvement")

#### Optimize Left Navigation Menu[​](#32120-improvement-optimize-left-navigation-menu "Direct link to Optimize Left Navigation Menu")

* Users will now see the gateway group menu as the primary landing page.
* Change the **Service** menu item to **Service Hub**.

### Fixes[​](#32120-fixes "Direct link to Fixes")

* Avoid duplicate API keys when using [key-auth](https://docs.api7.ai/hub/key-auth.md) plugin.
* Enable allowlist and denylist at the same time in [ua-restriction](https://docs.api7.ai/hub/ua-restriction.md) plugin.
* Reset the password without expiring the access token.
* Labels can be up to 64 characters long and include spaces.
* Validate the configuration of [loggly](https://apisix.apache.org/zh/docs/apisix/plugins/loggly/) plugin successfully.
* Force configuration synchronization to the data plane, even with schema validation errors. This prevents data loss and ensures uninterrupted workflow.
* The meaning of API7 Gateway service status is consistent with the corresponding field in Apache APISIX.

## 3.2.11.3[​](#32113 "Direct link to 3.2.11.3")

**Release Date**: 2024-05-20

### Fixes[​](#32113-fixes "Direct link to Fixes")

* etcd watch can pass SNI correctly.
* API7 Enterprise will attempt to create a database automatically. If permission issues arise, it will launch using a pre-configured database provided by the user, preventing installation failure.

## 3.2.11.2[​](#32112 "Direct link to 3.2.11.2")

**Release Date**: 2024-05-20

### Fixes[​](#32112-fixes "Direct link to Fixes")

* Labels can be up to 64 characters long and include spaces.
* Force configuration synchronization to the data plane, even with schema validation errors. This prevents data loss and ensures uninterrupted workflow.

## 3.2.11.1[​](#32111 "Direct link to 3.2.11.1")

**Release Date**: 2024-05-08

### Features[​](#32111-features "Direct link to Features")

#### SSO Role Mapping[​](#32111-features-sso-role-mapping "Direct link to SSO Role Mapping")

This automated role mapping eliminates the need for manual role assignment by Super Admins. Users who satisfy the defined key-value mapping rules will be automatically assigned the corresponding roles upon login. For details, see [Set Role Mapping](https://docs.api7.ai/enterprise/3.7.x/best-practices/sso#set-role-mapping).

#### SCIM Provisioning[​](#32111-features-scim-provisioning "Direct link to SCIM Provisioning")

Streamline your identity management with SCIM Provisioning. It automatically synchronizes user data from your Identity Provider, ensuring consistent and effortless user management. For details, see [Sync User Data from IdP](https://docs.api7.ai/enterprise/3.7.x/best-practices/sso#sync-user-data-from-idp).

#### Custom Role (Beta, API Support Only)[​](#32111-features-custom-role-beta-api-support-only "Direct link to Custom Role (Beta, API Support Only)")

Design your own custom roles with granular permission control. UI support coming soon.

### Improvement[​](#32111-improvement "Direct link to Improvement")

#### Upgrade to OpenSSL 3[​](#32111-improvement-upgrade-to-openssl-3 "Direct link to Upgrade to OpenSSL 3")

Improved Security, Performance, and Availability.

#### Plugin Global Rules Ordering[​](#32111-improvement-plugin-global-rules-ordering "Direct link to Plugin Global Rules Ordering")

To streamline the management of global rules, API7 Enterprise merges multiple rules into a single rule, ensuring that plugin configurations are unique within each rule.

### Fixes[​](#32111-fixes "Direct link to Fixes")

#### Settings Modal Add HTTP Protocol Detection[​](#32111-fixes-settings-modal-add-http-protocol-detection "Direct link to Settings Modal Add HTTP Protocol Detection")

Not properly detecting whether HTTP or HTTPS is required, leading to errors when deploying gateway instances using the given script.

#### Error Uploading SSL Certificate[​](#32111-fixes-error-uploading-ssl-certificate "Direct link to Error Uploading SSL Certificate")

An issue exists where uploading an SSL certificate intended for gateway group A may inadvertently assign it to gateway group B.

#### Support Host Level Dynamic Setting of TLS Protocol Version[​](#32111-fixes-support-host-level-dynamic-setting-of-tls-protocol-version "Direct link to Support Host Level Dynamic Setting of TLS Protocol Version")

Incorporated the fix from the resolved Apache APISIX issue.

## 3.2.10.1[​](#32101 "Direct link to 3.2.10.1")

**Release Date**: 2024-04-28

### Features[​](#32101-features "Direct link to Features")

#### Support MySQL 5.7[​](#32101-features-support-mysql-57 "Direct link to Support MySQL 5.7")

API7 Enterprise now supports MySQL 5.7.

## 3.2.10.0[​](#32100 "Direct link to 3.2.10.0")

**Release Date**: 2024-04-22

### Breaking Changes[​](#32100-breaking-changes "Direct link to Breaking Changes")

#### Bind Token with User[​](#32100-breaking-changes-bind-token-with-user "Direct link to Bind Token with User")

Tokens are bound to specific users and share the same permissions. When the user is deleted, the associated token will also be deleted.

## 3.2.9.5[​](#3295 "Direct link to 3.2.9.5")

**Release Date**: 2024-04-16

### Features[​](#3295-features "Direct link to Features")

#### Upstream mTLS(API Support Only)[​](#3295-features-upstream-mtlsapi-support-only "Direct link to Upstream mTLS(API Support Only)")

API7 Enterprise now supports mutual TLS (mTLS) authentication between the gateway and upstream services. mTLS is a form of communication security that requires both parties to present certificates to each other. This ensures that both parties are who they claim to be and that the data transmitted between them is encrypted. UI support coming soon.

## 3.2.9.4[​](#3294 "Direct link to 3.2.9.4")

**Release Date**: 2024-04-07

### Fixes[​](#3294-fixes "Direct link to Fixes")

#### Assessment of CPU Core Limitations[​](#3294-fixes-assessment-of-cpu-core-limitations "Direct link to Assessment of CPU Core Limitations")

Fixed the issue that occurs when the maximum number of CPU cores is reached.

## 3.2.9.3[​](#3293 "Direct link to 3.2.9.3")

**Release Date**: 2024-04-03

### Features[​](#3293-features "Direct link to Features")

#### Integrate with Vault (Beta)[​](#3293-features-integrate-with-vault-beta "Direct link to Integrate with Vault (Beta)")

You can store sensitive data securely in your Vault. Admin API support is available; UI support coming soon.

## 3.2.9.2[​](#3292 "Direct link to 3.2.9.2")

**Release Date**: 2024-04-01

### Features[​](#3292-features "Direct link to Features")

#### Support SAML SSO Login[​](#3292-features-support-saml-sso-login "Direct link to Support SAML SSO Login")

API7 Enterprise supports Single Sign-On (SSO) with SAML implementations. For details about how to configure SAML SSO login method, see [configure SSO with SAML](https://docs.api7.ai/enterprise/3.7.x/best-practices/sso).

#### Plugin: Data Mask[​](#3292-features-plugin-data-mask "Direct link to Plugin: Data Mask")

The data-mask plugin provides the capability to remove or replace sensitive information in request headers, request bodies, and URL queries. Learn more about [Data Mask](https://docs.api7.ai/hub/data-mask.md).

### Feature Enhancements[​](#3292-feature-enhancements "Direct link to Feature Enhancements")

#### Skip Path Prefix[​](#3292-feature-enhancements-skip-path-prefix "Direct link to Skip Path Prefix")

You can opt to skip the path prefix when sending requests to the upstream. This adjustment is imperceptible to users and may be useful when using different path prefixes to identify APIs sent to different gateway groups.

#### Better Health Check Configuration UI[​](#3292-feature-enhancements-better-health-check-configuration-ui "Direct link to Better Health Check Configuration UI")

Introduced a user-friendly and intuitive UI for your health check configuration in upstreams.

#### Upgraded Encryption Algorithm[​](#3292-feature-enhancements-upgraded-encryption-algorithm "Direct link to Upgraded Encryption Algorithm")

Upgraded from AES128 to AES256 algorithm.

#### Performance Improvement[​](#3292-feature-enhancements-performance-improvement "Direct link to Performance Improvement")

Eliminated the impact caused by disabling plugins.

## 3.2.9.1[​](#3291 "Direct link to 3.2.9.1")

**Release Date**: 2024-03-19

### Features[​](#3291-features "Direct link to Features")

#### Support Add Custom Plugin[​](#3291-features-support-add-custom-plugin "Direct link to Support Add Custom Plugin")

API7 Enterprise now allows you to build custom plugins to add extra functionalities and manage API traffic with custom flow. See how to [Add Custom Plugin](https://docs.api7.ai/enterprise/best-practices/custom-plugin)

#### Support OIDC SSO Login[​](#3291-features-support-oidc-sso-login "Direct link to Support OIDC SSO Login")

API7 Enterprise supports Single Sign-On (SSO) with OIDC implementations. For details about how to configure the LDAP SSO login method, see [configure SSO with LDAP](https://docs.api7.ai/enterprise/3.7.x/best-practices/sso).

#### Use Service Labels as API Provider Scope[​](#3291-features-use-service-labels-as-api-provider-scope "Direct link to Use Service Labels as API Provider Scope")

By assigning service labels as the scope for an API Provider, you can grant them access to all services with a specific label. It will help reduce the workload of the Super Admin. Typically, services can be grouped using a 'Department' label. Thus, users from that department will be able to access all services belonging to that department.

## 3.2.8.1[​](#3281 "Direct link to 3.2.8.1")

**Release Date**: 2024-02-08

### Features[​](#3281-features "Direct link to Features")

#### Support Nacos Service Discovery[​](#3281-features-support-nacos-service-discovery "Direct link to Support Nacos Service Discovery")

API7 Enterprise uses service discovery to automatically detect available upstream services, keeping their addresses in a database (called a service registry). Therefore, an API gateway can always fetch the latest list of upstream addresses through the service registry, ensuring all requests are forwarded to healthy upstream nodes.

In this release, API7 Enterprise supports integrating with Nacos service discovery, which can be used to [publish services](https://docs.api7.ai/enterprise/getting-started/publish-service) and [synchronize services between gateway groups](https://docs.api7.ai/enterprise/getting-started/sync-service).

#### Support LDAP SSO Login[​](#3281-features-support-ldap-sso-login "Direct link to Support LDAP SSO Login")

API7 Enterprise supports Single Sign-On (SSO) with LDAP implementations. Integrating API7 Enterprise with LDAP enables you to log your LDAP users into API7 Enterprise as part of API7 Enterprise' SSO infrastructure. For details about how to configure the LDAP SSO login method, see [configure SSO with LDAP](https://docs.api7.ai/enterprise/3.7.x/best-practices/sso).

#### Support Adding Gateway Instances using Kubernetes[​](#3281-features-support-adding-gateway-instances-using-kubernetes "Direct link to Support Adding Gateway Instances using Kubernetes")

A [gateway instance](https://docs.api7.ai/enterprise/key-concepts/gateway-groups) is a single proxy that handles traffic. In this release, API7 Enterprise supports adding gateway instances to a gateway group using Kubernetes. For details, see [add gateway instances](https://docs.api7.ai/enterprise/getting-started/add-gateway-group).
