This is an automated email from the ASF dual-hosted git repository.

kayx23 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git


The following commit(s) were added to refs/heads/master by this push:
     new 25b5446a7d chore: sync the 3.21.0 release back to master (#14237)
25b5446a7d is described below

commit 25b5446a7d73d04c7b8e1cc8ab45c5c0f6642922
Author: Ming Wen <[email protected]>
AuthorDate: Fri Nov 20 16:16:15 2026 +0800

    chore: sync the 3.21.0 release back to master (#14237)
    
    * chore: release 3.21.0 (#14230)
    
    (cherry picked from commit 07446140f87b475330ab86f280b94eaf2aeda020)
    
    * ci: compare changelogs against the shipped 3.20.0 source
    
    * ci: scope patch matching to the verified release pair
---
 CHANGELOG.md                        | 30 ++++++++++++++++++++++++++++++
 apisix/core/version.lua             |  2 +-
 ci/check_changelog_prs.ts           | 17 ++++++++++++++++-
 docs/en/latest/admin-api.json       |  2 +-
 docs/en/latest/config.json          |  2 +-
 docs/en/latest/control-api.json     |  4 ++--
 docs/openapi/admin-api/openapi.yaml |  2 +-
 docs/zh/latest/config.json          |  2 +-
 8 files changed, 53 insertions(+), 8 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index e254e90a6a..148b685ba8 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -23,6 +23,7 @@ title: Changelog
 
 ## Table of Contents
 
+- [3.21.0](#3210)
 - [3.20.0](#3200)
 - [3.19.0](#3190)
 - [3.18.0](#3180)
@@ -88,6 +89,35 @@ title: Changelog
 - [0.7.0](#070)
 - [0.6.0](#060)
 
+## 3.21.0
+
+**The changes marked with :warning: are not backward compatible.**
+
+### Change
+
+- :warning: fix(admin): require each configured Admin API key entry to specify 
the `admin` or `viewer` role when `admin_key_required` is enabled. Check 
traditional and control-plane configurations before upgrading, including 
traditional deployments with the Admin API disabled. Quote numeric-looking keys 
in YAML. Empty request keys are rejected. Only an explicitly empty string on an 
`admin` entry generates a key at startup. 
[#14203](https://github.com/apache/apisix/pull/14203)
+- :warning: feat(data_encryption): prefix newly encrypted plugin configuration 
and plugin metadata values with `$ENC$v1$`. With `enable_encrypt_fields` 
enabled, APISIX can read a marked value even if the current plugin schema no 
longer lists that field in `encrypt_fields`. Existing unmarked ciphertext 
remains readable in fields listed in `encrypt_fields`. Back up etcd before 
upgrading and avoid Admin API writes during a rolling upgrade. If encrypted 
resources have been re-saved, restore  [...]
+- :warning: chore(deps): upgrade APISIX Runtime from 1.4.2 to 1.4.3, which 
carries the NGINX 1.31.9 core in its OpenResty 1.31.8.1 build. NGINX now 
rejects HTTP header lines without a colon in client requests (400) and upstream 
responses (502), and rejects chunked request bodies with excessive framing 
overhead. When installing from the source archive, install Runtime 1.4.3 
separately, then run `make deps APISIX_RUNTIME=1.4.3` to install the Lua 
dependencies. [#14223](https://github.com/a [...]
+
+### Core
+
+- fix(security): incorporate the ten NGINX fixes released on November 18, 
2026. They cover HTTP/2 (CVE-2026-123007, CVE-2026-123633), HTTP/3 
(CVE-2026-121810), TLS request bodies (CVE-2026-118899), DNS resolution 
(CVE-2026-123634), stream TLS and PROXY protocol (CVE-2026-123640, 
CVE-2026-120967, CVE-2026-120993), static file handling (CVE-2026-125283) and 
the mail proxy (CVE-2026-113425). Applicability depends on the modules and 
configuration in use. The standard Runtime build disables m [...]
+- fix: stop writing sensitive configuration values to logs during etcd 
validation and plugin execution. For an invalid plugin configuration type, the 
Admin API reports the type without echoing the submitted value. 
[#14157](https://github.com/apache/apisix/pull/14157)
+- fix(router): with `normalize_uri_like_servlet` enabled, use the query 
arguments left by rewrite and access plugins when forwarding to the upstream. 
This preserves credential removal by `key-auth` and `jwt-auth`. Explicit 
upstream URI overrides also take precedence for mirrored requests. 
[#14163](https://github.com/apache/apisix/pull/14163)
+- fix(upstream): restart a round-robin node's slow-start ramp when it returns 
after a health check excluded it or after it was removed from the upstream. 
Even a short observed outage starts a new ramp. 
[#14188](https://github.com/apache/apisix/pull/14188)
+- fix(healthcheck): upgrade `lua-resty-healthcheck-api7` to 3.2.4 so a newly 
initialized checker observes health transitions while it polls. This prevents a 
worker from continuing to route requests to a target it recorded as healthy 
during initialization. [#14215](https://github.com/apache/apisix/pull/14215)
+- fix(redis): upgrade `lua-resty-redis-cluster` to 1.3.4 so probes of 
unhealthy nodes reuse the cluster's TLS and authentication settings and can 
recognize a recovered node. 
[#14181](https://github.com/apache/apisix/pull/14181)
+- fix(router): include the referring Route ID when the host-based router logs 
that it could not fetch a Service. 
[#13723](https://github.com/apache/apisix/pull/13723)
+
+### Plugins
+
+- fix(logger): correct batch backlog accounting after callback or timer 
failures and when entries are filtered out. Active batches now survive 
stale-processor cleanup. Body-filter expressions with IPv6 matches and plugin 
configurations containing JSON `null` can be processed without raising a 
configuration-version error. 
[#14192](https://github.com/apache/apisix/pull/14192)
+- fix(elasticsearch-logger): isolate batch processors by plugin configuration 
so each Route sends logs to its configured Elasticsearch endpoints with its own 
credentials and headers. Probe the cluster version when sending the first 
batch. [#14192](https://github.com/apache/apisix/pull/14192)
+- fix(data-mask): apply query masking rules to parameters in `upstream_uri` 
when writing access logs. [#14163](https://github.com/apache/apisix/pull/14163)
+- fix(tcp-logger): report JSON encoding failures to the batch processor. 
[#14004](https://github.com/apache/apisix/pull/14004)
+- fix(splunk-hec-logging): handle non-200 Splunk responses whose JSON body 
omits the `text` field. [#14012](https://github.com/apache/apisix/pull/14012)
+- fix(prometheus): count stream traffic from the first session on each new 
service in `apisix_stream_bandwidth`, including bytes transferred before the 
first metrics read. [#14101](https://github.com/apache/apisix/pull/14101)
+
 ## 3.20.0
 
 **The changes marked with :warning: are not backward compatible.**
diff --git a/apisix/core/version.lua b/apisix/core/version.lua
index d28bc0eb93..a6f4027f9f 100644
--- a/apisix/core/version.lua
+++ b/apisix/core/version.lua
@@ -20,5 +20,5 @@
 -- @module core.version
 
 return {
-    VERSION = "3.20.0"
+    VERSION = "3.21.0"
 }
diff --git a/ci/check_changelog_prs.ts b/ci/check_changelog_prs.ts
index b9fc4f6da6..35ffeaa07b 100755
--- a/ci/check_changelog_prs.ts
+++ b/ci/check_changelog_prs.ts
@@ -32,6 +32,10 @@ interface PR {
 }
 
 // Configuration
+// The 3.20.0 tag points at the later master sync (#14183). Use the
+// published source release (#14168) for both adjacent version ranges.
+const RELEASE_3_20_0 = '9380e21338d09abf50c23c7f83d51d55458bfcb9';
+
 const IGNORE_TYPES = [
     'docs',
     'chore',
@@ -73,10 +77,16 @@ const IGNORE_PRS = [
     // CI-only changes whose "fix(ci)" subject prefix dodges the 
docs/chore/test/ci
     // type filter but which do not belong in a user changelog.
     13921, 13923,
+    // 3.21.0: documentation typo (#13837), GitHub Actions upgrades, and
+    // test dependencies under t/ (#14007, #14020).
+    13837, 13846, 13847, 13849, 13962, 14007, 14020,
 ];
 
 
 function getGitRef(version: string): string {
+    if (version === '3.20.0') {
+        return RELEASE_3_20_0;
+    }
     try {
         execSync(`git rev-parse ${version}`, { stdio: 'ignore' });
         return version;
@@ -151,7 +161,12 @@ function shouldIgnoreCommitMessage(message: string): 
boolean {
 }
 
 function extractPRsFromGitLog(oldRef: string, newRef: string): PR[] {
-    const log = execSync(`git log ${oldRef}..${newRef} --oneline`, { encoding: 
'utf-8' });
+    // #14167 already shipped in 3.20.0 via the patch-equivalent #14169.
+    // Limit patch matching to this verified pair of published releases.
+    const range = oldRef === RELEASE_3_20_0 && newRef === '3.21.0'
+        ? `--cherry-pick --right-only ${oldRef}...${newRef}`
+        : `${oldRef}..${newRef}`;
+    const log = execSync(`git log ${range} --oneline`, { encoding: 'utf-8' });
     const prs: PR[] = [];
 
     for (const line of log.split('\n')) {
diff --git a/docs/en/latest/admin-api.json b/docs/en/latest/admin-api.json
index aa3103371b..773a4580dc 100644
--- a/docs/en/latest/admin-api.json
+++ b/docs/en/latest/admin-api.json
@@ -3,7 +3,7 @@
   "info": {
     "title": "Apache APISIX Admin API",
     "description": "The **Apache APISIX Admin API** is a RESTful interface for 
managing all APISIX gateway resources — routes, upstreams, services, consumers, 
SSL certificates, plugins, and more.\n\nAPISIX Admin API allows you to 
dynamically configure the API gateway without restarts. Accepted changes 
propagate to workers asynchronously.\n\nUnless API key authentication is 
explicitly disabled with `deployment.admin.admin_key_required: false`, 
endpoints require an **API key**. Pass a key  [...]
-    "version": "3.20.0",
+    "version": "3.21.0",
     "license": {
       "name": "Apache 2.0",
       "url": "https://www.apache.org/licenses/LICENSE-2.0.html";
diff --git a/docs/en/latest/config.json b/docs/en/latest/config.json
index a986b507c2..9f4caa86a9 100644
--- a/docs/en/latest/config.json
+++ b/docs/en/latest/config.json
@@ -1,5 +1,5 @@
 {
-  "version": "3.20.0",
+  "version": "3.21.0",
   "sidebar": [
     {
       "type": "category",
diff --git a/docs/en/latest/control-api.json b/docs/en/latest/control-api.json
index 6f0e2114a5..b5cbe5fb36 100644
--- a/docs/en/latest/control-api.json
+++ b/docs/en/latest/control-api.json
@@ -3,7 +3,7 @@
   "info": {
     "title": "APISIX Control API",
     "description": "Use the APISIX Control API to inspect or control the 
runtime state of one APISIX instance. It is enabled by default at 
`http://127.0.0.1:9090`; configure `apisix.enable_control` and `apisix.control` 
in 
[`conf/config.yaml`](https://github.com/apache/apisix/blob/master/conf/config.yaml.example).
 The API does not provide authentication, so keep it on a loopback or otherwise 
trusted internal interface and never expose it to public traffic.\n\nMost 
endpoints in this refere [...]
-    "version": "3.20.0",
+    "version": "3.21.0",
     "license": {
       "name": "Apache 2.0",
       "url": "https://www.apache.org/licenses/LICENSE-2.0.html";
@@ -1477,7 +1477,7 @@
                   "boot_time": 1608522102,
                   "hostname": "gateway-1",
                   "id": "b7ce1c5c-b1aa-4df7-888a-cbe403f3e948",
-                  "version": "3.20.0",
+                  "version": "3.21.0",
                   "etcd_version": "3.5.0"
                 }
               }
diff --git a/docs/openapi/admin-api/openapi.yaml 
b/docs/openapi/admin-api/openapi.yaml
index a236a5cb63..1ee1b1176f 100644
--- a/docs/openapi/admin-api/openapi.yaml
+++ b/docs/openapi/admin-api/openapi.yaml
@@ -27,7 +27,7 @@ info:
     By default, the Admin API binds to `0.0.0.0:9180` and allows clients from 
`127.0.0.0/24`. The examples use `http://127.0.0.1:9180`; configure the 
listener and client allowlist in `config.yaml` under 
`deployment.admin.admin_listen` and `deployment.admin.allow_admin`.
 
     To learn how to configure and operate APISIX, see [Get 
Started](https://apisix.apache.org/docs/apisix/next/getting-started/README/).
-  version: 3.20.0
+  version: 3.21.0
   license:
     name: Apache 2.0
     url: https://www.apache.org/licenses/LICENSE-2.0.html
diff --git a/docs/zh/latest/config.json b/docs/zh/latest/config.json
index 999731cdbf..d22acaa21b 100644
--- a/docs/zh/latest/config.json
+++ b/docs/zh/latest/config.json
@@ -1,5 +1,5 @@
 {
-  "version": "3.20.0",
+  "version": "3.21.0",
   "sidebar": [
     {
       "type": "category",

Reply via email to