Skip to content

Commit f118f5e

Browse files
spacewanderbzp2010
andauthored
feat: release 2.12.1 (#6254)
Co-authored-by: Zeping Bai <bzp2010@apache.org>
1 parent 6193a30 commit f118f5e

14 files changed

Lines changed: 275 additions & 11 deletions

File tree

.github/workflows/chaos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
run: |
5555
curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
5656
helm repo add bitnami https://charts.bitnami.com/bitnami
57-
helm install etcd bitnami/etcd --set replicaCount=3 --set auth.rbac.enabled=false
57+
helm install etcd bitnami/etcd --set replicaCount=3 --set auth.rbac.create=false
5858
kubectl wait pods -l app.kubernetes.io/instance=etcd --for=condition=Ready --timeout=300s --all
5959
6060

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ title: Changelog
2323

2424
## Table of Contents
2525

26+
- [2.12.1](#2121)
2627
- [2.12.0](#2120)
2728
- [2.11.0](#2110)
2829
- [2.10.3](#2103)
@@ -51,6 +52,13 @@ title: Changelog
5152
- [0.7.0](#070)
5253
- [0.6.0](#060)
5354

55+
## 2.12.1
56+
57+
### Bugfix
58+
59+
- fix(batch-requests): real ip header should be overridden [#6251](https://github.com/apache/apisix/pull/6251)
60+
- fix(batch-requests): should be disabled by default [#6204](https://github.com/apache/apisix/pull/6204)
61+
5462
## 2.12.0
5563

5664
### Change

apisix/core/version.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
-- limitations under the License.
1616
--
1717
return {
18-
VERSION = "2.12.0"
18+
VERSION = "2.12.1"
1919
}

apisix/plugins/batch-requests.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ local function set_common_header(data)
165165
local local_conf = core.config.local_conf()
166166
local real_ip_hdr = core.table.try_read_attr(local_conf, "nginx_config", "http",
167167
"real_ip_header")
168+
-- we don't need to handle '_' to '-' as Nginx won't treat 'X_REAL_IP' as 'X-Real-IP'
169+
real_ip_hdr = str_lower(real_ip_hdr)
168170

169171
local outer_headers = core.request.headers(nil)
170172
for i,req in ipairs(data.pipeline) do

conf/config-default.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ plugins: # plugin list (sorted by priority)
329329
- request-id # priority: 11010
330330
- fault-injection # priority: 11000
331331
- serverless-pre-function # priority: 10000
332-
- batch-requests # priority: 4010
332+
#- batch-requests # priority: 4010
333333
- cors # priority: 4000
334334
- ip-restriction # priority: 3000
335335
- ua-restriction # priority: 2999

docs/en/latest/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "2.12.0",
2+
"version": "2.12.1",
33
"sidebar": [
44
{
55
"type": "category",

docs/en/latest/how-to-build.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@ Please refer to: [Installing Apache APISIX with Helm Chart](https://github.com/a
8181

8282
### Installation via Source Release Package
8383

84-
1. Create a directory named `apisix-2.12.0`.
84+
1. Create a directory named `apisix-2.12.1`.
8585

8686
```shell
87-
$ APISIX_VERSION='2.12.0'
87+
$ APISIX_VERSION='2.12.1'
8888
$ mkdir apisix-${APISIX_VERSION}
8989
```
9090

docs/zh/latest/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ title: CHANGELOG
2323

2424
## Table of Contents
2525

26+
- [2.12.1](#2121)
2627
- [2.12.0](#2120)
2728
- [2.11.0](#2110)
2829
- [2.10.3](#2103)
@@ -51,6 +52,13 @@ title: CHANGELOG
5152
- [0.7.0](#070)
5253
- [0.6.0](#060)
5354

55+
## 2.12.1
56+
57+
### Bugfix
58+
59+
- batch-requests 插件应当覆盖 real ip 请求头 [#6251](https://github.com/apache/apisix/pull/6251)
60+
- batch-requests 插件应当默认不启用 [#6204](https://github.com/apache/apisix/pull/6204)
61+
5462
## 2.12.0
5563

5664
### Change

docs/zh/latest/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "2.12.0",
2+
"version": "2.12.1",
33
"sidebar": [
44
{
55
"type": "category",

docs/zh/latest/how-to-build.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@ $ sudo yum install ./apisix/*.rpm
8181

8282
### 通过源码包安装
8383

84-
1. 创建一个名为 `apisix-2.12.0` 的目录。
84+
1. 创建一个名为 `apisix-2.12.1` 的目录。
8585

8686
```shell
87-
$ APISIX_VERSION='2.12.0'
87+
$ APISIX_VERSION='2.12.1'
8888
$ mkdir apisix-${APISIX_VERSION}
8989
```
9090

0 commit comments

Comments
 (0)