Commit Graph

1088 Commits

Author SHA1 Message Date
Shenal Silva
ef89dceda6
feature: support etcd auth (#1769)
Fix #1713 , #1770
2020-06-26 17:25:58 +08:00
Shenal Silva
492fa71cbc
bugfix: added content-type for admin API responses (#1746) 2020-06-24 13:57:10 +08:00
YuanSheng Wang
d419fb2289
test: added test cases. (#1752) 2020-06-24 09:59:11 +08:00
Nirojan Selvanathan
78ab35db29
bugfix: Fix for remote open ID connect introspection (#1743)
fix #1741
2020-06-24 09:19:13 +08:00
Scaat Feng
8a523b6fe8
doc: updated k8s doc (#1757) 2020-06-23 19:04:05 +08:00
YuanSheng Wang
e30a7469bc
test: use longer ttl, avoid the cached item expired. (#1760) 2020-06-23 18:21:08 +08:00
Scaat Feng
eafaf15928
doc: update Chinese README.md (#1758) 2020-06-23 16:57:33 +08:00
Wen Ming
d372fe2516
bugfix: fixed configures of nginx.conf for security reasons (#1759)
removed working_directory and removed TLSv1 TLSv1.1 from ssl_protocols
2020-06-23 16:03:19 +08:00
Scaat Feng
550cf743d1
doc: add oauth plugins Chinese docs. (#1754) 2020-06-23 10:35:26 +08:00
Scaat Feng
a5ac97f8b6
doc: update admin-api docs (#1753) 2020-06-22 19:18:11 +08:00
Scaat Feng
497acbb749
doc: update http-logger plugins Chinese docs. (#1755) 2020-06-22 19:12:50 +08:00
YuanSheng Wang
6a43a8c735
feature: implemented plugin uri-blocklist . (#1727)
first step: #1617
2020-06-22 14:45:55 +08:00
YuanSheng Wang
748e33756b
refactory: collect upstream logic and put them in a single file. (#1734)
feature: support dynamic upstream in plugin.

here is a mini  example in `access` phase of plugin:

```lua
    local up_conf = {
        type = "roundrobin",
        nodes = {
            {host = conf.upstream.ip, port = conf.upstream.port, weight = 1},
        }
    }

    local ok, err = upstream.check_schema(up_conf)
    if not ok then
        return 500, err
    end

    local matched_route = ctx.matched_route
    upstream.set(ctx, up_conf.type .. "#route_" .. matched_route.value.id,
                 ctx.conf_version, up_conf, matched_route)
    return
```
2020-06-22 14:21:42 +08:00
YuanSheng Wang
9533c8a902
update lua-resty-raditree to ver 2.0 . (#1748) 2020-06-22 13:04:48 +08:00
Eric Shi
2b5ddbca2f
test: add test cases about the string id in service #1659 (#1750) 2020-06-22 12:55:58 +08:00
YuanSheng Wang
f1e66ad1a3
bugfix: id can be string object, which contains ^[a-zA-Z0-9-_]+$. (#1739)
Fix #1654
2020-06-21 16:28:11 +08:00
Ayeshmantha Perera
f8f104dc0f
feature(echo): support header filter and access phases. (#1708) 2020-06-19 21:33:20 +08:00
YuanSheng Wang
7307797f0e
feature: support the use of independent files to implement the load a… (#1732)
* feature: support the use of independent files to implement the load algorithm,
which is convenient for expanding different algorithms in the future.
2020-06-19 12:46:20 +08:00
YuanSheng Wang
e38d0a9dc8
change: update resty-radixtree to version 1.9 . (#1730) 2020-06-19 12:24:52 +08:00
Nirojan Selvanathan
b0a1580c67
doc: Refactoring docs to support docsify (#1724) 2020-06-19 12:03:55 +08:00
hellmage
0a8b73930e
doc: add Chinese translation of authz-keycloak plugin (#1729) 2020-06-18 21:38:09 +08:00
Corey.Wang
fab05899f8
doc: health-check-cn.md (#1723) 2020-06-18 15:46:44 +08:00
YuanSheng Wang
7d78a7ee46
update resty-etcd to version 1.0 . (#1725) 2020-06-18 09:25:24 +08:00
agile6v
3afcf54fe4
doc: update echo-cn.md (#1726) 2020-06-18 09:24:55 +08:00
YuanSheng Wang
6c3e66793f
doc: updated main picture. (#1719) 2020-06-17 10:37:47 +08:00
Vinci Xu
3010e04d47
feat[batch-request]: cp all header to every request (#1697) 2020-06-16 18:09:02 +08:00
Nirojan Selvanathan
cd98a2bec8
feature: support authorization Plugin for Keycloak Identity Server (#1701) 2020-06-16 13:51:36 +08:00
Wen Ming
8b4ae7c188
doc: added doc of key for limit-* plugins. (#1714) 2020-06-16 13:36:16 +08:00
xxm404
1251385734
change: use iterate to scan items in etcd. (#1717)
related issue: #1685
2020-06-16 13:34:53 +08:00
QuakeWang
75e429af6c
doc: Update README_CN.md (#1705) 2020-06-14 10:44:44 +08:00
Ayeshmantha Perera
1764890d08
feature: support body filter plugin echo. (#1632) 2020-06-13 20:56:11 +08:00
nic-chen
56aeb4a6a9
feature: ssl enhance (#1678)
support enable or disable ssl by patch method
support encrypted storage of the SSL private key in etcd
support multi snis

Fix #1668
2020-06-13 16:10:27 +08:00
YuanSheng Wang
b34b554597
change: set default reject code for some plugins (#1696)
plugin list:

limit-count
limit-conn
limit-req
2020-06-11 15:30:14 +08:00
Wen Ming
8dba2c0e77
doc(FAQ): added example for gray release. (#1687) 2020-06-11 13:00:41 +08:00
Kev.Hu
51b867f37a
fix bug: Execute command 'make run' multiple times, will start multiple processes (#1692)
Fix #1690
2020-06-11 13:00:04 +08:00
琚致远
ce386b09f0
doc: rename grpc-transcoding-cn.md to grpc-transcode-cn.md (#1694) 2020-06-11 12:03:12 +08:00
YuanSheng Wang
2025337077
test: add test case for route with filter_func. (#1683) 2020-06-11 11:03:02 +08:00
YuanSheng Wang
9b47b31c50
change: disable reuseport in development mode, it more easy to manage worker process. (#1175) 2020-06-10 11:32:52 +08:00
YuanSheng Wang
1b7c1bc583
test case: formatted by reindex. (#1651) 2020-06-09 20:48:16 +08:00
Yousa
4b47391a6c
bugfix(CLI): generate the 'worker_cpu_affinity' config for Linux OS (#1658)
Fix #1657
2020-06-09 20:44:15 +08:00
dabue
d780f7406f
[bugfix(CLI)]: check whether the user has enabled etcd v2 protocol. (#1665) 2020-06-09 20:42:38 +08:00
nic-chen
b59a519197
feat: support resource name for route, service and upstream object. (#1655) 2020-06-09 08:26:33 +08:00
stone4774
d6cee162d6
plugin: add consumer-restriction (#1437) 2020-06-08 12:49:46 +08:00
YuanSheng Wang
c452846b81
bugfix: wildcard certificates cannot match multi-level subdomains in … (#810) 2020-06-08 10:52:25 +08:00
Yousa
12bfcece1b
doc: add 'X-API-KEY' parameter for each interface of Admin API. (#1661) 2020-06-08 10:40:18 +08:00
Yousa
f61b7036b0
[log] Optimize the buffer size and flush time (#1570)
* yousali:<log>Optimize the buffer size and flush time

1. buffer=4096 is better for Writes of more than PIPE_BUF bytes may be nonatomic
2. flush=1. Since the log buffer is lowered, the flush time should also be lowered.

* yousali:<fix>

hi, I also made a test.

```
4096  Requests/sec:  16079.75
8192 Requests/sec:  16389.52
16384 Requests/sec:  16395.30
32768 Requests/sec:  16459.71
```
I think a log buffer size of 8192 or 16384 would be appropriate.

On the other hand, the refresh time of 3 seconds is still relatively long, and 1 or 3 seconds doesn't particularly affect QPS.

So I also agree with `buffer=16384 flush=1; `
2020-06-07 23:57:54 +08:00
dabue
3228e16705
feature: support to enable HTTPS for admin API (#1648) 2020-06-07 21:02:50 +08:00
仇柯人
52fa154217
CLI: compatibility of benchmark script and apisix reload command on OSX (#1650) 2020-06-06 09:35:12 +08:00
dabue
171db26e12
test: add test case for #1625 to test the filed of overhead (#1645) 2020-06-05 21:23:42 +08:00
Wen Ming
f615cf7134
feature: support http_to_https in redirect plugin. (#1642) 2020-06-03 17:46:58 +08:00