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

[apisix] 01/02: merge master

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

shuyangw pushed a commit to branch release/test
in repository https://gitbox.apache.org/repos/asf/apisix.git

commit 62e834345121966a6f8b06805380012602177120
Merge: e18fa5a c87e379
Author: yiyiyimu <wo...@gmail.com>
AuthorDate: Mon Mar 1 12:32:48 2021 +0800

    merge master
    
    Signed-off-by: yiyiyimu <wo...@gmail.com>

 .github/dependabot.yml                             |  10 +
 .github/workflows/build.yml                        |   2 +-
 .github/workflows/centos7-ci.yml                   |   4 +-
 .github/workflows/chaos.yml                        |   4 +-
 .github/workflows/fuzzing-ci.yaml                  |  64 ++
 .github/workflows/lint.yml                         |  31 +-
 .github/workflows/markdown-link-checker.yml        |  27 -
 .github/workflows/misc-checker.yml                 |  20 +
 .github/workflows/spellchecker.yml                 |  17 -
 .gitignore                                         |   2 +-
 .travis/apisix_cli_test/test_dns.sh                |  61 ++
 .travis/apisix_cli_test/test_main.sh               |  26 +-
 .../apisix_cli_test/test_validate_config.sh        |  30 +-
 .travis/linux_openresty_common_runner.sh           |  17 +-
 .travis/linux_tengine_runner.sh                    |   4 +
 Makefile                                           |  27 +-
 README.md                                          | 114 ++--
 apisix/admin/init.lua                              |   1 +
 apisix/admin/plugin_config.lua                     | 173 +++++
 apisix/admin/routes.lua                            |  17 +
 apisix/api_router.lua                              |  12 +-
 apisix/balancer.lua                                |  10 +-
 apisix/balancer/chash.lua                          |  39 +-
 apisix/balancer/least_conn.lua                     |   5 +-
 apisix/balancer/roundrobin.lua                     |   9 +-
 apisix/cli/etcd.lua                                |   2 +-
 apisix/cli/ngx_tpl.lua                             |  47 +-
 apisix/cli/ops.lua                                 |  20 +-
 apisix/control/v1.lua                              |   1 +
 apisix/core.lua                                    |   2 +-
 apisix/core/dns/client.lua                         | 149 +++++
 apisix/core/http.lua                               |  42 --
 apisix/core/id.lua                                 |   2 +-
 apisix/core/utils.lua                              |  58 +-
 apisix/core/version.lua                            |   2 +-
 apisix/discovery/consul_kv.lua                     | 413 ++++++++++++
 apisix/discovery/dns.lua                           |  90 +++
 apisix/init.lua                                    | 204 ++----
 apisix/plugin.lua                                  |  82 +++
 apisix/plugin_config.lua                           |  71 ++
 apisix/plugins/error-log-logger.lua                |   2 +-
 apisix/plugins/example-plugin.lua                  |   4 +-
 apisix/plugins/limit-count.lua                     |   3 +
 apisix/plugins/limit-count/limit-count-redis.lua   |   8 +
 apisix/plugins/sls-logger.lua                      |   2 +-
 apisix/plugins/traffic-split.lua                   |  31 +-
 apisix/plugins/zipkin.lua                          |  79 ++-
 apisix/plugins/zipkin/codec.lua                    |  14 +-
 apisix/router.lua                                  |   3 +
 apisix/schema_def.lua                              |  29 +-
 apisix/upstream.lua                                |  74 ++-
 apisix/utils/upstream.lua                          |   7 +-
 bin/apisix                                         |   2 +-
 conf/config-default.yaml                           |   8 +-
 doc/README.md                                      | 109 ---
 doc/images/apisix.png                              | Bin 179067 -> 0 bytes
 doc/zh-cn/README.md                                | 110 ----
 doc/zh-cn/plugins/limit-count.md                   | 201 ------
 {doc => docs/assets}/images/apache.png             | Bin
 docs/assets/images/apisix.png                      | Bin 0 -> 378174 bytes
 .../assets}/images/aws-caddy-php-welcome-page.png  | Bin
 {doc => docs/assets}/images/aws-define-route.png   | Bin
 {doc => docs/assets}/images/aws-define-service.png | Bin
 {doc => docs/assets}/images/aws-fargate-cdk.png    | Bin
 {doc => docs/assets}/images/aws-nlb-ip-addr.png    | Bin
 {doc => docs/assets}/images/benchmark-1.jpg        | Bin
 {doc => docs/assets}/images/benchmark-2.jpg        | Bin
 {doc => docs/assets}/images/consumer-internal.png  | Bin
 {doc => docs/assets}/images/consumer-who.png       | Bin
 .../assets}/images/contributor-over-time.png       | Bin
 {doc => docs/assets}/images/dashboard.png          | Bin
 {doc => docs/assets}/images/discovery-cn.png       | Bin
 {doc => docs/assets}/images/discovery.png          | Bin
 {doc => docs/assets}/images/flamegraph-1.jpg       | Bin
 {doc => docs/assets}/images/flamegraph-2.jpg       | Bin
 {doc => docs/assets}/images/flow-load-plugin.png   | Bin
 .../assets}/images/flow-plugin-internal.png        | Bin
 {doc => docs/assets}/images/latency-1.jpg          | Bin
 {doc => docs/assets}/images/latency-2.jpg          | Bin
 .../assets}/images/plugin/authz-keycloak.png       | Bin
 .../assets}/images/plugin/basic-auth-1.png         | Bin
 .../assets}/images/plugin/basic-auth-2.png         | Bin
 {doc => docs/assets}/images/plugin/grafana_1.png   | Bin
 {doc => docs/assets}/images/plugin/grafana_2.png   | Bin
 {doc => docs/assets}/images/plugin/grafana_3.png   | Bin
 {doc => docs/assets}/images/plugin/jwt-auth-1.png  | Bin
 {doc => docs/assets}/images/plugin/jwt-auth-2.png  | Bin
 {doc => docs/assets}/images/plugin/key-auth-1.png  | Bin
 {doc => docs/assets}/images/plugin/key-auth-2.png  | Bin
 .../assets}/images/plugin/limit-conn-1.png         | Bin
 .../assets}/images/plugin/limit-conn-2.png         | Bin
 .../assets}/images/plugin/limit-count-1.png        | Bin
 .../assets}/images/plugin/limit-count-2.png        | Bin
 {doc => docs/assets}/images/plugin/limit-req-1.png | Bin
 {doc => docs/assets}/images/plugin/limit-req-2.png | Bin
 {doc => docs/assets}/images/plugin/oauth-1.png     | Bin
 .../assets}/images/plugin/prometheus-1.png         | Bin
 .../assets}/images/plugin/prometheus-2.png         | Bin
 .../assets}/images/plugin/prometheus01.png         | Bin
 .../assets}/images/plugin/prometheus02.png         | Bin
 .../assets}/images/plugin/skywalking-1.png         | Bin
 .../assets}/images/plugin/skywalking-2.png         | Bin
 .../assets}/images/plugin/skywalking-3.png         | Bin
 .../assets}/images/plugin/skywalking-4.png         | Bin
 .../assets}/images/plugin/skywalking-5.png         | Bin
 .../assets}/images/plugin/sls-logger-1.png         | Bin
 {doc => docs/assets}/images/plugin/wolf-rbac-1.png | Bin
 {doc => docs/assets}/images/plugin/wolf-rbac-2.png | Bin
 {doc => docs/assets}/images/plugin/zipkin-1.jpg    | Bin
 {doc => docs/assets}/images/plugin/zipkin-1.png    | Bin
 {doc => docs/assets}/images/plugin/zipkin-2.jpg    | Bin
 {doc => docs/assets}/images/plugin/zipkin-2.png    | Bin
 {doc => docs/assets}/images/routes-example.png     | Bin
 {doc => docs/assets}/images/service-example.png    | Bin
 {doc => docs/assets}/images/upstream-example.png   | Bin
 .../assets/other}/apisix-plugin-design.graffle     | Bin
 .../other}/json/apisix-grafana-dashboard.json      |   0
 CHANGELOG.md => docs/en/latest/CHANGELOG.md        |  75 ++-
 CODE_STYLE.md => docs/en/latest/CODE_STYLE.md      |   8 +-
 FAQ.md => docs/en/latest/FAQ.md                    |  30 +-
 {doc => docs/en/latest}/admin-api.md               |  40 +-
 {doc => docs/en/latest}/architecture-design.md     | 227 +++++--
 {doc => docs/en/latest}/aws.md                     |  16 +-
 {doc => docs/en/latest}/batch-processor.md         |   6 +-
 {doc => docs/en/latest}/benchmark.md               |  18 +-
 docs/en/latest/config.json                         | 159 +++++
 {doc => docs/en/latest}/control-api.md             |   4 +
 .../en/latest}/customize-nginx-configuration.md    |   8 +-
 {doc => docs/en/latest}/debug-function.md          |   6 +-
 {doc => docs/en/latest}/discovery.md               |  28 +-
 docs/en/latest/discovery/consul_kv.md              | 150 +++++
 docs/en/latest/dns.md                              | 137 ++++
 .../plugins-hmac-auth-generate-signature.md        |   6 +-
 {doc => docs/en/latest}/getting-started.md         |  10 +-
 {doc => docs/en/latest}/grpc-proxy.md              |  35 +-
 {doc => docs/en/latest}/health-check.md            |   6 +-
 {doc => docs/en/latest}/how-to-build.md            |  22 +-
 {doc => docs/en/latest}/https.md                   |   8 +-
 {doc => docs/en/latest}/install-dependencies.md    |  30 +-
 {doc => docs/en/latest}/mtls.md                    |   8 +-
 {doc => docs/en/latest}/plugin-develop.md          |  73 ++-
 {doc => docs/en/latest}/plugin-interceptors.md     |   8 +-
 {doc => docs/en/latest}/plugins.md                 |   8 +-
 {doc => docs/en/latest}/plugins/api-breaker.md     |   8 +-
 {doc => docs/en/latest}/plugins/authz-keycloak.md  |  10 +-
 {doc => docs/en/latest}/plugins/basic-auth.md      |  12 +-
 {doc => docs/en/latest}/plugins/batch-requests.md  |   8 +-
 .../en/latest}/plugins/consumer-restriction.md     |   8 +-
 {doc => docs/en/latest}/plugins/cors.md            |   8 +-
 {doc => docs/en/latest}/plugins/dubbo-proxy.md     |   6 +-
 {doc => docs/en/latest}/plugins/echo.md            |  10 +-
 .../en/latest}/plugins/error-log-logger.md         |  10 +-
 {doc => docs/en/latest}/plugins/fault-injection.md |   6 +-
 {doc => docs/en/latest}/plugins/grpc-transcode.md  |   6 +-
 {doc => docs/en/latest}/plugins/hmac-auth.md       |   8 +-
 {doc => docs/en/latest}/plugins/http-logger.md     |   8 +-
 {doc => docs/en/latest}/plugins/ip-restriction.md  |   8 +-
 {doc => docs/en/latest}/plugins/jwt-auth.md        |  12 +-
 {doc => docs/en/latest}/plugins/kafka-logger.md    |   8 +-
 {doc => docs/en/latest}/plugins/key-auth.md        |  12 +-
 {doc => docs/en/latest}/plugins/limit-conn.md      |  30 +-
 {doc => docs/en/latest}/plugins/limit-count.md     |  58 +-
 {doc => docs/en/latest}/plugins/limit-req.md       |  12 +-
 {doc => docs/en/latest}/plugins/log-rotate.md      |   6 +-
 {doc => docs/en/latest}/plugins/mqtt-proxy.md      |   8 +-
 {doc => docs/en/latest}/plugins/node-status.md     |   8 +-
 {doc => docs/en/latest}/plugins/openid-connect.md  |  10 +-
 {doc => docs/en/latest}/plugins/prometheus.md      |  24 +-
 {doc => docs/en/latest}/plugins/proxy-cache.md     |   8 +-
 {doc => docs/en/latest}/plugins/proxy-mirror.md    |   8 +-
 {doc => docs/en/latest}/plugins/proxy-rewrite.md   |  10 +-
 {doc => docs/en/latest}/plugins/redirect.md        |   8 +-
 .../en/latest}/plugins/referer-restriction.md      |   8 +-
 {doc => docs/en/latest}/plugins/request-id.md      |   8 +-
 .../en/latest}/plugins/request-validation.md       |   8 +-
 .../en/latest}/plugins/response-rewrite.md         |   8 +-
 {doc => docs/en/latest}/plugins/server-info.md     |   8 +-
 {doc => docs/en/latest}/plugins/serverless.md      |  16 +-
 {doc => docs/en/latest}/plugins/skywalking.md      |  22 +-
 {doc => docs/en/latest}/plugins/sls-logger.md      |  10 +-
 {doc => docs/en/latest}/plugins/syslog.md          |   8 +-
 {doc => docs/en/latest}/plugins/tcp-logger.md      |   8 +-
 {doc => docs/en/latest}/plugins/traffic-split.md   |  56 +-
 {doc => docs/en/latest}/plugins/udp-logger.md      |   8 +-
 {doc => docs/en/latest}/plugins/uri-blocker.md     |   8 +-
 {doc => docs/en/latest}/plugins/wolf-rbac.md       |  12 +-
 {doc => docs/en/latest}/plugins/zipkin.md          |  16 +-
 {doc => docs/en/latest}/powered-by.md              |  29 +-
 {doc => docs/en/latest}/profile.md                 |   6 +-
 {doc => docs/en/latest}/router-radixtree.md        |   6 +-
 {doc => docs/en/latest}/stand-alone.md             |   8 +-
 {doc => docs/en/latest}/stream-proxy.md            |   8 +-
 docs/es/latest/README.md                           | 348 ++++++++++
 docs/es/latest/config.json                         |   4 +
 CHANGELOG_CN.md => docs/zh/latest/CHANGELOG.md     |  77 ++-
 CODE_STYLE_CN.md => docs/zh/latest/CODE_STYLE.md   |   8 +-
 FAQ_CN.md => docs/zh/latest/FAQ.md                 |  28 +-
 README_CN.md => docs/zh/latest/README.md           | 120 ++--
 {doc/zh-cn => docs/zh/latest}/admin-api.md         |  42 +-
 .../zh/latest}/architecture-design.md              | 147 ++++-
 {doc/zh-cn => docs/zh/latest}/batch-processor.md   |   8 +-
 {doc/zh-cn => docs/zh/latest}/benchmark.md         |  18 +-
 docs/zh/latest/config.json                         | 151 +++++
 .../zh/latest}/customize-nginx-configuration.md    |   8 +-
 {doc/zh-cn => docs/zh/latest}/debug-function.md    |   6 +-
 {doc/zh-cn => docs/zh/latest}/discovery.md         |  18 +-
 {doc/zh-cn => docs/zh/latest}/getting-started.md   |   9 +-
 {doc/zh-cn => docs/zh/latest}/grpc-proxy.md        |  36 +-
 {doc/zh-cn => docs/zh/latest}/health-check.md      |   6 +-
 {doc/zh-cn => docs/zh/latest}/how-to-build.md      |  22 +-
 {doc/zh-cn => docs/zh/latest}/https.md             |   8 +-
 .../zh/latest}/install-dependencies.md             |  30 +-
 {doc/zh-cn => docs/zh/latest}/mtls.md              |   8 +-
 {doc/zh-cn => docs/zh/latest}/plugin-develop.md    |  71 +-
 .../zh/latest}/plugin-interceptors.md              |   8 +-
 {doc/zh-cn => docs/zh/latest}/plugins.md           |   6 +-
 .../zh/latest}/plugins/api-breaker.md              |   8 +-
 .../zh/latest}/plugins/authz-keycloak.md           |  10 +-
 .../zh-cn => docs/zh/latest}/plugins/basic-auth.md |  14 +-
 .../zh/latest}/plugins/batch-requests.md           |   8 +-
 .../zh/latest}/plugins/consumer-restriction.md     |   8 +-
 {doc/zh-cn => docs/zh/latest}/plugins/cors.md      |   8 +-
 {doc/zh-cn => docs/zh/latest}/plugins/echo.md      |  10 +-
 .../zh/latest}/plugins/error-log-logger.md         |  10 +-
 .../zh/latest}/plugins/fault-injection.md          |   8 +-
 .../zh/latest}/plugins/grpc-transcode.md           |   8 +-
 {doc/zh-cn => docs/zh/latest}/plugins/hmac-auth.md |   8 +-
 .../zh/latest}/plugins/http-logger.md              |   8 +-
 .../zh/latest}/plugins/ip-restriction.md           |   8 +-
 {doc/zh-cn => docs/zh/latest}/plugins/jwt-auth.md  |  12 +-
 .../zh/latest}/plugins/kafka-logger.md             |   8 +-
 {doc/zh-cn => docs/zh/latest}/plugins/key-auth.md  |  12 +-
 .../zh-cn => docs/zh/latest}/plugins/limit-conn.md |  26 +-
 docs/zh/latest/plugins/limit-count.md              | 205 ++++++
 {doc/zh-cn => docs/zh/latest}/plugins/limit-req.md |  12 +-
 .../zh-cn => docs/zh/latest}/plugins/log-rotate.md |   8 +-
 .../zh-cn => docs/zh/latest}/plugins/mqtt-proxy.md |   8 +-
 .../zh/latest}/plugins/node-status.md              |  10 +-
 .../zh/latest}/plugins/openid-connect.md           |  10 +-
 .../zh-cn => docs/zh/latest}/plugins/prometheus.md |  24 +-
 .../zh/latest}/plugins/proxy-cache.md              |   8 +-
 .../zh/latest}/plugins/proxy-mirror.md             |   8 +-
 .../zh/latest}/plugins/proxy-rewrite.md            |  10 +-
 {doc/zh-cn => docs/zh/latest}/plugins/redirect.md  |   8 +-
 .../zh/latest}/plugins/referer-restriction.md      |   8 +-
 .../zh-cn => docs/zh/latest}/plugins/request-id.md |   8 +-
 .../zh/latest}/plugins/request-validation.md       |   8 +-
 .../zh/latest}/plugins/response-rewrite.md         |   8 +-
 .../zh/latest}/plugins/server-info.md              |  10 +-
 .../zh-cn => docs/zh/latest}/plugins/serverless.md |   8 +-
 .../zh-cn => docs/zh/latest}/plugins/skywalking.md |  22 +-
 .../zh-cn => docs/zh/latest}/plugins/sls-logger.md |  12 +-
 {doc/zh-cn => docs/zh/latest}/plugins/syslog.md    |   8 +-
 .../zh-cn => docs/zh/latest}/plugins/tcp-logger.md |   8 +-
 .../zh/latest}/plugins/traffic-split.md            |  56 +-
 .../zh-cn => docs/zh/latest}/plugins/udp-logger.md |   8 +-
 .../zh/latest}/plugins/uri-blocker.md              |   8 +-
 {doc/zh-cn => docs/zh/latest}/plugins/wolf-rbac.md |  12 +-
 {doc/zh-cn => docs/zh/latest}/plugins/zipkin.md    |  16 +-
 {doc/zh-cn => docs/zh/latest}/profile.md           |   6 +-
 {doc/zh-cn => docs/zh/latest}/stand-alone.md       |   8 +-
 {doc/zh-cn => docs/zh/latest}/stream-proxy.md      |  11 +-
 kubernetes/README.md                               |   2 +-
 ...six-master-0.rockspec => apisix-2.3-0.rockspec} |   7 +-
 rockspec/apisix-master-0.rockspec                  |   1 +
 t/APISIX.pm                                        |  10 +
 t/admin/balancer.t                                 |   2 +
 t/admin/plugin-configs.t                           | 309 +++++++++
 t/admin/routes2.t                                  |  34 +
 t/chaos/kill-etcd_test.go                          |  17 +-
 t/chaos/utils.go                                   |  25 +-
 t/config-center-yaml/plugin-configs.t              | 149 +++++
 t/config-center-yaml/route.t                       |  22 +
 t/control/schema.t                                 |   1 +
 t/core/config-default.t                            |  50 ++
 t/core/utils.t                                     |  36 +-
 t/coredns/db.test.local                            |  31 +
 t/discovery/consul_kv.t                            | 537 +++++++++++++++
 t/discovery/dns/mix.t                              | 128 ++++
 t/discovery/dns/sanity.t                           | 268 ++++++++
 t/fuzzing/public.py                                |  70 ++
 t/fuzzing/serverless_route_test.py                 |  92 +++
 t/fuzzing/simpleroute_test.py                      |  68 ++
 doc/plugins.md => t/fuzzing/upstream/nginx.conf    |  55 +-
 t/fuzzing/vars_route_test.py                       |  75 +++
 t/grpc-proxy-test.sh                               |  16 +-
 t/lib/dubbo-backend/dubbo-backend-provider/pom.xml |   4 +-
 .../META-INF/spring/dubbo-demo-provider.xml        |   2 +-
 t/lib/test_admin.lua                               |  17 +-
 t/node/chash-balance.t                             |  60 ++
 t/node/global-rule.t                               | 162 ++++-
 t/node/grpc-proxy.t                                |  38 ++
 t/node/healthcheck.t                               |   2 +-
 t/node/{proxy_https.t => https-proxy.t}            |  37 ++
 t/node/least_conn.t                                |   2 +-
 t/node/plugin-configs.t                            | 125 ++++
 t/node/route-domain-with-local-dns.t               |   4 +-
 t/node/route-domain.t                              |   4 +-
 t/node/upstream-discovery.t                        |  47 ++
 t/node/upstream-domain-with-special-dns.t          | 162 +++++
 t/node/upstream-node-dns.t                         | 142 ----
 t/plugin/cors.t                                    |   2 +-
 t/plugin/dubbo-proxy/route.t                       |   2 +-
 t/plugin/echo.t                                    |   6 +-
 t/plugin/example.t                                 |   4 +-
 t/plugin/ip-restriction.t                          |   6 +-
 t/plugin/key-auth-upstream-domain-node.t           |  31 +-
 t/plugin/limit-count-redis2.t                      | 190 ++++++
 t/plugin/plugin.t                                  |  25 +
 t/plugin/prometheus.t                              | 668 -------------------
 t/plugin/prometheus2.t                             | 730 +++++++++++++++++++++
 .../proxy-rewrite2.t}                              |  49 +-
 t/plugin/traffic-split.t                           | 503 +++++++++++++-
 t/plugin/zipkin2.t                                 | 142 ++++
 .../script.t}                                      |  71 +-
 t/stream-plugin/plugin.t                           |  24 +
 utils/centos7-ci.sh                                |   2 +-
 utils/linux-install-luarocks.sh                    |  12 +-
 utils/linux-install-openresty.sh                   |  10 +-
 319 files changed, 8922 insertions(+), 2587 deletions(-)

diff --cc Makefile
index af2835f,bfd0c36..4632210
--- a/Makefile
+++ b/Makefile
@@@ -235,7 -245,6 +245,10 @@@ compress-tar
  	./apisix \
  	./bin \
  	./conf \
++<<<<<<< HEAD
 +	./doc \
++=======
++>>>>>>> c87e3798ee4db6c124e3550cf62a3c166fdbfd88
  	./rockspec \
  	LICENSE \
  	Makefile \