Commit Graph

803 Commits

Author SHA1 Message Date
罗泽轩
208b6b4d25
change: check metadata_schema with check_schema like the other schema (#4381)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-06-09 08:58:34 +08:00
罗泽轩
e6c69318e1
fix(admin): correct the resources' count field (#4385)
Here I use separate test files for the resources to ensure
the number of resource is 0.
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-06-08 16:54:29 +08:00
罗泽轩
c1f80850e5
test: add case for default health status (#4378)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-06-05 17:12:47 -04:00
罗泽轩
62ceab5710
fix(ext-plugin): missing schema check (#4359)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-06-03 09:39:51 +08:00
Demogorgon314
804437fe8a
perf: use events optimize nacos service discovery (#4347)
related #4346
2021-06-02 17:49:44 +08:00
罗泽轩
619ac84c88
fix(ext-plugin): when token is stale, refresh token and try again (#4345) 2021-06-01 19:46:26 +08:00
罗泽轩
397044a844
test: make t/config-center-yaml/plugin.t stable (#4352)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-06-01 18:44:23 +08:00
罗泽轩
5ebc4f65c1
fix(ext-plugin): pass environment variables (#4349)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-06-01 18:43:42 +08:00
Joshua Yang
91a048e68e
feat: allow to set custom timeout for route (#4340)
related #4258
2021-06-01 13:39:29 +08:00
Shuyang Wu
98d444751d
fix: add error handling when use customized config (#4342) 2021-06-01 08:55:06 +08:00
Demogorgon314
0d7fa659d5
feat: nacos discovery support group (#4325) 2021-05-31 19:12:10 +08:00
Yuelin Zheng
01360fb9ad
feat: support custom variables_hash_max_size parameters in config.yaml (#4344) 2021-05-31 19:06:39 +08:00
罗泽轩
3c857a8a13
fix: ensure the plugin is always reloaded (#4319)
* fix: ensure the plugin is always reloaded

Only trigger a reset from admin when the etcd's data is different
from the one of admin. So there is no need to add check in node side.

Fix #4314

Signed-off-by: spacewander <spacewanderlzx@gmail.com>

* fix reset check

Signed-off-by: spacewander <spacewanderlzx@gmail.com>

* fix error handling

Signed-off-by: spacewander <spacewanderlzx@gmail.com>

* update test

Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-05-31 16:37:23 +08:00
wang xiang
4d60170ee0
feat: add real_ip_recursive to nginx.conf (#4332) 2021-05-31 08:54:42 +08:00
batman-ezio
1266801154
change(echo): remove odd auth_value (#4055)
Co-authored-by: spacewander <spacewanderlzx@gmail.com>
2021-05-28 10:44:36 -04:00
Yuelin Zheng
7e4ff9880d
chore: support custom charset parameters in config.yaml (#4331) 2021-05-28 18:07:30 +08:00
Shuyang Wu
9a40fd7cb4
ci: chaos test could not directly read error.log (#4320)
Signed-off-by: yiyiyimu <wosoyoung@gmail.com>
2021-05-27 20:09:31 +08:00
Demogorgon314
0746f81ea3
feat: nacos discovery support namespace (#4313) 2021-05-27 20:08:12 +08:00
Gary-Airwallex
a1872a4842
feat: support appending query string in redirect (#4298) 2021-05-25 10:17:36 +08:00
罗泽轩
d6acd8d568
chore: sort plugin by priority and recommend priority for custom plugin (#4292)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-05-24 17:41:50 +08:00
nic-chen
52cb59213d
fix: invalid schema field for plugin fault-injection (#4291) 2021-05-23 19:16:48 +08:00
罗泽轩
916041d9ab
feat(ext-plugin): respawn with delay to avoid flushing error log (#4283)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-05-21 09:48:11 +08:00
Yuelin Zheng
5993b6a71c
feat: support the configuration of keepalive related parameters in upstream (#4261) 2021-05-18 14:28:30 +08:00
罗泽轩
fce9afa7fb
feat(traffic-split): support passing different host headers in multiple nodes (#4251)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-05-18 09:36:16 +08:00
Gary-Airwallex
b0cae100d2
feat: support uri encoding in redirect (#4244) 2021-05-17 22:42:16 +08:00
罗泽轩
5d58dacaa8
feat: avoid overriding customized X-Forwarded-Proto header (#4260)
Close #4252

Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-05-17 21:23:56 +08:00
罗泽轩
5a1fa2784e
fix: avoid 'using uninitialized "from_error_page" variable' (#4253)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-05-14 18:24:08 -04:00
罗泽轩
c70d797c7c
fix(DNS): support IPv6 resolver (#4242) 2021-05-14 08:54:01 +08:00
罗泽轩
045c35140f
feat: support passing different host headers in multiple nodes (#4208)
Fix #2620
Fix #4197
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-05-13 22:26:27 +08:00
罗泽轩
e748b71db1
test: make t/plugin/log-rotate.t stable (#4218)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-05-12 11:14:13 +08:00
罗泽轩
dd5f93b70b
chore: avoid creating lrucache twice (#4220)
Also refactor part of the code.

Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-05-12 09:46:34 +08:00
Peter Zhu
adc9977dd0
feat: add 50x html for error page (#4164) 2021-05-11 16:52:48 +08:00
罗泽轩
6a7db721bb
ci: remove whitelist of whitespace check (#4203) 2021-05-10 11:59:51 +08:00
罗泽轩
db5a5a9d21
feat(reponse-rewrite): allow using variable in the header (#4194)
* feat(reponse-rewrite): allow using variable in the header

Fix #3727

Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-05-10 10:27:41 +08:00
罗泽轩
1e944bfde8
feat: validate ssl certificate and more in the DP (#4202)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-05-09 15:54:24 -04:00
罗泽轩
19dbe3456f
fix: use original modifiedIndex if possible (#4192)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-05-09 10:31:33 +08:00
ken zhou
3ebe8004b1
feat: redirect plugin support regex (#4152)
Co-authored-by: jianzhou <zhoujian1@huya.com>
Co-authored-by: Alex Zhang <tokers@apache.org>
Co-authored-by: Yuelin Zheng <2226815922@qq.com>
Co-authored-by: 琚致远 <juzhiyuan@apache.org>
2021-05-07 15:55:38 -04:00
罗泽轩
232134ad6b
docs: avoid the misleading comment (#4189) 2021-05-07 08:55:17 +08:00
Alex Zhang
f7460eeee3
fix: init dns resolvers in stream subsystem (#4186) 2021-05-06 16:54:11 +08:00
Alex Zhang
3a3874a2cb
feat: support to use upstream_id in stream_route (#4121) 2021-05-06 10:30:46 +08:00
罗泽轩
ffed4383f1
feat(ext-plugin): implement the http-req-call protocol (#4183) 2021-05-06 10:07:56 +08:00
罗泽轩
50e9bfa54e
feat(ext-plugin): handle error response (#4179)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-05-06 10:00:12 +08:00
罗泽轩
f9148073aa
feat: patch tcp.sock.connect to use our DNS resolver (#4114)
Co-authored-by: Alex Zhang <tokers@apache.org>
2021-05-04 13:07:48 +08:00
罗泽轩
624f59fc78
feat: step 3, manage the plugin runner (#4163)
* feat: step 3, manage the plugin runner
* feat: step 4, add prepare_conf protocol
2021-05-04 10:41:08 +08:00
Joey
775c2e369d
fix(response-rewrite): properly base64 process the nil and empty body (#4151)
Co-authored-by: Alex Zhang <tokers@apache.org>
2021-04-29 21:08:12 +08:00
罗泽轩
f3b057609f
feat(ext-plugin): step 2, add basic structure (#4119)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-04-29 11:07:05 +08:00
tzssangglass
ac21146c35
fix: deal with etcd grants permissions with a different prefix than the one used by apisix, etcd will forbidden (#4154) 2021-04-29 09:27:54 +08:00
罗泽轩
fb920c6a31
fix: avoid being taint by empty global rule (#4087)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-04-25 16:51:20 +08:00
罗泽轩
725e9879cd
fix: remove unexpected blocking in background timer (#4106) 2021-04-23 11:12:46 +08:00
_chg_
b83ad3c39c
feat: jwt-auth support extension payload (#4099) 2021-04-23 09:13:50 +08:00