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

kayx23 pushed a commit to branch docs/apisix-321-encryption-upgrade
in repository https://gitbox.apache.org/repos/asf/apisix-website.git

commit bd817a37da2f17bc0ffc3de63485a66c0ba692f0
Author: kayx23 <[email protected]>
AuthorDate: Fri Nov 20 12:39:44 2026 +0800

    docs: add APISIX 3.21 encryption upgrade plan
---
 blog/en/blog/2026/11/20/release-apache-apisix-3.21.0.md | 14 ++++++++++++--
 blog/zh/blog/2026/11/20/release-apache-apisix-3.21.0.md | 14 ++++++++++++--
 2 files changed, 24 insertions(+), 4 deletions(-)

diff --git a/blog/en/blog/2026/11/20/release-apache-apisix-3.21.0.md 
b/blog/en/blog/2026/11/20/release-apache-apisix-3.21.0.md
index 65ba591fbc3..b1253299e30 100644
--- a/blog/en/blog/2026/11/20/release-apache-apisix-3.21.0.md
+++ b/blog/en/blog/2026/11/20/release-apache-apisix-3.21.0.md
@@ -25,11 +25,11 @@ We are glad to present Apache APISIX 3.21.0 with NGINX 
security updates, stricte
 
 This release upgrades APISIX Runtime to 1.4.3, which incorporates the NGINX 
1.31.9 core and ten security fixes published on November 18, 2026. It also 
corrects worker health-check convergence, restarts slow-start ramping after a 
node becomes unavailable, and fixes several batch logger delivery paths.
 
-The release contains backward-incompatible Runtime parsing and Admin API 
configuration changes. Complete the applicable upgrade plans before rollout.
+The release contains backward-incompatible Runtime parsing, Admin API 
configuration, and encrypted-value storage changes. Complete the applicable 
upgrade plans before rollout.
 
 ## Breaking Changes
 
-APISIX 3.21.0 changes the supported Runtime and tightens Admin API key 
configuration. Review both upgrade plans, including for source installations 
and deployments where the Admin API listener is disabled.
+APISIX 3.21.0 changes the supported Runtime, tightens Admin API key 
configuration, and adds a marker to newly encrypted plugin values. Review all 
applicable upgrade plans, including for source installations, deployments where 
the Admin API listener is disabled, and deployments that encrypt plugin fields.
 
 ### Runtime 1.4.3 incorporates ten NGINX security fixes
 
@@ -60,6 +60,16 @@ The validation applies to traditional and control-plane 
configurations, includin
 
 For more information, see [PR 
#14203](https://github.com/apache/apisix/pull/14203).
 
+### Newly encrypted plugin values use a version marker
+
+When `apisix.data_encryption.enable_encrypt_fields` is enabled, APISIX now 
prefixes newly encrypted plugin configuration and plugin metadata values with 
`$ENC$v1$`. The marker lets APISIX identify and decrypt a protected value even 
if the current plugin schema no longer lists that field in `encrypt_fields`. 
Existing unmarked ciphertext remains readable for fields still listed in 
`encrypt_fields`.
+
+An APISIX version without marker support treats the complete marked string as 
a literal value. This can make a mixed-version write unsafe and prevents a 
direct rollback after 3.21.0 has saved marked values.
+
+**Upgrade plan:** If plugin field encryption is enabled, back up etcd before 
upgrading. Avoid Admin API writes during a rolling upgrade until every APISIX 
instance supports the marker. If you must roll back after APISIX 3.21.0 has 
saved marked values, restore the pre-upgrade data before starting a version 
without marker support, including the official 3.20.0 release.
+
+For more information, see [PR 
#14162](https://github.com/apache/apisix/pull/14162).
+
 ## Security Fixes
 
 In addition to the NGINX security update, APISIX reduces the risk of exposing 
configuration secrets through runtime and validation logs.
diff --git a/blog/zh/blog/2026/11/20/release-apache-apisix-3.21.0.md 
b/blog/zh/blog/2026/11/20/release-apache-apisix-3.21.0.md
index 81a5f544703..4cbc635819d 100644
--- a/blog/zh/blog/2026/11/20/release-apache-apisix-3.21.0.md
+++ b/blog/zh/blog/2026/11/20/release-apache-apisix-3.21.0.md
@@ -25,11 +25,11 @@ tags: [Community]
 
 本次发布将 APISIX Runtime 升级至 1.4.3,其中集成 NGINX 1.31.9 核心及 2026 年 11 月 18 日发布的 10 
项安全修复。该版本还修复工作进程健康检查状态收敛问题,在节点不可用后重新执行慢启动,并修复多条批量日志投递路径。
 
-该版本包含不向后兼容的 Runtime 解析行为和 Admin API 配置变更。发布新版本前,请完成适用于当前部署的升级计划。
+该版本包含不向后兼容的 Runtime 解析行为、Admin API 配置和加密值存储格式变更。发布新版本前,请完成适用于当前部署的升级计划。
 
 ## 破坏性变更
 
-Apache APISIX 3.21.0 更新了受支持的 Runtime,并收紧 Admin API 
密钥配置。请检查以下两项升级计划,包括源码安装方式和已关闭 Admin API 监听器的部署。
+Apache APISIX 3.21.0 更新了受支持的 Runtime,收紧 Admin API 
密钥配置,并为新加密的插件值添加标记。请检查所有适用的升级计划,包括源码安装方式、已关闭 Admin API 监听器的部署,以及启用插件字段加密的部署。
 
 ### Runtime 1.4.3 集成 10 项 NGINX 安全修复
 
@@ -60,6 +60,16 @@ NGINX 1.31.9 还收紧了请求和响应解析。客户端请求头行缺少冒
 
 更多信息,请参阅 [PR #14203](https://github.com/apache/apisix/pull/14203)。
 
+### 新加密的插件值使用版本标记
+
+启用 `apisix.data_encryption.enable_encrypt_fields` 后,APISIX 
现在会为新加密的插件配置和插件元数据值添加 `$ENC$v1$` 前缀。即使当前插件 Schema 已不再将相应字段列入 
`encrypt_fields`,APISIX 仍可通过该标记识别并解密受保护的值。对于仍列在 `encrypt_fields` 
中的字段,已有的无标记密文仍可正常读取。
+
+不支持该标记的 APISIX 版本会将带标记的完整字符串视为普通值。因此,在混合版本部署中写入配置并不安全;APISIX 3.21.0 
保存带标记的值后,也不能直接回滚。
+
+**升级计划:** 如果已启用插件字段加密,请在升级前备份 etcd。滚动升级期间,在所有 APISIX 实例都支持该标记前,请勿通过 Admin API 
写入配置。如果 APISIX 3.21.0 已保存带标记的值而必须回滚,请先恢复升级前的数据,再启动不支持该标记的版本,包括官方发布的 3.20.0 版本。
+
+更多信息,请参阅 [PR #14162](https://github.com/apache/apisix/pull/14162)。
+
 ## 安全修复
 
 除 NGINX 安全更新外,APISIX 还降低了运行时日志和配置校验日志泄露配置敏感信息的风险。

Reply via email to