You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by sp...@apache.org on 2021/06/25 01:07:31 UTC

[apisix] branch master updated: feat: release 2.7 (#4453)

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

spacewander 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 3f0dee1  feat: release 2.7 (#4453)
3f0dee1 is described below

commit 3f0dee1d1dff095a521e66df17ae5e77498174eb
Author: 罗泽轩 <sp...@gmail.com>
AuthorDate: Fri Jun 25 09:07:25 2021 +0800

    feat: release 2.7 (#4453)
---
 CHANGELOG.md                   | 35 ++++++++++++++++
 README.md                      |  8 ++--
 apisix/core/version.lua        |  2 +-
 docs/ar/README.md              |  8 ++--
 docs/en/latest/config.json     |  2 +-
 docs/en/latest/how-to-build.md | 10 ++---
 docs/es/latest/README.md       |  8 ++--
 docs/es/latest/config.json     |  2 +-
 docs/zh/latest/CHANGELOG.md    | 33 +++++++++++++++
 docs/zh/latest/README.md       |  8 ++--
 docs/zh/latest/config.json     |  2 +-
 docs/zh/latest/how-to-build.md | 10 ++---
 rockspec/apisix-2.7-0.rockspec | 91 ++++++++++++++++++++++++++++++++++++++++++
 13 files changed, 189 insertions(+), 30 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index e5a7329..65acc53 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -23,6 +23,7 @@ title: Changelog
 
 ## Table of Contents
 
+- [2.7.0](#270)
 - [2.6.0](#260)
 - [2.5.0](#250)
 - [2.4.0](#240)
@@ -42,6 +43,40 @@ title: Changelog
 - [0.7.0](#070)
 - [0.6.0](#060)
 
+## 2.7.0
+
+### Change
+
+- change: check metadata_schema with check_schema like the other schema [#4381](https://github.com/apache/apisix/pull/4381)
+- change(echo): remove odd auth_value [#4055](https://github.com/apache/apisix/pull/4055)
+- fix(admin): correct the resources' count field and change its type to integer [#4385](https://github.com/apache/apisix/pull/4385)
+
+### Core
+
+- :sunrise: feat(stream): support client certificate verification [#4445](https://github.com/apache/apisix/pull/4445)
+- :sunrise: feat(stream): accept tls over tcp [#4409](https://github.com/apache/apisix/pull/4409)
+- :sunrise: feat(stream): support domain in the upstream [#4386](https://github.com/apache/apisix/pull/4386)
+- :sunrise: feat(cli): wrap nginx quit cmd [#4360](https://github.com/apache/apisix/pull/4360)
+- :sunrise: feat: allow to set custom timeout for route [#4340](https://github.com/apache/apisix/pull/4340)
+- :sunrise: feat: nacos discovery support group [#4325](https://github.com/apache/apisix/pull/4325)
+- :sunrise: feat: nacos discovery support namespace [#4313](https://github.com/apache/apisix/pull/4313)
+
+### Plugin
+
+- :sunrise: feat(client-control): set client_max_body_size dynamically [#4423](https://github.com/apache/apisix/pull/4423)
+- :sunrise: feat(ext-plugin): stop the runner with SIGTERM [#4367](https://github.com/apache/apisix/pull/4367)
+- :sunrise: feat(limit-req) support nodelay [#4395](https://github.com/apache/apisix/pull/4395)
+- :sunrise: feat(mqtt-proxy): support domain [#4391](https://github.com/apache/apisix/pull/4391)
+- :sunrise: feat(redirect): support appending query string [#4298](https://github.com/apache/apisix/pull/4298)
+
+### Bugfix
+
+- fix: solve memory leak when the client aborts [#4405](https://github.com/apache/apisix/pull/4405)
+- fix(etcd): check res.body.error before accessing the data [#4371](https://github.com/apache/apisix/pull/4371)
+- fix(ext-plugin): when token is stale, refresh token and try again [#4345](https://github.com/apache/apisix/pull/4345)
+- fix(ext-plugin): pass environment variables [#4349](https://github.com/apache/apisix/pull/4349)
+- fix: ensure the plugin is always reloaded [#4319](https://github.com/apache/apisix/pull/4319)
+
 ## 2.6.0
 
 ### Change
diff --git a/README.md b/README.md
index 8a7af10..d969578 100644
--- a/README.md
+++ b/README.md
@@ -155,9 +155,9 @@ There are several ways to install the Apache Release version of APISIX:
    - Download the latest source code release package:
 
      ```shell
-     $ mkdir apisix-2.6
-     $ wget https://downloads.apache.org/apisix/2.6/apache-apisix-2.6-src.tgz
-     $ tar zxvf apache-apisix-2.6-src.tgz -C apisix-2.6
+     $ mkdir apisix-2.7
+     $ wget https://downloads.apache.org/apisix/2.7/apache-apisix-2.7-src.tgz
+     $ tar zxvf apache-apisix-2.7-src.tgz -C apisix-2.7
      ```
 
    - Install the dependencies:
@@ -194,7 +194,7 @@ There are several ways to install the Apache Release version of APISIX:
    - install APISIX:
 
    ```shell
-   $ sudo yum install -y https://github.com/apache/apisix/releases/download/2.6/apisix-2.6-0.x86_64.rpm
+   $ sudo yum install -y https://github.com/apache/apisix/releases/download/2.7/apisix-2.7-0.x86_64.rpm
    ```
 
    - check the version of APISIX:
diff --git a/apisix/core/version.lua b/apisix/core/version.lua
index 05e6a95..6db966e 100644
--- a/apisix/core/version.lua
+++ b/apisix/core/version.lua
@@ -15,5 +15,5 @@
 -- limitations under the License.
 --
 return {
-    VERSION = "2.6"
+    VERSION = "2.7"
 }
diff --git a/docs/ar/README.md b/docs/ar/README.md
index ac6061d..3b914f8 100644
--- a/docs/ar/README.md
+++ b/docs/ar/README.md
@@ -158,9 +158,9 @@ CentOS 7, Ubuntu 16.04, Ubuntu 18.04, Debian 9, Debian 10, macOS, **ARM64** Ubun
    - قم بتنزيل أحدث حزمة إصدار لشفرة المصدر:
 
      ```shell
-     $ mkdir apisix-2.6
-     $ wget https://downloads.apache.org/apisix/2.6/apache-apisix-2.6-src.tgz
-     $ tar zxvf apache-apisix-2.6-src.tgz -C apisix-2.6
+     $ mkdir apisix-2.7
+     $ wget https://downloads.apache.org/apisix/2.7/apache-apisix-2.7-src.tgz
+     $ tar zxvf apache-apisix-2.7-src.tgz -C apisix-2.7
      ```
 
    - تثبيت التبعيات :
@@ -197,7 +197,7 @@ CentOS 7, Ubuntu 16.04, Ubuntu 18.04, Debian 9, Debian 10, macOS, **ARM64** Ubun
    - تثبيت أبيسكس:
 
    ```shell
-   $ sudo yum install -y https://github.com/apache/apisix/releases/download/2.6/apisix-2.6-0.x86_64.rpm
+   $ sudo yum install -y https://github.com/apache/apisix/releases/download/2.7/apisix-2.7-0.x86_64.rpm
    ```
 
    - تحقق من إصدار أبيسكس:
diff --git a/docs/en/latest/config.json b/docs/en/latest/config.json
index 0f145b8..2f08878 100644
--- a/docs/en/latest/config.json
+++ b/docs/en/latest/config.json
@@ -1,5 +1,5 @@
 {
-  "version": 2.6,
+  "version": 2.7,
   "sidebar": [
     {
       "type": "category",
diff --git a/docs/en/latest/how-to-build.md b/docs/en/latest/how-to-build.md
index 7e7d917..1a0533d 100644
--- a/docs/en/latest/how-to-build.md
+++ b/docs/en/latest/how-to-build.md
@@ -34,7 +34,7 @@ You can install Apache APISIX in a variety of ways, including source code packag
 ### Installation via RPM package (CentOS 7)
 
 ```shell
-sudo yum install -y https://github.com/apache/apisix/releases/download/2.6/apisix-2.6-0.x86_64.rpm
+sudo yum install -y https://github.com/apache/apisix/releases/download/2.7/apisix-2.7-0.x86_64.rpm
 ```
 
 ### Installation via Docker
@@ -50,15 +50,15 @@ See https://github.com/apache/apisix-helm-chart
 You need to download the Apache source release first:
 
 ```shell
-$ mkdir apisix-2.6
-$ wget https://downloads.apache.org/apisix/2.6/apache-apisix-2.6-src.tgz
-$ tar zxvf apache-apisix-2.6-src.tgz -C apisix-2.6
+$ mkdir apisix-2.7
+$ wget https://downloads.apache.org/apisix/2.7/apache-apisix-2.7-src.tgz
+$ tar zxvf apache-apisix-2.7-src.tgz -C apisix-2.7
 ```
 
 Install the Lua libraries that the runtime depends on:
 
 ```shell
-cd apisix-2.6
+cd apisix-2.7
 make deps
 ```
 
diff --git a/docs/es/latest/README.md b/docs/es/latest/README.md
index fb8bbe2..9330249 100644
--- a/docs/es/latest/README.md
+++ b/docs/es/latest/README.md
@@ -155,9 +155,9 @@ Hay varias maneras de instalar la versión publicada Apache de APISIX:
    - Bajar el paquete de publicación más reciente de código fuente:
 
      ```shell
-     $ mkdir apisix-2.6
-     $ wget https://downloads.apache.org/apisix/2.6/apache-apisix-2.6-src.tgz
-     $ tar zxvf apache-apisix-2.6-src.tgz -C apisix-2.6
+     $ mkdir apisix-2.7
+     $ wget https://downloads.apache.org/apisix/2.7/apache-apisix-2.7-src.tgz
+     $ tar zxvf apache-apisix-2.7-src.tgz -C apisix-2.7
      ```
 
    - Instalar las dependencias:
@@ -194,7 +194,7 @@ Hay varias maneras de instalar la versión publicada Apache de APISIX:
    - Instalar APISIX:
 
    ```shell
-   $ sudo yum install -y https://github.com/apache/apisix/releases/download/2.6/apisix-2.6-0.x86_64.rpm
+   $ sudo yum install -y https://github.com/apache/apisix/releases/download/2.7/apisix-2.7-0.x86_64.rpm
    ```
 
    - Chequear versión de APISIX:
diff --git a/docs/es/latest/config.json b/docs/es/latest/config.json
index f02749c..223338a 100644
--- a/docs/es/latest/config.json
+++ b/docs/es/latest/config.json
@@ -1,4 +1,4 @@
 {
-  "version": 2.6,
+  "version": 2.7,
   "sidebar": []
 }
diff --git a/docs/zh/latest/CHANGELOG.md b/docs/zh/latest/CHANGELOG.md
index 3966d6d..173d1d5 100644
--- a/docs/zh/latest/CHANGELOG.md
+++ b/docs/zh/latest/CHANGELOG.md
@@ -23,6 +23,7 @@ title: CHANGELOG
 
 ## Table of Contents
 
+- [2.7.0](#270)
 - [2.6.0](#260)
 - [2.5.0](#250)
 - [2.4.0](#240)
@@ -42,6 +43,38 @@ title: CHANGELOG
 - [0.7.0](#070)
 - [0.6.0](#060)
 
+## 2.7.0
+
+- 修改 metadata_schema 校验方式,让它跟其他 schema 一致 [#4381](https://github.com/apache/apisix/pull/4381)
+- 移除 echo 插件的 auth_value 字段 [#4055](https://github.com/apache/apisix/pull/4055)
+- 更正 Admin API count 字段的计算,并把它的类型变成 integer [#4385](https://github.com/apache/apisix/pull/4385)
+
+### Core
+
+- :sunrise: TCP 代理支持客户端证书校验 [#4445](https://github.com/apache/apisix/pull/4445)
+- :sunrise: TCP 代理支持接收 TLS over TCP 连接 [#4409](https://github.com/apache/apisix/pull/4409)
+- :sunrise: TCP/UDP 代理上游配置支持用域名 [#4386](https://github.com/apache/apisix/pull/4386)
+- :sunrise: CLI 中封装 nginx quit 操作 [#4360](https://github.com/apache/apisix/pull/4360)
+- :sunrise: 允许在 route 配置上游超时时间 [#4340](https://github.com/apache/apisix/pull/4340)
+- :sunrise: Nacos 服务发现支持 group 参数 [#4325](https://github.com/apache/apisix/pull/4325)
+- :sunrise: Nacos 服务发现支持 namespace 参数 [#4313](https://github.com/apache/apisix/pull/4313)
+
+### Plugin
+
+- :sunrise: client-control 允许动态设置 client_max_body_size [#4423](https://github.com/apache/apisix/pull/4423)
+- :sunrise: ext-plugin 使用 SIGTERM 结束 runner [#4367](https://github.com/apache/apisix/pull/4367)
+- :sunrise: limit-req 增加 nodelay 参数 [#4395](https://github.com/apache/apisix/pull/4395)
+- :sunrise: mqtt-proxy 允许配置域名 [#4391](https://github.com/apache/apisix/pull/4391)
+- :sunrise: redirect 支持带上 query string [#4298](https://github.com/apache/apisix/pull/4298)
+
+### Bugfix
+
+- 修复客户端断开连接导致的内存泄漏 [#4405](https://github.com/apache/apisix/pull/4405)
+- 修复处理 etcd 响应时有一个地方没有检查 res.body.error 的问题 [#4371](https://github.com/apache/apisix/pull/4371)
+- 修复 ext-plugin 插件 token 过期后没有刷新 token 的问题 [#4345](https://github.com/apache/apisix/pull/4345)
+- 修复 ext-plugin 插件没有传递环境变量的问题 [#4349](https://github.com/apache/apisix/pull/4349)
+- 修复插件热加载时,插件可能不会重新加载的问题 [#4319](https://github.com/apache/apisix/pull/4319)
+
 ## 2.6.0
 
 ### Change
diff --git a/docs/zh/latest/README.md b/docs/zh/latest/README.md
index bccc08e..78fd49f 100644
--- a/docs/zh/latest/README.md
+++ b/docs/zh/latest/README.md
@@ -158,9 +158,9 @@ CentOS 7, Ubuntu 16.04, Ubuntu 18.04, Debian 9, Debian 10, macOS, **ARM64** Ubun
    - 下载最新的源码发布包:
 
      ```shell
-     $ mkdir apisix-2.6
-     $ wget https://downloads.apache.org/apisix/2.6/apache-apisix-2.6-src.tgz
-     $ tar zxvf apache-apisix-2.6-src.tgz -C apisix-2.6
+     $ mkdir apisix-2.7
+     $ wget https://downloads.apache.org/apisix/2.7/apache-apisix-2.7-src.tgz
+     $ tar zxvf apache-apisix-2.7-src.tgz -C apisix-2.7
      ```
 
    - 安装运行时依赖的 Lua 库:
@@ -197,7 +197,7 @@ CentOS 7, Ubuntu 16.04, Ubuntu 18.04, Debian 9, Debian 10, macOS, **ARM64** Ubun
    - 安装 APISIX:
 
    ```shell
-   $ sudo yum install -y https://github.com/apache/apisix/releases/download/2.6/apisix-2.6-0.x86_64.rpm
+   $ sudo yum install -y https://github.com/apache/apisix/releases/download/2.7/apisix-2.7-0.x86_64.rpm
    ```
 
    - 检查 APISIX 的版本号:
diff --git a/docs/zh/latest/config.json b/docs/zh/latest/config.json
index 6b54a61..9cda9ea 100644
--- a/docs/zh/latest/config.json
+++ b/docs/zh/latest/config.json
@@ -1,5 +1,5 @@
 {
-  "version": 2.6,
+  "version": 2.7,
   "sidebar": [
     {
       "type": "category",
diff --git a/docs/zh/latest/how-to-build.md b/docs/zh/latest/how-to-build.md
index 1c5fc8e..83a9e75 100644
--- a/docs/zh/latest/how-to-build.md
+++ b/docs/zh/latest/how-to-build.md
@@ -34,7 +34,7 @@ Apache APISIX 的运行环境需要 Nginx 和 etcd,
 ### 通过 RPM 包安装(CentOS 7)
 
 ```shell
-sudo yum install -y https://github.com/apache/apisix/releases/download/2.6/apisix-2.6-0.x86_64.rpm
+sudo yum install -y https://github.com/apache/apisix/releases/download/2.7/apisix-2.7-0.x86_64.rpm
 ```
 
 ### 通过 Docker 安装
@@ -50,15 +50,15 @@ sudo yum install -y https://github.com/apache/apisix/releases/download/2.6/apisi
 你需要先下载 Apache Release 源码包:
 
 ```shell
-$ mkdir apisix-2.6
-$ wget https://downloads.apache.org/apisix/2.6/apache-apisix-2.6-src.tgz
-$ tar zxvf apache-apisix-2.6-src.tgz -C apisix-2.6
+$ mkdir apisix-2.7
+$ wget https://downloads.apache.org/apisix/2.7/apache-apisix-2.7-src.tgz
+$ tar zxvf apache-apisix-2.7-src.tgz -C apisix-2.7
 ```
 
 安装运行时依赖的 Lua 库:
 
 ```
-cd apisix-2.6
+cd apisix-2.7
 make deps
 ```
 
diff --git a/rockspec/apisix-2.7-0.rockspec b/rockspec/apisix-2.7-0.rockspec
new file mode 100644
index 0000000..1f8f058
--- /dev/null
+++ b/rockspec/apisix-2.7-0.rockspec
@@ -0,0 +1,91 @@
+--
+-- Licensed to the Apache Software Foundation (ASF) under one or more
+-- contributor license agreements.  See the NOTICE file distributed with
+-- this work for additional information regarding copyright ownership.
+-- The ASF licenses this file to You under the Apache License, Version 2.0
+-- (the "License"); you may not use this file except in compliance with
+-- the License.  You may obtain a copy of the License at
+--
+--     http://www.apache.org/licenses/LICENSE-2.0
+--
+-- Unless required by applicable law or agreed to in writing, software
+-- distributed under the License is distributed on an "AS IS" BASIS,
+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+-- See the License for the specific language governing permissions and
+-- limitations under the License.
+--
+
+package = "apisix"
+version = "2.7-0"
+supported_platforms = {"linux", "macosx"}
+
+source = {
+    url = "git://github.com/apache/apisix",
+    branch = "2.7",
+}
+
+description = {
+    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.",
+    homepage = "https://github.com/apache/apisix",
+    license = "Apache License 2.0",
+}
+
+dependencies = {
+    "lua-resty-ctxdump = 0.1-0",
+    "lua-resty-dns-client = 5.2.0",
+    "lua-resty-template = 2.0",
+    "lua-resty-etcd = 1.5.0",
+    "lua-resty-balancer = 0.02rc5",
+    "lua-resty-ngxvar = 0.5.2",
+    "lua-resty-jit-uuid = 0.0.7",
+    "lua-resty-healthcheck-api7 = 2.2.0",
+    "lua-resty-jwt = 0.2.0",
+    "lua-resty-hmac-ffi = 0.05",
+    "lua-resty-cookie = 0.1.0",
+    "lua-resty-session = 2.24",
+    "opentracing-openresty = 0.1",
+    "lua-resty-radixtree = 2.8.0",
+    "lua-protobuf = 0.3.2",
+    "lua-resty-openidc = 1.7.2-1",
+    "luafilesystem = 1.7.0-2",
+    "lua-tinyyaml = 1.0",
+    "nginx-lua-prometheus = 0.20210206",
+    "jsonschema = 0.9.5",
+    "lua-resty-ipmatcher = 0.6",
+    "lua-resty-kafka = 0.07",
+    "lua-resty-logger-socket = 2.0-0",
+    "skywalking-nginx-lua = 0.4-1",
+    "base64 = 1.5-2",
+    "binaryheap = 0.4",
+    "dkjson = 2.5-2",
+    "resty-redis-cluster = 1.02-4",
+    "lua-resty-expr = 1.3.0",
+    "graphql = 0.0.2",
+    "argparse = 0.7.1-1",
+    "luasocket = 3.0rc1-2",
+    "luasec = 0.9-1",
+    "lua-resty-consul = 0.3-2",
+    "penlight = 1.9.2-1",
+    "ext-plugin-proto = 0.1.1",
+}
+
+build = {
+    type = "make",
+    build_variables = {
+        CFLAGS="$(CFLAGS)",
+        LIBFLAG="$(LIBFLAG)",
+        LUA_LIBDIR="$(LUA_LIBDIR)",
+        LUA_BINDIR="$(LUA_BINDIR)",
+        LUA_INCDIR="$(LUA_INCDIR)",
+        LUA="$(LUA)",
+        OPENSSL_INCDIR="$(OPENSSL_INCDIR)",
+        OPENSSL_LIBDIR="$(OPENSSL_LIBDIR)",
+    },
+    install_variables = {
+        INST_PREFIX="$(PREFIX)",
+        INST_BINDIR="$(BINDIR)",
+        INST_LIBDIR="$(LIBDIR)",
+        INST_LUADIR="$(LUADIR)",
+        INST_CONFDIR="$(CONFDIR)",
+    },
+}