Commit Graph

803 Commits

Author SHA1 Message Date
罗泽轩
544ab52a40
feat: support client certificate verification (#4034)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-04-22 22:00:02 +08:00
Yuelin Zheng
93a9feb9b5
feat: support to fetch balancer ip/port from ctx.var (#4109) 2021-04-22 21:52:49 +08:00
Yuelin Zheng
94565689f7
fix(traffic-split): configure multiple "rules", the request will be confused between upstream (#4092) 2021-04-22 08:58:23 +08:00
_chg_
8757080697
feat: add nacos support (#3820)
Co-authored-by: spacewander <spacewanderlzx@gmail.com>
2021-04-21 17:48:56 +08:00
罗泽轩
12c9e6f267
feat: upstream grpcs support mTLS (#4070) 2021-04-20 18:08:13 +08:00
罗泽轩
baf216dc7f
test: add FIRST to the forbidden directives (#4072)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-04-19 22:16:20 +08:00
罗泽轩
ce4d8fb1e5
fix: ensure upstream with domain is cached (#4061)
Fix #4047

Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-04-16 19:09:45 +08:00
罗泽轩
5259b8c796
fix: be compatible with the router created before 2.5 (#4056)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-04-15 16:24:17 +08:00
yejingx
7029bb9cc6
plugin(kafka-logger): send logs in async mode by default (#4035) 2021-04-14 16:14:54 +08:00
Shuyang Wu
8d860ec675
fix: when route name is not set, it would be given the service name (#4020) 2021-04-13 16:05:14 +08:00
罗泽轩
022d7527c2
feat: new way to cache ctx.var (#3915) 2021-04-11 13:43:25 +08:00
罗泽轩
e295ebb9e8
feat: support upstream mTLS (#4005) 2021-04-10 18:55:20 +08:00
罗泽轩
bb7d8a8f53
test: rewrite flaky consul_kv case (#3972) 2021-04-10 18:53:41 +08:00
罗泽轩
e9fedee192
fix(prometheus): collect nginx_status and return the body (#4014)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
Co-authored-by: John Bampton <jbampton@users.noreply.github.com>
2021-04-10 12:20:24 +08:00
罗泽轩
d6f3f7ae02
test: show how to fetch special cookie which is not supported by Nginx (#4011)
Fix #4009

Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-04-09 21:43:27 +08:00
罗泽轩
89d8697743
feat(key-auth): allow customizing header (#4013) 2021-04-09 18:08:21 +08:00
Shuyang Wu
52a91bb846
feat: use route/service name instead of id in prometheus metric (#4004) 2021-04-09 16:02:11 +08:00
罗泽轩
005a790a5e
feat(serverless): pass conf & ctx to the functions (#3971) 2021-04-08 18:29:32 +08:00
Shuyang Wu
b273ae7002
change(prometheus): redesign the latency metrics & update grafana (#3993)
Co-authored-by: nic-chen <johz@163.com>
2021-04-07 15:38:49 +08:00
罗泽轩
6a986f4649
change(prometheus): don't expose metrics to internet (#3994)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-04-07 14:40:28 +08:00
han6565
4156a73b9b
change(limit-count): ensure redis cluster name is set correctly (#3910)
fix the problem of multiple different redis-cluster data sources, stress test prompting ' ttl: ERR invalid password'

Co-authored-by: hanjinqi <hanjinqi@xdf.cn>
Co-authored-by: Yuelin Zheng <2226815922@qq.com>
2021-04-07 09:20:00 +08:00
罗泽轩
16c8648aa0
refactor: ssl schema (#3969)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-04-07 09:02:22 +08:00
罗泽轩
92b9bde8ee
fix: PATCH ssl should encrypt key (#3986) 2021-04-07 01:10:18 +08:00
罗泽轩
5b2be581d8
test: add cases for wss (#3961)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-04-05 11:41:25 +08:00
nic-chen
9a68bd3862
feat: add management fields for stream_route and proto in schema (#3966) 2021-04-02 09:01:31 +08:00
Yuelin Zheng
708d266512
fix(traffic-split): upstream.type support chash configuration (#3955) 2021-04-01 20:57:10 +08:00
罗泽轩
2e29d78011
change: drop support of OpenResty 1.15 (#3960) 2021-04-01 20:45:25 +08:00
罗泽轩
d67da18d53
fix: make sure SNI is changed with HTTP host (#3948)
Move the variables under locations to avoid being reset by proxy-mirror.
Fix #3864
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-04-01 13:06:33 +08:00
John Bampton
faf4715c82
chore: fix spelling (#3958) 2021-04-01 09:30:27 +08:00
罗泽轩
bad772641a
test: make plugin/log-rotate.t stable (#3943)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-03-31 10:31:01 +08:00
罗泽轩
7c976b50ab
feat(skywalking): allow destory and configure report interval for reporter (#3925)
Fix #2895

Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-03-30 09:54:18 +08:00
罗泽轩
0c96ffd6fb
test: make consul_kv stable (#3924) 2021-03-29 23:41:22 +08:00
罗泽轩
86e168e711
test: enable master-worker mode by default (#3927) 2021-03-29 23:38:07 +08:00
罗泽轩
664c760167
ci: the last day of travis (#3926) 2021-03-29 23:34:01 +08:00
Yuelin Zheng
da83328af9
feat(traffic-split): the upstream pass_host needs to support IP mode (#3870) 2021-03-29 18:27:22 +08:00
罗泽轩
3ba24c47d4
test: show how to bypass the ctx.var cache (#3914)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-03-29 08:53:32 +08:00
罗泽轩
c9df9fca65
chore: remove unused shared dict (#3918)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-03-27 11:39:32 +08:00
罗泽轩
95d313ecf2
fix(error-log-logger): the logger should be run in each process (#3912) 2021-03-27 11:39:17 +08:00
Shuyang Wu
83931ba0a5
fix: refine example grafana dashboard (#3457) 2021-03-26 10:37:15 +08:00
罗泽轩
83ab5439a0
fix: use the builtin server by default (#3907)
Fix #3906
2021-03-25 23:49:38 +08:00
罗泽轩
92b352862a
feat: support mTLS with etcd (#3905) 2021-03-25 23:40:40 +08:00
罗泽轩
baf8434034
fix: allow addr:port format in stream_proxy (#3900)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-03-25 09:07:05 +08:00
罗泽轩
fb358e55b8
fix: priority for nonarray upstream node in stream (#3897) 2021-03-24 15:04:05 +08:00
罗泽轩
b17feb59bb
feat: extend init configuration validation with jsonschema (#3860)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-03-23 21:57:53 +08:00
罗泽轩
eeb3d55a7e
test: break down cli test_main.sh (#3887)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-03-23 21:57:14 +08:00
罗泽轩
116deb2f36
change(zipkin): rearrange the child span (#3877)
Fix #3827
2021-03-23 20:19:16 +08:00
罗泽轩
9aa1833722
ci: use build-apisix-openresty.sh instead (#3847) 2021-03-23 20:07:48 +08:00
罗泽轩
216debe223
feat: support priority in SRV record (#3845) 2021-03-23 20:05:23 +08:00
罗泽轩
1a09b0d7a0
feat(cli): support etcd mTLS (#3836) 2021-03-23 20:03:21 +08:00
yongboy
1896cb1826
feat: add dump for consul_kv (#3848)
Co-authored-by: nieyong <nieyong@staff.weibo.com>
2021-03-23 10:07:32 +08:00
batman-ezio
bb95f7af54
feat: add allow_origins_by_regex to cors plugin (#3839) 2021-03-22 15:55:54 +08:00
罗泽轩
7ae302034a
test: use longer timeout for internet DNS query (#3872)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-03-22 10:05:50 +08:00
罗泽轩
957bef0783
chore: remove unused consumer.id (#3868)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-03-21 19:14:12 +08:00
Yuelin Zheng
faab4ba4d8
fix(traffic-split): binding upstream via upstream_id is invalid (#3842) 2021-03-17 20:48:45 +08:00
Yuelin Zheng
be2e68401c
chore: the route_name and service_name in ctx should remain different (#3831) 2021-03-16 15:26:37 +08:00
罗泽轩
01da213e6f
test: don't crash when dubbo upstream returns integer status code (#3823)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-03-16 15:19:58 +08:00
罗泽轩
0c1b208588
fix: correct the validation for ssl_trusted_certificate (#3832)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-03-16 09:01:26 +08:00
罗泽轩
7047932548
feat: upgrade lua-resty-expr/radixtree to support logical expression (#3809)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-03-15 09:51:15 +08:00
罗泽轩
ecb04f380f
test: make control/discovery.t stable (#3817) 2021-03-15 09:13:20 +08:00
John Bampton
9fafa43b37
chore: fix spelling, grammar and JSON example (#3821) 2021-03-15 08:56:43 +08:00
tzssangglass
210ca462b7
fix: the traffic-split plugin is invalid to bind upstream via upstream_id (#3758)
fix #3740
2021-03-15 08:55:49 +08:00
John Bampton
4ebccafbdc
chore: fix spelling (#3253) 2021-03-14 22:53:34 +08:00
罗泽轩
e957bc3daa
fix: correct the luasocket patch (#3819) 2021-03-14 18:06:04 +08:00
罗泽轩
837f4d9a6d
test: make node/priority-balancer/sanity.t stable (#3816) 2021-03-12 18:06:32 +08:00
罗泽轩
20ee3c1ecb
feat: add a safe exit to disable sync conf during start (#3812) 2021-03-12 14:53:58 +08:00
罗泽轩
83537ad158
feat: load etcd configuration when apisix starts (#3799)
Fix #3370
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-03-12 09:09:19 +08:00
罗泽轩
176dc45e67
test: move all tests under t/ (#3808)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-03-12 00:02:02 +08:00
罗泽轩
8dcbe4e00d
feat: let balancer support priority (#3755)
Fix #1809
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-03-10 14:56:26 +08:00
罗泽轩
d538105b1a
fix: don't override cache relative headers (#3789) 2021-03-10 09:02:28 +08:00
jpgouin
6cbaf55aab
feat: Add filter on HTTP methods for consumer-restriction plugin (#3691) 2021-03-08 18:00:29 +08:00
yongboy
34f60ee2cc
feat: add control api for discovery module (#3742)
Co-authored-by: nieyong <nieyong@staff.weibo.com>
2021-03-08 08:58:46 +08:00
罗泽轩
4820ad93e5
ci: ensure the fuzzing work under Python3 (#3747)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-03-04 15:34:47 +08:00
Lien Li
66539b36e7
feat: support conditional response rewrite (#3577)
* support conditinal response rewrite

* fix code style

* fix typo

* fix typo

* fix test case

* add test case and fix code style

* drop space

* add fail test cases

* enhance docs
2021-03-04 10:10:13 +08:00
罗泽轩
9885103a45
test: clean up malformed etcd data (#3743)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-03-04 09:12:50 +08:00
罗泽轩
0d40f81259
test: improve the unique request id check (#3738)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-03-03 23:02:00 +08:00
Shuyang Wu
fc7a466681
ci: run chaos test on HEAD of PR (#3675) 2021-03-03 13:40:33 +08:00
罗泽轩
46c649596f
feat: add labels to plugin_config (#3703) 2021-03-01 14:51:48 +08:00
nic-chen
7827d094c4
fix: validate plugins configuration of plugin_config via incremental sync (#3700) 2021-03-01 14:43:44 +08:00
idbeta
f3449f30f8
test: add fuzzing case for the route with vars (#3667) 2021-03-01 10:02:15 +08:00
nic-chen
d8154da601
chore: expose schema of plugin_config via control API (#3701) 2021-03-01 08:32:02 +08:00
罗泽轩
6731ca1483
feat: support SRV record (#3686) 2021-02-27 23:02:57 +08:00
罗泽轩
e58a55fbc6
fix(chash): ensure retry can try every node (#3651)
Previously the default number of retry is equal to the number of node,
but the same node will be tried again according to its weight.

Also ensure the same picker will be used in the whole request,
especially during the retry.
2021-02-27 22:17:22 +08:00
罗泽轩
fa028c10a7
fix: cache server picker for nodes without port (#3665)
Compare with the original node which is not changed after filled
2021-02-27 20:01:05 +08:00
tzssangglass
a6fbcce2c2
fix: script does not work when the route is bound to a service. (#3678)
fix #3663
2021-02-26 14:35:21 +08:00
Yuelin Zheng
1d79ce57eb
feat: the traffic-split plugin supports upstream_id (#3512) 2021-02-25 20:59:16 +08:00
罗泽轩
de9ea13284
test: make key-auth-upstream-domain-node stable (#3666) 2021-02-25 13:07:18 +08:00
罗泽轩
2a6e2b4247
feat: add dns discovery (#3629)
Fix #3517
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-02-25 09:42:31 +08:00
idbeta
5591595228
test: add fuzzing case for the route with serverless-post-function (#3639)
relate #3340
2021-02-25 09:33:25 +08:00
罗泽轩
16f017dfed
ci: avoid requesting IPv6 address as GitHub Action doesn't support it (#3656) 2021-02-24 16:09:25 +08:00
罗泽轩
728df41e16
fix: we should ensure one upstream only have one determinable scheme (#3637) 2021-02-24 14:37:30 +08:00
yongboy
8b7d9376cf
feat: add consul kv discovery module (#3615)
Co-authored-by: nieyong <nieyong@staff.weibo.com>
2021-02-23 21:04:22 +08:00
Shuyang Wu
42586a8f83
ci: use httpbin deployed in kubernetes to avoid unstability (#3623)
Signed-off-by: yiyiyimu <wosoyoung@gmail.com>
2021-02-22 11:49:43 +08:00
罗泽轩
9123e187d3
feat(zipkin): support b3 req header (#3551) 2021-02-22 09:23:09 +08:00
John Bampton
39ffe26c19
chore: remove unneeded whitespace before commas (#3626) 2021-02-22 09:11:39 +08:00
罗泽轩
013db0dd2f
feat: support to bind plugin config by plugin_config_id (#3567)
Fix #3532
2021-02-20 20:42:10 +08:00
罗泽轩
2401ad5043
fix: don't use port 80 for all schemes (#3544)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-02-20 16:01:00 +08:00
罗泽轩
ea1ac0f4da
test: ensure all plugins have unique priority (#3582)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-02-20 15:40:28 +08:00
罗泽轩
18909a2a0b
feat: allow disabling search option in resolv.conf (#3609)
Also disable it in the test to avoid occassional DNS query timeout.
2021-02-20 15:38:45 +08:00
Shuyang Wu
5656649d11
ci: use httpbin.org in chaos test to make CI works (#3614)
Signed-off-by: yiyiyimu <wosoyoung@gmail.com>
2021-02-20 14:03:10 +08:00
大可
5f4e8df42d
feat: support listen http2 with plaintext (#3547) 2021-02-19 09:04:48 +08:00