Commit Graph

1086 Commits

Author SHA1 Message Date
Baoyuan
4d52c3e8e6
feat: add CSRF plugin (#5727)
* feat: add csrf plugin

* fix: format code

* feat: add plugin docs

* fix: adjust code

* fix: add docs in config.json

* fix: add plugin in plugins.t

* fix: format code

* Update apisix/plugins/csrf.lua

Co-authored-by: tzssangglass <tzssangglass@gmail.com>

* docs: modify inappropriate descriptions

* fix: change read cookie method

* fix: change variable name and add two blank lines

* Update docs/en/latest/plugins/csrf.md

Co-authored-by: 罗泽轩 <spacewanderlzx@gmail.com>

* fix: add SameSite for cookie

* fix: move plugin name

* test: fix plugins test

* Update docs/zh/latest/plugins/csrf.md

Co-authored-by: 琚致远 <juzhiyuan@apache.org>

* fix: improved documentation

* docs: optimize documents

* test: add some tests

* fix: lint test code

* test: perfect test

* fix: lint code

* fix: update test

* test: add space before number

* fix: optimization code

* Update apisix/plugins/csrf.lua

Co-authored-by: Bisakh <bisakhmondal00@gmail.com>

Co-authored-by: tzssangglass <tzssangglass@gmail.com>
Co-authored-by: 罗泽轩 <spacewanderlzx@gmail.com>
Co-authored-by: 琚致远 <juzhiyuan@apache.org>
Co-authored-by: Bisakh <bisakhmondal00@gmail.com>
2022-01-18 13:48:01 +05:30
Yu.Bozhong
3773f2626e
feat(plugin config): add dependency for delete plugin config (#6092) 2022-01-18 14:55:09 +08:00
Jager
f718dc8faf
feat: supports to logging apisix_latency and upstream_latency. (#6063)
Co-authored-by: Jagerzhang <jagerzhang@tencent.com>
2022-01-18 09:21:10 +08:00
罗泽轩
ebf622242a
test: merge the delete-* cases into admin group cases (#6121) 2022-01-17 19:11:19 +08:00
tzssangglass
94088cde46
fix(ngx_tpl): fix position of apisix_mirror_on_demand (#6100) 2022-01-17 09:56:36 +08:00
tzssangglass
7947350d21
chore: fix perf test deps and note (#6120) 2022-01-16 20:54:40 +08:00
罗泽轩
73cefc4cee
chore(forward-auth): rename address to uri (#6114) 2022-01-16 19:31:06 +08:00
Zeping Bai
77626e05a1
chore: clean core request module (#6108) 2022-01-14 18:28:06 +08:00
Zeping Bai
d026c69e0c
chore: update forward-auth address schema (#6110) 2022-01-14 18:27:36 +08:00
罗泽轩
f5db06846f
test(serverless): split test to solve strange failure (#5988) 2022-01-14 16:48:26 +08:00
罗泽轩
e69f9bee98
feat(mqtt): balance by client id (#6079) 2022-01-14 16:47:18 +08:00
tzssangglass
92ac6d901d
chore: reindex format of basic_auth.t (#6101) 2022-01-14 15:08:35 +08:00
encanto
4783ad550d
feat: support custom package, headers and body in openwhisk plugin (#5923)
Co-authored-by: 罗泽轩 <spacewanderlzx@gmail.com>
Co-authored-by: Your Name <you@example.com>
Co-authored-by: Zeping Bai <bzp20000818@gmail.com>
2022-01-14 14:51:44 +08:00
mango
d7fda7ee69
feat: support hide the authentication header in basic-auth with a config (#6039)
Co-authored-by: xuwei <>
2022-01-14 12:55:06 +08:00
罗泽轩
54289722df
feat: set proxy_request_buffering dynamically (#6075) 2022-01-14 11:00:47 +08:00
罗泽轩
7a31ec786d
fix: upgrade jsonschema to 0.9.6 (#6091) 2022-01-14 09:35:18 +08:00
Zhendong Qi
f3d7550435
fix: the prometheus lables are inconsistent when using the same batch-processor instance on multi plugins (#6055)
Co-authored-by: qizhendong <qizhendong@cmss.chinamobile.com>
2022-01-13 09:08:10 +08:00
leslie
ff4e2894f4
fix(ipv6): allow disabling IPv6 resolve (#6023) 2022-01-12 17:17:07 +08:00
帅进超
d4a7ea208f
chore(grpc-web): update mime of response to mime of request (#6070) 2022-01-12 09:11:45 +08:00
Zeping Bai
8dbdd1f688
feat: add forward-auth plugin (#6037)
Co-authored-by: 罗泽轩 <spacewanderlzx@gmail.com>
2022-01-11 10:38:35 +08:00
罗泽轩
eb0bf87b38
feat(L4): support TLS over TCP upstream (#6030) 2022-01-11 10:29:56 +08:00
罗泽轩
265b06bdd3
change(serverless): rename "balancer" phase to "before_proxy" (#5992) 2022-01-11 10:29:23 +08:00
帅进超
ddb9cd28bf
feat(grpc-web): support gRPC-Web Proxy (#5964) 2022-01-09 23:59:32 +08:00
罗泽轩
609b504112
ci: rewrite CI job to a regular test (#6052) 2022-01-09 23:53:07 +08:00
罗泽轩
e8229f51c6
test: doc & simpify stream part of the test framework (#6041) 2022-01-09 19:18:54 +08:00
罗泽轩
045fa33266
test: add missing shdict (#6022) 2022-01-06 08:55:16 +08:00
seven dickens
3f66fab63e
fix: resolve unambiguous fully-qualified domain name(FQDN), i.e. ended in a dot (#5999) 2022-01-05 09:32:13 +08:00
罗泽轩
c6f1a83c6f
feat(limit-count): add constant key type (#5984)
Co-authored-by: Yu.Bozhong <y.bz@foxmail.com>
Co-authored-by: Bisakh <bisakhmondal00@gmail.com>
2022-01-05 09:05:19 +08:00
罗泽轩
2f277072cc
test(UDP): use longer timeout to avoid 'echo: write error: Broken pipe' (#5989) 2022-01-03 19:40:40 +08:00
罗泽轩
b57420105f
fix(datadog): keep consistent with the other logger (#5972) 2022-01-03 19:24:43 +08:00
罗泽轩
fea01a78b1
feat: allow setting proxy_request_buffering without disabling proxy-mirror (#5943) 2022-01-02 17:49:31 +08:00
Hao Xin
0920d1d21f
feat(prometheus): Add metric prefix attr (#5960) 2021-12-31 09:26:44 +08:00
Zeping Bai
4a66b79803
feat: support send APISIX data to assist decision in OPA plugin (#5874) 2021-12-29 20:19:02 +08:00
罗泽轩
0a8de202dc
feat: support registering custom variable (#5941) 2021-12-29 11:39:52 +08:00
arabot777
9106401521
feat(plugin): add degradation switch for ext-plugin (#5897)
Co-authored-by: tzssangglass <tzssangglass@gmail.com>
Co-authored-by: 罗泽轩 <spacewanderlzx@gmail.com>
Co-authored-by: liushan03 <liushan03@meicai.cn>
2021-12-28 09:39:20 +08:00
罗泽轩
ae2e653f6b
fix(mqtt): handle properties for MQTT 5 (#5916) 2021-12-27 21:01:59 +08:00
tzssangglass
db5813ff9a
fix(logger): remove incorrect item type of include req/resp body expr (#5886) 2021-12-27 15:42:40 +08:00
leslie
9a1831d656
fix(proxy-rewrite): make sure proxy-rewrite update the core.request.header cache (#5914) 2021-12-24 16:02:38 +08:00
罗泽轩
7a56580a22
feat(limit-count): allow sharing counter (#5881)
Co-authored-by: leslie <59061168+leslie-tsang@users.noreply.github.com>
Co-authored-by: tzssangglass <tzssangglass@gmail.com>
2021-12-24 15:50:03 +08:00
jackfu
3c0c89a58e
fix(cors): compatible with scenarios where origin is modified (#5890)
Co-authored-by: jack.fu <jack.fu@yijinin.com>
2021-12-23 19:12:16 +08:00
帅进超
79601b820f
chore(google-cloud-logging): use batch queue default parameters (#5869) 2021-12-23 14:57:46 +08:00
罗泽轩
5be439094b
test: make t/plugin/serverless.t stable (#5889) 2021-12-23 14:57:25 +08:00
罗泽轩
ce5bb7b912
change: enable HTTP when stream proxy is set and enable_admin is true (#5867)
Co-authored-by: leslie <59061168+leslie-tsang@users.noreply.github.com>
2021-12-23 14:57:16 +08:00
帅进超
15128f0a56
fix(google-cloud-logging): move ssl_verify to plugin configuration top level (#5839) 2021-12-20 19:20:31 +08:00
帅进超
e08ec60883
feat(splunk): support splunk hec logging plugin (#5819) 2021-12-20 17:51:11 +08:00
jackfu
4423509680
fix(ua-restriction): refine plugin configuration check logic (#5728)
Co-authored-by: jack.fu <jack.fu@yijinin.com>
2021-12-19 19:51:32 +08:00
帅进超
fce2b44f5f
fix(sls-logger): log entry unable get millisecond timestamp (#5820) 2021-12-17 09:06:31 +08:00
罗泽轩
de65fc4f86
fix(mqtt-proxy): client id can be empty (#5816) 2021-12-16 14:08:41 +08:00
Zeping Bai
6ce20fcd23
feat: supprot OPA plugin complex response (#5779) 2021-12-15 16:19:26 +08:00
Bisakh
0d4f65a9ae
feat(vault): vault lua module, integration with jwt-auth authentication plugin (#5745) 2021-12-15 11:45:59 +08:00