# API7 Gateway 3.9.23 Release Notes

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