Skip to content

Commit d4e658f

Browse files
bzp2010spacewander
andauthored
feat: release 2.10.4 (#6255)
Co-authored-by: 罗泽轩 <[email protected]>
1 parent ea47eeb commit d4e658f

File tree

10 files changed

+279
-17
lines changed

10 files changed

+279
-17
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ title: Changelog
2323

2424
## Table of Contents
2525

26+
- [2.10.4](#2104)
2627
- [2.10.3](#2103)
2728
- [2.10.2](#2102)
2829
- [2.10.1](#2101)
@@ -49,6 +50,12 @@ title: Changelog
4950
- [0.7.0](#070)
5051
- [0.6.0](#060)
5152

53+
## 2.10.4
54+
55+
### Bugfix
56+
57+
- fix(batch-requests): real ip header should be overridden [#6251](https://github.com/apache/apisix/pull/6251)
58+
5259
## 2.10.3
5360

5461
### Bugfix

apisix/core/version.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
-- limitations under the License.
1616
--
1717
return {
18-
VERSION = "2.10.3"
18+
VERSION = "2.10.4"
1919
}

apisix/plugins/batch-requests.lua

+2
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

docs/en/latest/config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "2.10.3",
2+
"version": "2.10.4",
33
"sidebar": [
44
{
55
"type": "category",

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

+7-7
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ sudo yum install -y https://repos.apiseven.com/packages/centos/apache-apisix-rep
5858
This installation method is suitable for CentOS 7, please run the following command to install Apache APISIX.
5959

6060
```shell
61-
sudo yum install -y https://repos.apiseven.com/packages/centos/7/x86_64/apisix-2.10.3-0.el7.x86_64.rpm
61+
sudo yum install -y https://repos.apiseven.com/packages/centos/7/x86_64/apisix-2.10.4-0.el7.x86_64.rpm
6262
```
6363

6464
### Installation via Docker
@@ -71,31 +71,31 @@ Please refer to: [Installing Apache APISIX with Helm Chart](https://github.com/a
7171

7272
### Installation via Source Release Package
7373

74-
1. Create a directory named `apisix-2.10.3`.
74+
1. Create a directory named `apisix-2.10.4`.
7575

7676
```shell
77-
mkdir apisix-2.10.3
77+
mkdir apisix-2.10.4
7878
```
7979

8080
2. Download Apache APISIX Release source package.
8181

8282
```shell
83-
wget https://downloads.apache.org/apisix/2.10.3/apache-apisix-2.10.3-src.tgz
83+
wget https://downloads.apache.org/apisix/2.10.4/apache-apisix-2.10.4-src.tgz
8484
```
8585

8686
You can also download the Apache APISIX Release source package from the Apache APISIX website. The [Apache APISIX Official Website - Download Page](https://apisix.apache.org/downloads/) also provides source packages for Apache APISIX, APISIX Dashboard and APISIX Ingress Controller.
8787

8888
3. Unzip the Apache APISIX Release source package.
8989

9090
```shell
91-
tar zxvf apache-apisix-2.10.3-src.tgz -C apisix-2.10.3
91+
tar zxvf apache-apisix-2.10.4-src.tgz -C apisix-2.10.4
9292
```
9393

9494
4. Install the runtime dependent Lua libraries.
9595

9696
```shell
97-
# Switch to the apisix-2.10.3 directory
98-
cd apisix-2.10.3
97+
# Switch to the apisix-2.10.4 directory
98+
cd apisix-2.10.4
9999
# Create dependencies
100100
make deps
101101
# Install apisix command

docs/zh/latest/CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ title: CHANGELOG
2323

2424
## Table of Contents
2525

26+
- [2.10.4](#2104)
2627
- [2.10.3](#2103)
2728
- [2.10.2](#2102)
2829
- [2.10.1](#2101)
@@ -49,6 +50,12 @@ title: CHANGELOG
4950
- [0.7.0](#070)
5051
- [0.6.0](#060)
5152

53+
## 2.10.4
54+
55+
### Bugfix
56+
57+
- batch-requests 插件应当覆盖 real ip 请求头 [#6251](https://github.com/apache/apisix/pull/6251)
58+
5259
## 2.10.3
5360

5461
### Bugfix

docs/zh/latest/config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "2.10.3",
2+
"version": "2.10.4",
33
"sidebar": [
44
{
55
"type": "category",

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

+7-7
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ sudo yum install -y https://repos.apiseven.com/packages/centos/apache-apisix-rep
5858
这种安装方式适用于 CentOS 7 操作系统,请运行以下命令安装 Apache APISIX。
5959

6060
```shell
61-
sudo yum install -y https://repos.apiseven.com/packages/centos/7/x86_64/apisix-2.10.3-0.el7.x86_64.rpm
61+
sudo yum install -y https://repos.apiseven.com/packages/centos/7/x86_64/apisix-2.10.4-0.el7.x86_64.rpm
6262
```
6363

6464
### 通过 Docker 安装
@@ -71,31 +71,31 @@ sudo yum install -y https://repos.apiseven.com/packages/centos/7/x86_64/apisix-2
7171

7272
### 通过源码包安装
7373

74-
1. 创建一个名为 `apisix-2.10.3` 的目录。
74+
1. 创建一个名为 `apisix-2.10.4` 的目录。
7575

7676
```shell
77-
mkdir apisix-2.10.3
77+
mkdir apisix-2.10.4
7878
```
7979

8080
2. 下载 Apache APISIX Release 源码包:
8181

8282
```shell
83-
wget https://downloads.apache.org/apisix/2.10.3/apache-apisix-2.10.3-src.tgz
83+
wget https://downloads.apache.org/apisix/2.10.4/apache-apisix-2.10.4-src.tgz
8484
```
8585

8686
您也可以通过 Apache APISIX 官网下载 Apache APISIX Release 源码包。 Apache APISIX 官网也提供了 Apache APISIX、APISIX Dashboard 和 APISIX Ingress Controller 的源码包,详情请参考[Apache APISIX 官网-下载页](https://apisix.apache.org/zh/downloads)
8787

8888
3. 解压 Apache APISIX Release 源码包:
8989

9090
```shell
91-
tar zxvf apache-apisix-2.10.3-src.tgz -C apisix-2.10.3
91+
tar zxvf apache-apisix-2.10.4-src.tgz -C apisix-2.10.4
9292
```
9393

9494
4. 安装运行时依赖的 Lua 库:
9595

9696
```shell
97-
# 切换到 apisix-2.10.3 目录
98-
cd apisix-2.10.3
97+
# 切换到 apisix-2.10.4 目录
98+
cd apisix-2.10.4
9999
# 安装依赖
100100
LUAROCKS_SERVER=https://luarocks.cn make deps
101101
# 安装 apisix 命令

rockspec/apisix-2.10.4-0.rockspec

+95
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
--
2+
-- Licensed to the Apache Software Foundation (ASF) under one or more
3+
-- contributor license agreements. See the NOTICE file distributed with
4+
-- this work for additional information regarding copyright ownership.
5+
-- The ASF licenses this file to You under the Apache License, Version 2.0
6+
-- (the "License"); you may not use this file except in compliance with
7+
-- the License. You may obtain a copy of the License at
8+
--
9+
-- http://www.apache.org/licenses/LICENSE-2.0
10+
--
11+
-- Unless required by applicable law or agreed to in writing, software
12+
-- distributed under the License is distributed on an "AS IS" BASIS,
13+
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
-- See the License for the specific language governing permissions and
15+
-- limitations under the License.
16+
--
17+
18+
package = "apisix"
19+
version = "2.10.4-0"
20+
supported_platforms = {"linux", "macosx"}
21+
22+
source = {
23+
url = "git://github.com/apache/apisix",
24+
branch = "2.10.4",
25+
}
26+
27+
description = {
28+
summary = "Apache APISIX is a cloud-native microservices API gateway, delivering the ultimate performance, security, open source and scalable platform for all your APIs and microservices.",
29+
homepage = "https://github.com/apache/apisix",
30+
license = "Apache License 2.0",
31+
}
32+
33+
dependencies = {
34+
"lua-resty-ctxdump = 0.1-0",
35+
"lua-resty-dns-client = 5.2.0",
36+
"lua-resty-template = 2.0",
37+
"lua-resty-etcd = 1.5.4",
38+
"api7-lua-resty-http = 0.2.0",
39+
"lua-resty-balancer = 0.04",
40+
"lua-resty-ngxvar = 0.5.2",
41+
"lua-resty-jit-uuid = 0.0.7",
42+
"lua-resty-healthcheck-api7 = 2.2.0",
43+
"lua-resty-jwt = 0.2.0",
44+
"lua-resty-hmac-ffi = 0.05",
45+
"lua-resty-cookie = 0.1.0",
46+
"lua-resty-session = 2.24",
47+
"opentracing-openresty = 0.1",
48+
"lua-resty-radixtree = 2.8.1",
49+
"lua-protobuf = 0.3.3",
50+
"lua-resty-openidc = 1.7.2-1",
51+
"luafilesystem = 1.7.0-2",
52+
"api7-lua-tinyyaml = 0.3.0",
53+
"nginx-lua-prometheus = 0.20210206",
54+
"jsonschema = 0.9.5",
55+
"lua-resty-ipmatcher = 0.6.1",
56+
"lua-resty-kafka = 0.07",
57+
"lua-resty-logger-socket = 2.0-0",
58+
"skywalking-nginx-lua = 0.4-1",
59+
"base64 = 1.5-2",
60+
"binaryheap = 0.4",
61+
"dkjson = 2.5-2",
62+
"resty-redis-cluster = 1.02-4",
63+
"lua-resty-expr = 1.3.1",
64+
"graphql = 0.0.2",
65+
"argparse = 0.7.1-1",
66+
"luasocket = 3.0rc1-2",
67+
"luasec = 0.9-1",
68+
"lua-resty-consul = 0.3-2",
69+
"penlight = 1.9.2-1",
70+
"ext-plugin-proto = 0.3.0",
71+
"casbin = 1.26.0",
72+
"api7-snowflake = 2.0-1",
73+
"inspect == 3.1.1",
74+
}
75+
76+
build = {
77+
type = "make",
78+
build_variables = {
79+
CFLAGS="$(CFLAGS)",
80+
LIBFLAG="$(LIBFLAG)",
81+
LUA_LIBDIR="$(LUA_LIBDIR)",
82+
LUA_BINDIR="$(LUA_BINDIR)",
83+
LUA_INCDIR="$(LUA_INCDIR)",
84+
LUA="$(LUA)",
85+
OPENSSL_INCDIR="$(OPENSSL_INCDIR)",
86+
OPENSSL_LIBDIR="$(OPENSSL_LIBDIR)",
87+
},
88+
install_variables = {
89+
INST_PREFIX="$(PREFIX)",
90+
INST_BINDIR="$(BINDIR)",
91+
INST_LIBDIR="$(LIBDIR)",
92+
INST_LUADIR="$(LUADIR)",
93+
INST_CONFDIR="$(CONFDIR)",
94+
},
95+
}

0 commit comments

Comments
 (0)