Commit Graph

1714 Commits

Author SHA1 Message Date
罗泽轩
33d70d17f8
fix: we should check the length of input before calling memcmp (#2925)
To avoid accessing memory which is out of bound.
2020-12-02 16:30:39 +08:00
罗泽轩
bbbd10e1b3
feat: validate the operator in vars (#2911)
Fix #2878
2020-12-02 15:37:07 +08:00
罗泽轩
a019b4e4d0
test: improve chash-balance cases (#2920)
Fix #2914
2020-12-02 15:12:00 +08:00
Jens Keiner
eebaaf7512
chore: Fix Authorization header name in auth-keycloak plugin. (#2913)
The `auth-keycloak` plugin expects to find a bearer token in the standard `Authorization` header. However, it tries to obtain a token from a header called `authorization`, i.e. not properly capitalized. This PR fixes the capitalization so the correct header is used; cf. https://en.wikipedia.org/wiki/List_of_HTTP_header_fields.
2020-12-02 07:41:29 +08:00
Mark Huang
3de6842092
feat: confirm only part of the etcd kvs (#2846)
* feat: confirm part of the etcd kvs

* feat: check etcd keys by grep
2020-12-01 23:34:48 +08:00
Jens Keiner
3279f9417a
chore: change phase to access from rewrite(authz-keycloak plugin) (#2910)
Remove auth designation since this plugin is concerned with authorization, not authentication.
2020-12-01 23:11:15 +08:00
Alex Zhang
fa30c102e0
fix: fixed the non effective config update in http-logger (#2901)
* change: changed log level when delete stale batch processor objects

close #2870
2020-12-01 23:06:33 +08:00
Jens Keiner
c140d0eddc
fix: Basic auth plugin should run in rewrite phase. (#2905) 2020-12-01 23:03:45 +08:00
罗泽轩
ddfeb5de1d
fix: reject "" for route's remote_addrs (#2907)
This change imroves the IP schema validation.
2020-12-01 15:44:50 +08:00
罗泽轩
a63b6b8c6e
feat: allow create consumers with multiple auth plugins (#2898)
Fix #2850
2020-12-01 15:42:59 +08:00
Jens Keiner
1526ea5e0d
Change phase from access to rewrite. (#2904) 2020-12-01 14:57:45 +08:00
Wen Ming
91b7313e05
release: release 2.1 version. (#2887) 2020-12-01 11:52:49 +08:00
tzssangglass
9dfe697b64
feat: allow user to specify APISIX id in config.yaml (#2893)
fix #2810
2020-11-30 19:08:04 +08:00
Radhika
5de6ee467f
docs: corrected link in architecture-design (#2896)
fix https://github.com/apache/apisix/issues/2843
2020-11-30 19:01:28 +08:00
Yuelin Zheng
c8e7e0377d
docs(http-logger): Improve the attribute description of the document. (#2891)
close #2879
2020-11-30 18:59:49 +08:00
dabue
e66dd9a314
feat: implement error-log-logger plug-in (#2592) 2020-11-30 14:43:16 +08:00
罗泽轩
f267291f3a
feat(prometheus): allow customizing Prometheus export uri (#2826)
* feat(prometheus): allow customizing Prometheus export uri

Close #2296.
2020-11-30 14:35:06 +08:00
罗泽轩
44855ec1a7
ci: make it work under OpenResty 1.19 (#2768) 2020-11-30 10:32:35 +08:00
super_mario
ce1d40b42f
fix: Synchronize with english doc (#2877) 2020-11-29 11:41:13 +08:00
罗泽轩
6f2316b5b7
test: update apisix_cli_test.sh to fix CI (#2885)
fix https://github.com/apache/apisix/issues/2888
2020-11-28 23:28:48 +08:00
Wen Ming
d2ea344fc1
Revert "refactor: separate admin and proxy port in default config (#2802)" (#2871)
This reverts commit b13f167445.

Co-authored-by: Vinci Xu <277040271@qq.com>
2020-11-28 19:05:14 +08:00
罗泽轩
1c211ff7b1
fix: validate plugin configuration in the DP (#2856)
Fix #2834
2020-11-28 13:29:00 +08:00
罗泽轩
f4dfcfbb6b
fix: we didn't initialize custom variable for admin access log (#2874)
* fix: we didn't initialize custom variable for admin access log

* t
2020-11-28 13:12:17 +08:00
Mark Huang
89d49ed9a0
chore: lint kafka-logger (#2876) 2020-11-27 19:37:03 +08:00
Yuelin Zheng
d7e59113d5
feat: How to distinguish whether the 5xx status code (eg 500) comes from upstream or apisix (#2817)
close #2501
2020-11-27 18:33:02 +08:00
罗泽轩
35269581e2
test: increase waiting time to make plugins reload test stable (#2868) 2020-11-27 17:36:58 +08:00
Yuelin Zheng
ef87048b00
docs(kafka-logger): optimize the description of the attribute. (#2867)
close #2861
2020-11-27 16:45:32 +08:00
willmafh
f4161d39a4
chore: minor change in bin/apisix (#2847) 2020-11-25 19:27:04 +08:00
罗泽轩
c6c2e3cfb2
feat: support include other nginx config (#2803)
Close #2565
Close #1620
2020-11-25 19:23:31 +08:00
YuanSheng Wang
e47bd1da69
chore: If the PR not backward compatible, please discuss on the maili… (#2849) 2020-11-25 19:23:05 +08:00
YuanSheng Wang
0d79edf8e5
docs: uses etcd to implement millisecond configuration sync(FAQ) (#2844) 2020-11-25 17:20:49 +08:00
罗泽轩
67eb787c38
fix: distinguish different routes which has the same service (#2840)
Fix #2828.

The bug is introduced in #2121.

Can't be reproduced in over 1 millions requests after applying this
patch.
2020-11-25 14:32:11 +08:00
罗泽轩
1ad90f7206
chore: sort default plugin list for easier search (#2824) 2020-11-25 14:11:24 +08:00
HelloBug0
1d0c719a7b
feat: enable access log or not (#2769)
Fix #2713.
2020-11-25 13:10:08 +08:00
Yuelin Zheng
72f907ea8b
feat: the request parameter participating in the signature can be the parameter name (#2830)
close #2823
2020-11-25 13:05:03 +08:00
罗泽轩
3b4bfaf185
fix: we should keep 'enable_websocket' for compatibility (#2836) 2020-11-25 11:31:47 +08:00
罗泽轩
ba114fc980
feat: add rewritten proxy url in access log (#2838)
This helps us to locate the problem.
2020-11-25 10:05:22 +08:00
idbeta
09bf229d91
docs: add a space so that the example link is displayed correctly (#2837) 2020-11-25 09:37:37 +08:00
Alex Zhang
296f535d39
refactor: moved etcd initialiation to apisix/cli/etcd.lua (#2685) 2020-11-24 19:13:48 +08:00
罗泽轩
8b3bccd20f
test: check the behavior when connecting to old etcd (#2835) 2020-11-24 18:48:45 +08:00
罗泽轩
1ee7ead1e6
chore: remove stale access to modifiedIndex_org (#2825)
Since c5dcced1cf,
modifiedIndex_org is only accessed in this place without any assignment.
2020-11-24 16:57:12 +08:00
Vinci Xu
b13f167445
refactor: separate admin and proxy port in default config (#2802)
change all admin 9080 to 9180
2020-11-24 16:51:47 +08:00
Peter Zhu
95226d950f
fix: check decrypt key to prevent lua thread aborted (#2815)
Fix #2791
2020-11-24 16:43:29 +08:00
罗泽轩
39840f9d8d
feat: allow whitespace-wrapped variables in config.yaml (#2811) 2020-11-24 16:06:11 +08:00
Yuelin Zheng
dc5fee27a2
feat(kafka-logger): the key field should be optional. (#2807)
fix #2778
2020-11-24 16:05:52 +08:00
Liu Hong
82628f076b
fix: min_etcd_version is a nil value when apisix init_etcd (#2831)
Signed-off-by: liuhong <liuhong_yewu@cmss.chinamobile.com>
2020-11-24 15:14:32 +08:00
罗泽轩
c8823d0eed
fix(consumer): keep the id field for compatibility (#2829) 2020-11-24 11:02:44 +08:00
罗泽轩
d7593a0ac3
feat: support '.' in id definition (#2795)
* feat: support '.' in id definition

Close #2274.

* tweak test
2020-11-23 22:36:40 +08:00
Peter Zhu
2649d1cf1b
docs: fix stream proxy example (#2819)
fix #2808
2020-11-23 11:18:40 +08:00
HelloBug0
7cd7a96242
docs: modify a typo (#2813) 2020-11-23 09:48:26 +08:00