Skip to content

Commit

Permalink
feat: release 2.14.1 (#7107)
Browse files Browse the repository at this point in the history
* fix(batch-requests): ignore "unix:" in the configuration

Signed-off-by: spacewander <[email protected]>

* chore(ci): apt update before install (#7080)

Signed-off-by: spacewander <[email protected]>

* feat: release 2.14.1

Signed-off-by: spacewander <[email protected]>

Co-authored-by: tzssangglass <[email protected]>
  • Loading branch information
spacewander and tzssangglass authored May 23, 2022
1 parent ea7f186 commit 42a6f57
Show file tree
Hide file tree
Showing 17 changed files with 140 additions and 21 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,6 @@ jobs:
rm -rf $(ls -1 --ignore=*.tgz --ignore=ci --ignore=t --ignore=utils --ignore=.github)
tar zxvf ${{ steps.branch_env.outputs.fullname }}
- name: Linux Get dependencies
run: sudo apt install -y cpanminus build-essential libncurses5-dev libreadline-dev libssl-dev perl libpcre3 libpcre3-dev libldap2-dev

- name: Build wasm code
if: matrix.os_name == 'linux_openresty'
run: |
Expand All @@ -101,6 +98,12 @@ jobs:
- name: Linux Before install
run: sudo ./ci/${{ matrix.os_name }}_runner.sh before_install

- name: Start CI env
run: |
# launch deps env
make ci-env-up
sudo ./ci/linux-ci-init-service.sh
- name: Start Dubbo Backend
if: matrix.os_name == 'linux_openresty'
run: |
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/cli-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ jobs:
run: |
project_compose_ci=ci/pod/docker-compose.common.yml make ci-env-up
- name: Linux Get dependencies
run: sudo apt install -y cpanminus build-essential libncurses5-dev libreadline-dev libssl-dev perl libpcre3 libpcre3-dev libldap2-dev

- name: Linux Install
run: |
sudo --preserve-env=OPENRESTY_VERSION \
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ jobs:
run: |
project_compose_ci=ci/pod/docker-compose.common.yml make ci-env-up
- name: Linux Get dependencies
run: sudo apt install -y cpanminus build-essential libncurses5-dev libreadline-dev libssl-dev perl libpcre3 libpcre3-dev libldap2-dev

- name: Linux Before install
run: sudo ./ci/${{ matrix.job_name }}_runner.sh before_install

Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/kubernetes-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ jobs:
- name: Linux Install
run: |
sudo apt install -y cpanminus build-essential libncurses5-dev libreadline-dev libssl-dev perl libpcre3 libpcre3-dev libldap2-dev
sudo cpanm --notest Test::Nginx >build.log 2>&1 || (cat build.log && exit 1)
sudo ./ci/${{ matrix.os_name }}_runner.sh before_install
sudo --preserve-env=OPENRESTY_VERSION ./ci/${{ matrix.os_name }}_runner.sh do_install
- name: Run test cases
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/tars-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ jobs:
- name: Linux Install
run: |
sudo apt install -y cpanminus build-essential libncurses5-dev libreadline-dev libssl-dev perl libpcre3 libpcre3-dev libldap2-dev
sudo cpanm --notest Test::Nginx >build.log 2>&1 || (cat build.log && exit 1)
sudo ./ci/${{ matrix.os_name }}_runner.sh before_install
sudo --preserve-env=OPENRESTY_VERSION ./ci/${{ matrix.os_name }}_runner.sh do_install
- name: Run test cases
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ title: Changelog

## Table of Contents

- [2.14.1](#2141)
- [2.14.0](#2140)
- [2.13.1](#2131)
- [2.13.0](#2130)
Expand Down Expand Up @@ -57,6 +58,12 @@ title: Changelog
- [0.7.0](#070)
- [0.6.0](#060)

## 2.14.1

### Bugfix

- The "unix:" in the `real_ip_from` configuration should not break the batch-requests plugin: [#7106](https://github.com/apache/apisix/pull/7106)

## 2.14.0

### Change
Expand Down
2 changes: 1 addition & 1 deletion apisix/cli/ops.lua
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ Please modify "admin_key" in conf/config.yaml .
if real_ip_from then
for _, ip in ipairs(real_ip_from) do
local _ip = cli_ip:new(ip)
if _ip:is_loopback() or _ip:is_unspecified() then
if _ip and _ip:is_loopback() or _ip:is_unspecified() then
pass_real_client_ip = true
end
end
Expand Down
2 changes: 1 addition & 1 deletion apisix/core/version.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
-- @module core.version

return {
VERSION = "2.14.0"
VERSION = "2.14.1"
}
5 changes: 5 additions & 0 deletions ci/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,8 @@ install_nodejs () {
}

GRPC_SERVER_EXAMPLE_VER=20210819

linux_get_dependencies () {
apt update
apt install -y cpanminus build-essential libncurses5-dev libreadline-dev libssl-dev perl libpcre3 libpcre3-dev libldap2-dev
}
2 changes: 2 additions & 0 deletions ci/linux_apisix_current_luarocks_runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
. ./ci/common.sh

do_install() {
linux_get_dependencies

export_or_prefix

./utils/linux-install-openresty.sh
Expand Down
2 changes: 2 additions & 0 deletions ci/linux_apisix_master_luarocks_runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
. ./ci/common.sh

do_install() {
linux_get_dependencies

export_or_prefix

./utils/linux-install-openresty.sh
Expand Down
6 changes: 2 additions & 4 deletions ci/linux_openresty_common_runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,9 @@
. ./ci/common.sh

before_install() {
sudo cpanm --notest Test::Nginx >build.log 2>&1 || (cat build.log && exit 1)
linux_get_dependencies

# launch deps env
make ci-env-up
./ci/linux-ci-init-service.sh
sudo cpanm --notest Test::Nginx >build.log 2>&1 || (cat build.log && exit 1)
}

do_install() {
Expand Down
2 changes: 1 addition & 1 deletion docs/en/latest/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "2.14.0",
"version": "2.14.1",
"sidebar": [
{
"type": "category",
Expand Down
7 changes: 7 additions & 0 deletions docs/zh/latest/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ title: CHANGELOG

## Table of Contents

- [2.14.1](#2141)
- [2.14.0](#2140)
- [2.13.1](#2131)
- [2.13.0](#2130)
Expand Down Expand Up @@ -57,6 +58,12 @@ title: CHANGELOG
- [0.7.0](#070)
- [0.6.0](#060)

## 2.14.1

### Bugfix

- `real_ip_from` 中配置 "unix: " 不应该导致 batch-requests 插件无法使用 [#7106](https://github.com/apache/apisix/pull/7106)

## 2.14.0

### Change
Expand Down
2 changes: 1 addition & 1 deletion docs/zh/latest/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "2.14.0",
"version": "2.14.1",
"sidebar": [
{
"type": "category",
Expand Down
102 changes: 102 additions & 0 deletions rockspec/apisix-2.14.1-0.rockspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
--
-- 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.14.1-0"
supported_platforms = {"linux", "macosx"}

source = {
url = "git://github.com/apache/apisix",
branch = "2.14.1",
}

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 = 6.0.2",
"lua-resty-template = 2.0",
"lua-resty-etcd = 1.6.2",
"api7-lua-resty-http = 0.2.0",
"lua-resty-balancer = 0.04",
"lua-resty-ngxvar = 0.5.2",
"lua-resty-jit-uuid = 0.0.7",
"lua-resty-healthcheck-api7 = 2.2.0",
"api7-lua-resty-jwt = 0.2.4",
"lua-resty-hmac-ffi = 0.05",
"lua-resty-cookie = 0.1.0",
"lua-resty-session = 3.10",
"opentracing-openresty = 0.1",
"lua-resty-radixtree = 2.8.2",
"lua-protobuf = 0.3.4",
"lua-resty-openidc = 1.7.2-1",
"luafilesystem = 1.7.0-2",
"api7-lua-tinyyaml = 0.4.2",
"nginx-lua-prometheus = 0.20220127",
"jsonschema = 0.9.8",
"lua-resty-ipmatcher = 0.6.1",
"lua-resty-kafka = 0.20-0",
"lua-resty-logger-socket = 2.0.1-0",
"skywalking-nginx-lua = 0.6.0",
"base64 = 1.5-2",
"binaryheap = 0.4",
"api7-dkjson = 0.1.1",
"resty-redis-cluster = 1.02-4",
"lua-resty-expr = 1.3.1",
"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.5.0",
"casbin = 1.26.0",
"api7-snowflake = 2.0-1",
"inspect == 3.1.1",
"lualdap = 1.2.6-1",
"lua-resty-rocketmq = 0.3.0-0",
"opentelemetry-lua = 0.1-3",
"net-url = 0.9-1",
"xml2lua = 1.5-2",
"nanoid = 0.1-1",
"lua-resty-mediador = 0.1.2-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 = {
ENV_INST_PREFIX="$(PREFIX)",
ENV_INST_BINDIR="$(BINDIR)",
ENV_INST_LIBDIR="$(LIBDIR)",
ENV_INST_LUADIR="$(LUADIR)",
ENV_INST_CONFDIR="$(CONFDIR)",
},
}
1 change: 1 addition & 0 deletions t/cli/test_validate_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ nginx_config:
- "0.0.0.0/0"
- "::"
- "::/0"
- "unix:"
' > conf/config.yaml

out=$(make init 2>&1 || true)
Expand Down

0 comments on commit 42a6f57

Please sign in to comment.