Alex Zhang
7cb956302f
style: fixed some code style problems ( #2438 )
2020-10-16 22:16:43 +08:00
RocFang
1afa8f7727
style: move localized require in front of directives which calling it. ( #2414 )
2020-10-16 15:16:09 +08:00
YuanSheng Wang
78910d828b
CI: turn off the Lua code coverage check in CI. ( #2435 )
...
We don't enable Lua code override now, its output is unstable and this is unacceptable.
Disabling the Lua code override first will make CI run faster.
* test: print more information when failed.
2020-10-16 09:59:30 +08:00
罗泽轩
b5fe9ced45
change: use 405 as the error code for unsupported HTTP method ( #2418 )
2020-10-16 09:02:35 +08:00
罗泽轩
85ed4cc576
doc: correct the doc of plugin ip-restriction ( #2420 )
2020-10-14 21:37:55 +08:00
罗泽轩
4f535e7401
fix(prometheus): don't provide etcd metrics when you don't use it ( #2396 )
2020-10-14 16:02:08 +08:00
Shuyang Wu
ef6bc442ae
chore: fix broken link ( #2404 )
...
Signed-off-by: yiyiyimu <wosoyoung@gmail.com>
2020-10-14 08:32:51 +08:00
RocFang
4776dc8a66
fix: it does'nt make sence to compare etcd_version, since it's nil. ( #2390 )
...
no need to define a new local cluster_version since it's defined previously.
2020-10-13 23:15:42 +08:00
YuanSheng Wang
5614a95758
feat(http-logger): support for specified the log formats via admin API ( #2309 )
...
curl http://****/apisix/admin/plugin_metadata/http-logger -d '
{
"log_format": {
"host": "$host",
"@timestamp": "$time_iso8601",
"client_ip": "$remote_addr"
}
}'
when we enabled plugin http-logger, we will get the message body like:
{"host":"localhost","@timestamp":"2020-09-23T18:29:07-04:00","client_ip":"127.0.0.1","route_id":"1"}
{"host":"localhost","@timestamp":"2020-09-23T18:29:07-04:00","client_ip":"127.0.0.1","route_id":"1"}
2020-10-13 14:21:54 +08:00
li1234yun
97cec5d422
doc: added milestone info in README.md and README_CN.md ( #2401 )
2020-10-13 10:38:56 +08:00
dabue
40577ee1e2
chore: remove the folder 'logs' in root and replace baidu.com with github.com in test cases ( #2374 )
...
* rm log
* replace baidu.com to github.com in testcases
* keep folder logs
* remove the folder logs
* update Makefile
2020-10-12 23:49:43 +08:00
罗泽轩
b8e4b8589d
change(hmac-auth): split schema to adapt different occasions ( #2386 )
2020-10-11 19:18:37 +08:00
罗泽轩
abf5674b63
style: tweak error log in kafka-logger ( #2387 )
2020-10-11 17:22:52 +08:00
YuanSheng Wang
72eef02061
CI: run the APISIX instance in an empty folder for linux_apisix_current_luarocks
. ( #2385 )
...
fix #2384
2020-10-11 12:59:54 +08:00
YuanSheng Wang
d6b00bb6bc
bugfix: install the Lua files in apisix/ssl/router
. ( #2383 )
...
fix #2382
2020-10-11 12:27:03 +08:00
RocFang
647d8d9a62
bugfix: check every etcd version, rather than only check the first one ( #2380 )
2020-10-10 23:53:10 +08:00
罗泽轩
ac38c299b4
change: refactor router ( #2367 )
...
1. rename http/router/radixtree_sni -> ssl/router/radixtree_sni
2. extract API router out from the host/uri router so that we can hide the
implementation details and reduce duplicate code.
2020-10-10 23:43:00 +08:00
RocFang
f05cba0145
fix: wget -O always leave a file enven though download fail ( #2376 )
2020-10-10 20:49:14 +08:00
YuanSheng Wang
ea25f85529
chore: upload apisix logo image ( #2371 )
...
added link in readme.
2020-10-10 16:18:51 +08:00
Wen Ming
f2e65d6e0a
doc: add user story about eFactory. ( #2373 )
2020-10-10 16:18:00 +08:00
YuanSheng Wang
251625d8ab
bugfix: set random seed for each worker process at init_worker
phase, only init
phase is not enough. ( #2357 )
2020-10-09 16:39:49 +08:00
YuanSheng Wang
73dfdf2185
feat: add new filed meta_style
, collect the request information with original
style. ( #2364 )
2020-10-09 16:33:07 +08:00
Alex Zhang
87a107ff4b
optimize: use table.isarray to check whether table is an array. ( #2365 )
2020-10-09 15:58:40 +08:00
Joey
9d0d351226
Add lables for Route/Service/Consumer/SSL ( #2345 )
...
Signed-off-by: imjoey <majunjiev@gmail.com>
2020-10-09 14:05:14 +08:00
罗泽轩
3d6c40deb5
doc(ip-restriction): IPv6 already supported ( #2363 )
2020-10-07 21:35:27 +08:00
罗泽轩
5b97223592
feat: implemented referer-restriction
plugin ( #2352 )
2020-10-06 18:20:17 +08:00
Firstsawyou
c3de84e285
feature: support consumer_name
as key for limit-req
plugin. ( #2270 )
...
fix #2267
2020-10-06 18:18:22 +08:00
L
720d135fd2
fix: Update error message when Route doesn't exist ( #2304 )
...
Fixes #2302
Co-authored-by: YuanSheng Wang <membphis@gmail.com>
2020-10-06 11:48:52 +08:00
罗泽轩
16a2d4dfa9
feat: also call picker.after_balance before retry ( #2350 )
2020-10-05 23:19:40 +08:00
YuanSheng Wang
50c99a5e3b
bugfix: create etcd object in xpcall
, this step may fail ( #2312 )
...
* bugfix: create the etcd object in `xpcall`, it may fail, the return values of `etcd.new` should be `res, err`.
fix issue: #2310
1. The old process, if creating etcd fails, etcd data will no longer be synchronized. We need to create the etcd object in xpcall.
2. the return value should be res, err of etcd.new.
* test: old test case is unstable, should delete some checkpoint which is wrong.
2020-10-05 10:22:28 +08:00
YuanSheng Wang
5d172d606f
test: use the absolute path of $apisix_home
instead of .
, search the lua source fine in the folder $apisix_home
. ( #2348 )
2020-10-05 08:42:13 +08:00
Wen Ming
a4e3526049
bugfix: remove unsupported algorithm in jwt plugin. ( #2356 )
...
* bugfix: remove unsupported algorithm in jwt plugin.
support algorithm: https://github.com/SkyLothar/lua-resty-jwt/blob/master/lib/resty/jwt.lua#L505
* revert doc auto-format
Signed-off-by: yiyiyimu <wosoyoung@gmail.com>
Co-authored-by: yiyiyimu <wosoyoung@gmail.com>
2020-10-05 07:26:40 +08:00
Wen Ming
3e959032f1
CI: skip run tengine test cases. ( #2354 )
...
Co-authored-by: nic-chen <33000667+nic-chen@users.noreply.github.com>
2020-10-04 20:23:10 +08:00
YuanSheng Wang
20c670ce09
change(hmac-auth): update the organization of signing_string
. ( #2337 )
...
fix #2336 .
ref:
https://help.aliyun.com/document_detail/29475.html?spm=a2c4g.11186623.2.15.62c73e789LVg02
https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html#RESTAuthenticationConstructingCanonicalizedAmzHeaders
2020-10-04 19:57:57 +08:00
Firstsawyou
dd5a36e207
feat: support to fetch consumer_name
or consumer_id
via ctx.var
( #2333 )
2020-10-04 19:16:29 +08:00
Shuyang Wu
c228675a81
doc: update etcd installation step for v3.4 ( #2346 )
2020-10-04 19:15:58 +08:00
罗泽轩
a6611d3058
feat(proxy-cache): store the temporary file under cache directory. ( #2317 )
...
When the temporary file directory and cache directory are under
different disk, this option can avoid unexpected performance hurt.
2020-10-04 16:23:32 +08:00
Swayam Raina
385f2a471b
chore: remove apisix_cores ( #2260 )
2020-10-04 15:23:42 +08:00
罗泽轩
1db42368c0
fix(basic-auth): split schema to adapt different occasions ( #2331 )
2020-10-04 14:39:20 +08:00
diaosj
2f3d6786e2
doc: update router variable example ( #2351 )
2020-10-04 13:52:04 +08:00
YuanSheng Wang
c5dcced1cf
bugfix: when service works with upstream that contains a domain name, the merged configuration should not always changing. ( #2322 )
2020-10-04 13:12:28 +08:00
YuanSheng Wang
7be1134295
doc: field key
should be optional in upstream
object. ( #2349 )
2020-10-01 23:24:40 +08:00
YuanSheng Wang
05840ca9e2
test: wait for more time and check the error log, old way is unstable. ( #2341 )
2020-09-30 17:05:46 +08:00
Shuyang Wu
89479194cc
bugfix: use correct version of etcd in linux_apisix_master_luarocks ( #2343 )
2020-09-29 10:30:13 +08:00
Shuyang Wu
e0ee327c08
bugfix: use etcd:watchcancel to reduce connections in etcdv3 ( #2299 )
2020-09-28 18:05:47 +08:00
Joey
ebe4f6620a
feat: Add labels for upstream object ( #2279 )
2020-09-28 11:20:09 +08:00
nic-chen
c375bd0cac
feat: replace timestamp with date and time in GMT format in plugin hmac-auth
( #2301 )
2020-09-28 09:10:26 +08:00
Firstsawyou
b1770d4ca7
feat: support to fetch route_id
and service_id
via ctx.var
( #2326 )
2020-09-27 22:29:59 +08:00
罗泽轩
70bd9802c5
bugfix: avoid overwriting Vary header in cors plugin ( #2271 )
2020-09-27 16:43:09 +08:00
YuanSheng Wang
65db7a4837
bugfix(lrucache): store the original value in a new table, and use ver
to store the cached version. ( #2321 )
2020-09-27 11:38:05 +08:00