Commit Graph

220 Commits

Author SHA1 Message Date
shenshaoye
4aeef386f0
feat: support more customize configure in nginx.conf (#3204)
Co-authored-by: 沈鑫杰 <xinjie.shen@chaitin.com>

related #3203
2021-01-07 19:21:02 +08:00
John Bampton
7c5df5d343
docs: lint Markdown (#3178) 2021-01-06 11:06:43 +08:00
行者
bb629bc7eb
docs: Fix character error at plugin, style output error, and link cannot be used (#3176) 2021-01-04 09:13:08 +08:00
John Bampton
b72e2c56be
docs: lint Markdown files (#3177)
Lint Markdown for rules:
- MD031/blanks-around-fences
- MD032/blanks-around-lists
2021-01-03 11:26:40 +08:00
qwxingzhe
0365fb880c
docs: Add plugin list and detail acquisition interface (#3156) 2020-12-31 09:11:10 +08:00
罗泽轩
13ab4903b4
chore: improve HTTPS doc (#3149) 2020-12-30 22:57:00 +08:00
罗泽轩
81c1c7c077
change: don't treat route segment with ':' as parameter by default (#3154)
Fix #3134
2020-12-30 22:13:05 +08:00
qwxingzhe
b80020e632
docs: added interface to get list part for Admin API (#3138) 2020-12-29 23:22:02 +08:00
tzssangglass
0597c57b27
chore: tweak the uri to view plug-in types (#3153) 2020-12-29 15:55:53 +08:00
tzssangglass
a54aad1ad3
feat: provide the ability to view plug-in types (#2886)
Fix #2308
2020-12-29 11:01:12 +08:00
罗泽轩
078a0626b2
docs: mention iresty/test-nginx should be used (#3119) 2020-12-28 21:48:24 +08:00
Yuelin Zheng
c4180ccbf9
feat: the proxy-rewrite plugin support pass nginx variable within header (#3144)
related #3117
2020-12-28 20:42:47 +08:00
罗泽轩
5a67fc382e
docs: improve the plugin-develop doc (#3125)
Co-authored-by: John Bampton <jbampton@users.noreply.github.com>
2020-12-27 09:30:01 +08:00
Dabuge
0c6ae109bb
docs: fix documentation about ETCD (#3130) 2020-12-27 09:22:04 +08:00
Yuelin Zheng
86fa46d85b
feat: Implement traffic splitting plugin (#2935)
close #2303
close #2603
2020-12-25 15:53:00 +08:00
guyang
0802c95faf
feat: add batch process metrics (#3070) 2020-12-24 19:24:46 +08:00
罗泽轩
560a2fe3ab
change: remove k8s_deployment_info (#3098)
Fix #3068
2020-12-22 22:28:47 +08:00
Alex Zhang
c3d61fcfa3
feat: add control api for plugin server-info (#3088)
* feat: add control api for plugin server-info

Previously we added plugin server-info without exposing API since the same port problem of admin api and proxy. Now we have Control API support so we expose server-info API through Control API. People now can insight the server info about APISIX instance easily.
2020-12-22 11:04:56 +08:00
罗泽轩
8a3dda3edd
docs: catch up with the current status of route (#3019)
Fix #2298.

Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2020-12-18 19:10:43 +08:00
罗泽轩
e9826b60f3
fix: make debug-mode work with global rule (#3023)
Fix #1667.

Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2020-12-18 17:14:51 +08:00
罗泽轩
fd2db606a9
feat: rewrite handwriting validation with jsonschema (#3021)
Fix #2967. Some plugins can't be rewritten, so I have to keep them.

Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2020-12-18 16:55:23 +08:00
罗泽轩
310c95158f
feat: allow upstream without nodes (#3076)
Fix #3072
2020-12-18 16:05:54 +08:00
Peter Zhu
952854d7cd
fix: bad server_info example (#3074) 2020-12-18 14:51:50 +08:00
Yuelin Zheng
bdd00e1f55
feat: support ctx.var to get service_name and route_name (#3036)
close #2982
2020-12-17 22:26:25 +08:00
John Bampton
1f52c70d84
docs: lint Markdown for multiple consecutive blank lines (#3047)
- remove unneeded MD009 - Trailing spaces config entry
- MD012 - Multiple consecutive blank lines

https://github.com/markdownlint/markdownlint/blob/master/docs/RULES.md#md012---multiple-consecutive-blank-lines
2020-12-17 22:25:30 +08:00
John Bampton
3bb3422852
feat(CI): add a GitHub Action to lint the Markdown (#3041)
- add a Markdownlint config file
- lint Markdownlint for MD039 - Spaces inside link text

https://www.npmjs.com/package/markdownlint-cli
2020-12-15 09:29:47 +08:00
罗泽轩
2457aa1e4d
feat: check if Admin API is used with etcd config_center (#3018) 2020-12-13 23:08:15 +08:00
John Bampton
aed3e818e0
docs: remove unneeded whitespace from Markdown (#3026) 2020-12-13 14:15:07 +08:00
John Bampton
3c01db5ef0
chore: spelling (#3012)
Co-authored-by: 罗泽轩 <spacewanderlzx@gmail.com>
Co-authored-by: YuanSheng Wang <membphis@gmail.com>
2020-12-13 00:04:48 +08:00
罗泽轩
0eacf3af7d
feat: improve jsonschema validation on route resource (#3008)
fix #2671
fix #2991
2020-12-10 22:53:53 +08:00
tzssangglass
c7b198f969
feat: support enable/disable route (#2943)
fix #2737
2020-12-09 10:38:21 +08:00
Alex Zhang
7855d9eed2
feat: implement new plugin server-info (#2926)
close #2821
2020-12-09 10:07:57 +08:00
罗泽轩
79075000aa
feat(fault-injection): support Nginx variable in abort.body (#2986)
Fix #2827
2020-12-08 13:18:34 +08:00
罗泽轩
2f3ab6a2bc
feat: disable node-status by default (#2968)
Fix #2952
2020-12-04 22:25:11 +08:00
罗泽轩
f84a44e409
feat(limt-count): use 'remote_addr' as default key (#2927) 2020-12-02 17:04:31 +08:00
罗泽轩
a63b6b8c6e
feat: allow create consumers with multiple auth plugins (#2898)
Fix #2850
2020-12-01 15:42:59 +08:00
Wen Ming
91b7313e05
release: release 2.1 version. (#2887) 2020-12-01 11:52:49 +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
super_mario
ce1d40b42f
fix: Synchronize with english doc (#2877) 2020-11-29 11:41:13 +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
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
Yuelin Zheng
ef87048b00
docs(kafka-logger): optimize the description of the attribute. (#2867)
close #2861
2020-11-27 16:45:32 +08:00
罗泽轩
c6c2e3cfb2
feat: support include other nginx config (#2803)
Close #2565
Close #1620
2020-11-25 19:23:31 +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
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
Yuelin Zheng
dc5fee27a2
feat(kafka-logger): the key field should be optional. (#2807)
fix #2778
2020-11-24 16:05:52 +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
idbeta
7780fe4e24
docs: fix typo from zh-cn/plugins/prometheus.md (#2806) 2020-11-21 10:17:39 +08:00
罗泽轩
2622e38ae0
docs: add missing fields in SSL API (#2804) 2020-11-20 20:08:50 +08:00
guyang
5b396020d5
feat: support plugin for "aliyun" log service (#2177) 2020-11-19 00:04:01 +08:00
idbeta
d08270330a
docs: modify architecture-design.md to add what should pay attention when… (#2744)
fix #2741
2020-11-19 00:01:08 +08:00
罗泽轩
1a24c2af39
refactor(consumer): remove id and use username only (#2679)
Close #2656
Close #2653
Close #2651
2020-11-18 17:44:40 +08:00
Yuelin Zheng
e4de3d5b9b
feat(proxy-cache): the cache_zone field in the schema should be optional (#2776) 2020-11-18 16:07:13 +08:00
Yousa
ec5ba5f68c
docs: add Attention message for 'response-rewrite' doc. (#2732)
* 1. add Summary for 'zh-cn/plugins/response-rewrite.md'
2. add Attention message for 'response-rewrite' doc.

* fix typo

* response rewrite plugin, rewrite the content from upstream.
->
response rewrite plugin, rewrite the content returned by the upstream as well as Apache APISIX itself.
2020-11-18 12:51:12 +08:00
Yuelin Zheng
a6678c33c5
fix(hmac-auth): when the request contains escape characters, the signature verification fails (#2749)
fix #2710
2020-11-18 09:02:37 +08:00
HelloBug0
c1ac7d6952
docs: add a English link of node-status.md (#2753) 2020-11-16 20:06:46 +08:00
罗泽轩
58cba26e51
fix(http-logger): validate uri (#2708) 2020-11-15 17:22:25 +08:00
罗泽轩
da4e12e0f7
feat: generate create/update_time automatically (#2740) 2020-11-15 17:20:51 +08:00
Alex Zhang
3c12b61207
docs: mentioned the etcd gRPC gateway (#2734) 2020-11-13 16:08:43 +08:00
琚致远
b2c4df7df2
fix(docs): kafka-logger in Chinese (#2728)
fix https://github.com/apache/apisix/issues/2719
2020-11-13 13:45:41 +08:00
罗泽轩
dadebc7e75
docs: clarify how we handle disabled plugin which is matched (#2706) 2020-11-13 13:30:06 +08:00
idbeta
358d83a757
docs: modify the stand-alone.md to add instructions for enable SSL (#2702) 2020-11-13 09:21:36 +08:00
idbeta
bbe6fc1ceb
modify batch-requests.md, example's --d should be --data (#2724) 2020-11-13 09:12:32 +08:00
罗泽轩
2f8762c22f
docs: add create/update_time fields (#2712)
Close #2654
2020-11-13 00:23:49 +08:00
dabue
70453aece3
chore(core): enabled websocket in route and service (#2593) 2020-11-10 16:56:38 +08:00
琚致远
9d4b4181c8
fix(doc): broken links (#2682) 2020-11-10 16:10:49 +08:00
罗泽轩
3ba6629daa
feat: disable example-plugin by default (#2673)
Close #2659.
2020-11-10 08:46:54 +08:00
罗泽轩
ebf0563a40
change: disable skywalking by default. (#2632)
* fix: disable skywalking by default.

Close #2623.

* trailing sw

* clean test
2020-11-09 08:12:52 +08:00
YuanSheng Wang
021f24a7b2
docs: put the chapter "admin api" to the front, and sync the Chinese version from English version (#2650) 2020-11-08 11:44:54 +08:00
HelloBug0
3ab580fa71
docs: node-status.md (#2615)
* Create node-status.md

* Update node-status.md

* Update node-status.md

* Update node-status.md

1. add a blank line after #目录
2. remove some unnecessary lines

* Update node-status.md

1. add language type in code
2. change '插件属性为空' to ‘无’
3. change '接口插件' to '插件接口' which could add link to directory '插件接口'
2020-11-06 10:51:28 +08:00
tzssangglass
27875e5790
feat(jwt-auth): support to use of the RS256 algorithm (#2594)
* example for #2523

* fix: jwt-auth plugin RS256 algorithm is not easy to use. (#2523)

fix: add more test cases for jwt plugin. (#2355)

fix #2523

fix #2355
2020-11-06 10:16:20 +08:00
kiki
333210fc64
doc(hmac-auth): generate signature should be more detailed (#2599)
fix #2531
2020-11-03 16:40:33 +08:00
Alex Zhang
5191374545
feat: support TLS connection with etcd. (#2548)
Support the TLS connection when communicating with etcd cluster. We added a configuration item to custom the certificate verification. Whether to setup TLS connection or not depends on the endpoints' scheme, for instance, when endpoints are:

```
etcd:
  host:
    - "https://127.0.0.1:2379"
    - "https://127.0.0.1:3379"
```

APISIX will originate TLS connection automatically, and the Server Name Indication extention will be set by the endpoint host (`127.0.0.1` in above case). Note by default APISIX will verify the certificate, close the verification in configuration explicitly if you want to bypass it.

```
etcd:
  tls:
    verfiy: false
```
2020-11-03 13:53:39 +08:00
罗泽轩
432c954a74
fix: plugin hot reload should work on node (#2430) 2020-11-03 13:46:24 +08:00
Firstsawyou
3356b51992
docs: add the consumer-restriction plugin to support consumer to subscribe to the documents of service (#2265)
* doc: Chinese document changes

* doc: zh-cn document changes.

* doc: zh-cn document changes.

* doc: document changes.

* doc: document changes.

* fix: CI scan detected error.

* change: change document styles.

* fix: document styles.

* fix: CI scan detected error.

* fix: document styles.

* fix: docs style.

* fix: docs style.

* fix: docs conflict.

* fix: docs content `Route Test`.

* add:  a brief description of what is expected.

* fix: delete extra blank lines.

Co-authored-by: YuanSheng Wang <membphis@gmail.com>
2020-11-02 14:06:00 +08:00
tashiya-menuri
be4a108896
doc: update api-breaker’s language switcher link
close #2584
2020-10-31 22:27:11 +08:00
tashiya-menuri
735240fd77
doc(api-breaker): add doc in README and plugin list (#2580)
Fix #2529
2020-10-31 07:30:06 +08:00
tashiya-menuri
acaae9140a
doc: add grpc-proxy.md link in doc/README.md (#2525)
Fix #2327
2020-10-31 07:28:42 +08:00
shoogoome
fff4d14a0d
feature: support multiple service discovery (#2556)
support multiple service discovery,then we can switch it in upstream
2020-10-30 20:34:10 +08:00
YuanSheng Wang
b23475fcba
feat: upgrade skywalking plugin to support skywalking 8.0 . (#2389) 2020-10-29 15:29:52 +08:00
dancingRobots
87ce6af4a6
update install-dependencies.md (#2549) 2020-10-29 12:35:00 +08:00
dabue
e472d2c2db
doc: fixed some typo and incorrect examples in getting-started.md and syslog.md (#2458)
fix #2457
2020-10-28 22:24:32 +08:00
Firstsawyou
146e222e0c
fix: the plugin hmac-auth missed a \n (#2543)
* fix: the plugin hmac-auth missed a `\n`.
fix #2527

* docs: modify doc.

* fix: consumer-restriction.t and custom_hmac_auth.t
2020-10-28 13:37:22 +08:00
Alex Zhang
3306a3ed3c
feature: support percentage for fault injection (#2516) 2020-10-27 14:10:44 +08:00
YuanSheng Wang
6a7dfa6775
feat: implement api breaker plugin. (#2455)
Co-authored-by: liuheng <liuhengloveyou@gmail.com>
2020-10-27 13:40:23 +08:00
JinChen
e2f450fa1a
feat:The limit-conn plugin supports 'consumer_name' field (#2415)
The limit-conn plugin supports the` consumer_name` field
The method of PR is referred: #2333
2020-10-27 10:44:44 +08:00
Firstsawyou
80affa0366
feat: The limit-count plugin supports service_id field. (#2521)
fix #2518
2020-10-27 10:41:07 +08:00
Wen Ming
443e7b43ba
release: release 2.0 version. (#2283) 2020-10-27 10:11:04 +08:00
Joey
5be8d850c0
doc: correct the guide of creating consumer guide in AdminAPI (#2513)
Fix #2512
2020-10-26 22:07:37 +08:00
罗泽轩
2a66762ca6
change(batch-requests): limit the body size to 1M (#2507)
To avoid blocking on reading large body file and
spending too much memory in encode JSON body.
2020-10-26 21:50:51 +08:00
罗泽轩
d5dc0e08d1
doc(http-logger): sync Chinese doc to the English one (#2510) 2020-10-25 07:54:38 +08:00
Firstsawyou
853a7be0f4
feat(hmac-auth): remove auth headers for hmac-auth plugin. (#2491)
fix #2490
2020-10-25 07:33:11 +08:00
RocFang
a5f5c1ff59
doc: Consule=>Consul (#2480) 2020-10-21 06:43:53 +08:00
罗泽轩
26ad5cf892
doc(echo): mark it as production-unready (#2461) 2020-10-19 15:56:54 +08:00
JinChen
9e1030ee42
feat: limit-count plugin supports limiting requests by consumer name. (#2421)
fixed #2333
2020-10-17 19:24:55 +08:00
罗泽轩
6a543a98a2
feat: use interceptors to protect plugin's route (#2416) 2020-10-17 17:45:26 +08:00