# API7 Gateway 3.4.0 更新日志

**发布日期：** 2025-01-07

## 新功能[​](#340-features "新功能的直接链接")

### 数据面[​](#340-features-data-plane "数据面的直接链接")

* **SNI 管理**：引入 [SNI](https://docs.apiseven.com/enterprise/key-concepts/snis) 作为管理 TLS 和 mTLS 身份认证及证书匹配的新机制。详情请参阅[配置客户端与 API7 Gateway 之间的 mTLS](https://docs.apiseven.com/enterprise/api-security/client-mtls)。

### 插件[​](#340-features-plugins "插件的直接链接")

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

  * 新增授权参数。[#10058](https://github.com/apache/apisix/pull/10058)
  * 新增更多属性。[#10591](https://github.com/apache/apisix/pull/10591)
  * 新增必需 Scope 的配置属性。[#10493](https://github.com/apache/apisix/pull/10493)
  * 新增 `session.cookie` 配置。[#10919](https://github.com/apache/apisix/pull/10919)
  * 支持在 Introspection 请求中设置请求头。[#11090](https://github.com/apache/apisix/pull/11090)

* **[Fault Injection](https://docs.apiseven.com/hub/fault-injection.md)**
  * 支持注入 HTTP 标头。[#9039](https://github.com/apache/apisix/pull/9039)。

* **[Skywalking Logger](https://docs.apiseven.com/hub/skywalking-logger.md)**

  * Skywalking 的 `service_instance_name` 支持 `$hostname`。[#9401](https://github.com/apache/apisix/pull/9401)
  * Logger 插件新增包含请求体和响应体的选项。[#10888](https://github.com/apache/apisix/pull/10888)

* **[Forward Auth](https://docs.apiseven.com/hub/forward-auth.md)**

  * 新增异常配置 `status_on_error`。[#10898](https://github.com/apache/apisix/pull/10898)
  * 支持降级。[#9345](https://github.com/apache/apisix/pull/9345)。

* **[Elastic Search Logger](https://docs.apiseven.com/hub/elasticsearch-logger.md)**

  * 新增兼容性请求头。[#10828](https://github.com/apache/apisix/pull/10828)
  * Logger 插件新增包含请求体和响应体的选项。[#10888](https://github.com/apache/apisix/pull/10888)

* **[Prometheus](https://docs.apiseven.com/hub/prometheus.md)**
  * 支持自定义 `DEFAULT_BUCKETS`。[#9673](https://github.com/apache/apisix/pull/9673)

* **[CORS](https://docs.apiseven.com/hub/cors.md)**
  * 支持 `Timing-Allow-Origin` HTTP 标头。[#9365](https://github.com/apache/apisix/pull/9365)

* **File Logger**：
  <!-- -->
  * 为 Logger 插件新增 Schema 属性定义。[#10738](https://github.com/apache/apisix/pull/10738)

* **[HTTP Logger](https://docs.apiseven.com/hub/http-logger.md)**：
  <!-- -->
  * 为 Logger 插件新增 Schema 属性定义。[#10738](https://github.com/apache/apisix/pull/10738)

* **[Syslog](https://docs.apiseven.com/hub/syslog.md)**
  * Logger 插件新增包含请求体和响应体的选项。[#10888](https://github.com/apache/apisix/pull/10888)

* **SLS Logger**
  * Logger 插件新增包含请求体和响应体的选项。[#10888](https://github.com/apache/apisix/pull/10888)

* **TCP Logger**
  * Logger 插件新增包含请求体和响应体的选项。[#10888](https://github.com/apache/apisix/pull/10888)

* **UDP Logger**
  * Logger 插件新增包含请求体和响应体的选项。[#10888](https://github.com/apache/apisix/pull/10888)

* **Tencent Cloud CLS**

  * 为 Logger 插件新增 Schema 属性定义。[#10738](https://github.com/apache/apisix/pull/10738)
  * Logger 插件新增包含请求体和响应体的选项。[#10888](https://github.com/apache/apisix/pull/10888)

### Admin API[​](#340-features-admin-apis "Admin API的直接链接")

* 新增与 **SNI** 相关的 API：

  <!-- -->

  * [创建 SNI](https://docs.apiseven.com/enterprise/3.4.x/admin-api#tag/SNI/operation/createSNI)。
  * [更新网关组上的 SNI](https://docs.apiseven.com/enterprise/3.4.x/admin-api#tag/SNI/operation/putSNI)。
  * [列出网关组上的所有 SNI](https://docs.apiseven.com/enterprise/3.4.x/admin-api#tag/SNI/operation/listSNIs)。
  * [获取网关组上的 SNI](https://docs.apiseven.com/enterprise/3.4.x/admin-api#tag/SNI/operation/getSNI)。
  * [删除网关组上的 SNI](https://docs.apiseven.com/enterprise/3.4.x/admin-api#tag/SNI/operation/deleteSNI)。

### 控制台（Dashboard）[​](#340-features-console "控制台（Dashboard）的直接链接")

* **API7 Portal 监控**：提供监控数据和可视化，以追踪 API 产品指标。
* 将自定义插件配置应用于网关组级别。详情请参阅[新增自定义插件](https://docs.apiseven.com/enterprise/best-practices/custom-plugin)。

## 缺陷修复[​](#340-fixes "缺陷修复的直接链接")

### 数据面[​](#340-fixes-data-plane "数据面的直接链接")

* 修复问题：Redis 延迟同步功能使用的共享内存发生泄漏。
* 修复问题：不安全地向外部服务发送请求时产生警告日志。[#11403](https://github.com/apache/apisix/pull/11403)

### 插件[​](#340-fixes-plugins "插件的直接链接")

* **[AI Proxy](https://docs.apiseven.com/hub/ai-proxy.md)**
  * 修复问题：`override.endpoint` 中的查询参数未发送给 LLM。

* **[OpenID Connect](https://docs.apiseven.com/hub/openid-connect.md)**
  * 修复问题：使用可加锁的会话存储后端时未关闭会话，导致阻塞直到 TTL 到期。[#10788](https://github.com/apache/apisix/pull/10788)

* **[Forward Auth](https://docs.apiseven.com/hub/forward-auth.md)**

  * 修复问题：请求体过大。[#10589](https://github.com/apache/apisix/pull/10589)
  * 修复问题：请求为 POST、认证服务 API 为 GET 时插件不工作。[#11021](https://github.com/apache/apisix/pull/11021)

* **GRPC Web**：
  <!-- -->
  * 修复问题：收到缺少 Trailer 的错误。[#10851](https://github.com/apache/apisix/pull/10851)

* **[GRPC Transcode](https://docs.apiseven.com/hub/grpc-transcode.md)**
  * 修复问题：`pb_option_def` 中枚举值的位置错误。[#11448](https://github.com/apache/apisix/pull/11448)

### 控制台（Dashboard）[​](#340-fixes-console "控制台（Dashboard）的直接链接")

* 修复问题：发布多个服务时未能记录审计日志。

## 依赖项[​](#340-dependencies "依赖项的直接链接")

* 数据面升级到 LuaJit 2.1-20240815。
* 移除了 `grpc-client-nginx-module`。
