JimMoen
ea7aa5bc41
refactor(mgmt_api): use `select_table` congruously.
2021-10-11 21:11:34 +08:00
JimMoen
b65c9908a1
refactor(mgmt_api): Clearer variable name.
2021-10-11 21:11:34 +08:00
JimMoen
77516d3854
refactor(mgmt_api): `node_query`.
2021-10-11 21:11:34 +08:00
JimMoen
e26804b9ac
refactor(mgmt_api): `cluster_query`.
2021-10-11 21:11:34 +08:00
JimMoen
705ed0ce7b
refactor(mgmt_api): Fuzzy filter using `select_table`.
2021-10-11 21:11:34 +08:00
JimMoen
5daef544a0
refactor(mgmt_api): `select_table`.
2021-10-11 21:11:34 +08:00
JimMoen
b4433f77c8
refactor(mgmt_api): Add `page_start`.
2021-10-11 21:11:34 +08:00
JimMoen
9657d7e628
refactor(mgmt_api): Use Continuation with ets selecting.
2021-10-11 21:11:34 +08:00
William Yang
67267acb70
feat(olp): management API
2021-10-04 14:36:30 +02:00
zhanghongtong
9b3917e0d3
chore(authz mnesia api): get method supports paging
...
Signed-off-by: zhanghongtong <rory-z@outlook.com>
2021-09-26 16:19:47 +08:00
JimMoen
e737f18548
fix(mgmt_api): Friendly HTTP Status Code for Listeners.
2021-09-24 14:28:52 +08:00
JimMoen
54b3dd8718
fix(mgmt_api): update listener on specific node.
2021-09-24 14:28:52 +08:00
JimMoen
2e088c0ae8
fix(mgmt_api): return 404 when node not found.
2021-09-24 14:28:52 +08:00
JimMoen
deac54c847
chore(for editor): Add comments for Emacs major mode.
2021-09-16 15:43:30 +08:00
Jim Moen
294c1a5f69
fix(emqx_mgmt): clients api query params supports epoch(milliseconds).
2021-09-16 13:54:11 +08:00
Jim Moen
8cbec2ec6e
chore(emqx_mgmt): test suite for clients api times using rfc3339.
2021-09-16 13:54:11 +08:00
Jim Moen
834a688062
fix(emqx_mgmt): clients api times using rfc3339.
2021-09-16 13:54:11 +08:00
lafirest
9ad9f619c1
Merge pull request #5676 from lafirest/feat/coap_api
...
feat(emqx_coap): add emqx_coap_api
2021-09-08 22:23:22 +08:00
DDDHuang
e2d9d9bfcb
fix: banned api rfc time & login hidden error type ( #5681 )
2021-09-08 17:53:52 +08:00
lafirest
89f48f89eb
feat(emqx_coap): add emqx_coap_api
...
1. add a request api for emqx_coap
2. fix some emqx_coap logic error
2021-09-07 19:20:52 +08:00
DDDHuang
8b2488e099
fix: routes api add params ( #5675 )
...
* fix: routes api add topic query params
* fix: routes api add node query params
2021-09-07 18:31:40 +08:00
DDDHuang
b1023d9733
fix: clients ip address params trans ( #5657 )
...
* fix: clients ip address params trans
2021-09-06 13:32:29 +08:00
Zaiming (Stone) Shi
7a4fdd7620
Merge pull request #5647 from zmstone/feat-generate-config-doc-from-schema
...
refactor(schema): prepare for hocon schema doc generation
2021-09-03 17:54:01 +02:00
Zaiming Shi
ec13463f4a
refactor(schema): prepare for hocon schema doc generation
2021-09-03 11:02:31 +02:00
DDDHuang
07821b9574
fix: cli error & routes api doc ( #5639 )
2021-09-03 16:07:34 +08:00
DDDHuang
be0fd6fddd
fix: add sub api doc & test suite ( #5634 )
...
* fix: add sub api doc & test suite
2021-09-03 10:57:54 +08:00
JianBo He
fd12a7ac9c
chore(gw): improve the gateway api swagger codes
2021-09-03 09:50:07 +08:00
JianBo He
0a7a14f4cd
chore(mgmt): callback query function with table name param
2021-09-03 09:50:07 +08:00
DDDHuang
3bc92e5845
fix: mgmt listener cli ( #5632 )
...
* fix: mgmt cli linteners
2021-09-02 17:16:13 +08:00
DDDHuang
516f2fd06e
fix: listener api doc ( #5627 )
2021-09-02 15:30:53 +08:00
DDDHuang
8d2b72c278
fix: alarms api return time ( #5612 )
2021-08-31 19:12:27 +08:00
DDDHuang
00d469976f
fix: subscriptions api share param name ( #5610 )
2021-08-31 19:04:52 +08:00
Shawn
0af39e88a4
feat(listeners): add DELETE APIs for removing the listeners
2021-08-31 19:01:11 +08:00
Shawn
4da413c453
fix(APIs): clarify the error message when update listener failed
2021-08-31 19:01:11 +08:00
Shawn
7390d2bb36
fix(listeners): test case emqx_mgmt_listeners_api_SUITE failed
2021-08-31 19:01:11 +08:00
Shawn
8c36b7879f
feat(listeners): APIs for updating the listener
2021-08-31 19:01:11 +08:00
Shawn
ca327b7c55
refactor(listener): GET /listeners API returns full config of listeners
2021-08-31 19:01:11 +08:00
DDDHuang
5b75fdd120
fix: some API code format & api doc code format ( #5601 )
2021-08-30 16:41:00 +08:00
Zaiming Shi
5165fd6b30
refactor(schema): implement new hocon_schema callbacks
2021-08-30 09:56:03 +08:00
Shawn
a4717d2209
fix(config): move config_reset under tags 'configs'
2021-08-27 19:32:44 +08:00
Shawn
e6ee8ec140
refactor(listener): rewrite the code for managing listeners
2021-08-27 19:32:44 +08:00
DDDHuang
9893c0263a
refactor: banned api ( #5578 )
2021-08-27 18:21:49 +08:00
DDDHuang
86231f795d
refactor: close managment http 8081 ( #5564 )
2021-08-27 13:46:39 +08:00
Shawn
436dba83b8
feat(logger): update configs for logger at runtime
2021-08-26 18:31:44 +08:00
Shawn
7b63f7f18b
refactor(emqx_mangement): update emqx_mangement for new listener,zone configs
2021-08-26 09:11:30 +08:00
Shawn
cc56c74964
refactor(emqx): update the tests for the new zone,listener config
2021-08-26 09:11:30 +08:00
Shawn
c5f0091b5d
refactor(config): rework - config struct for zones and listeners
...
```
listeners.tcp.default {
bind = "0.0.0.0:1883"
acceptors = 16
max_connections = 1024000
access_rules = [
"allow all"
]
proxy_protocol = false
proxy_protocol_timeout = 3s
mountpoint = ""
tcp.backlog = 1024
tcp.buffer = 4KB
}
listeners.ssl.default {
bind = "0.0.0.0:8883"
acceptors = 16
max_connections = 512000
access_rules = [
"allow all"
]
proxy_protocol = false
proxy_protocol_timeout = 3s
mountpoint = ""
ssl.versions = ["tlsv1.3", "tlsv1.2", "tlsv1.1", "tlsv1"]
ssl.keyfile = "etc/certs/key.pem"
ssl.certfile = "etc/certs/cert.pem"
ssl.cacertfile = "etc/certs/cacert.pem"
tcp.backlog = 1024
tcp.buffer = 4KB
}
listeners.quic.default {
bind = "0.0.0.0:14567"
acceptors = 16
max_connections = 1024000
keyfile = "etc/certs/key.pem"
certfile = "etc/certs/cert.pem"
mountpoint = ""
}
listeners.ws.default {
bind = "0.0.0.0:8083"
acceptors = 16
max_connections = 1024000
access_rules = [
"allow all"
]
proxy_protocol = false
proxy_protocol_timeout = 3s
mountpoint = ""
tcp.backlog = 1024
tcp.buffer = 4KB
websocket.idle_timeout = 86400s
}
listeners.wss.default {
bind = "0.0.0.0:8084"
acceptors = 16
max_connections = 512000
access_rules = [
"allow all"
]
proxy_protocol = false
proxy_protocol_timeout = 3s
mountpoint = ""
ssl.keyfile = "etc/certs/key.pem"
ssl.certfile = "etc/certs/cert.pem"
ssl.cacertfile = "etc/certs/cacert.pem"
tcp.backlog = 1024
tcp.buffer = 4KB
websocket.idle_timeout = 86400s
}
```
```
zones.default {
}
```
2021-08-26 09:11:30 +08:00
DDDHuang
78cf115a90
fix: swagger doc
2021-08-25 11:58:28 +08:00
DDDHuang
f184cd3d0e
fix: node parameters
2021-08-25 11:57:51 +08:00
Turtle
87881621bb
fix: fix typo
2021-08-25 10:13:21 +08:00
Turtle
675d23111c
chore(swagger-schema): Delete the schema that is not reused
2021-08-24 23:01:51 +08:00
Turtle
bc325e55fc
fix(authn-authz-api): fix authn/authz test cases fail
2021-08-24 18:19:21 +08:00
Turtle
e0c05242a7
refactor(minirest-callback): refactor minirest callback function
2021-08-24 18:19:21 +08:00
Turtle
ffc9846744
Merge branch 'refactor-mgmt-schema-util' of https://github.com/turtleDeng/emqx into refactor-mgmt-schema-util
2021-08-24 11:10:34 +08:00
DDDHuang
f1ba482ed6
fix: alarms api page & limit parameters
2021-08-24 11:04:39 +08:00
Turtle
47378e0e96
refactor(schema-utils): refactor mgmt swagger schema utils
2021-08-24 10:53:06 +08:00
DDDHuang
32a84b3aba
fix: clients api node params
2021-08-24 10:51:01 +08:00
DDDHuang
e88823fd36
Merge pull request #5540 from DDDHuang/fix_clients_api
...
fix: clients subscribe api
2021-08-24 09:57:17 +08:00
Turtle
5c93c35559
refactor(schema-utils): refactor mgmt swagger schema utils
2021-08-24 00:32:51 +08:00
k32
397a04ec7c
Merge pull request #5509 from k32/rlog-fixes
...
Minor fixes to improve compatibility with RLOG feature
2021-08-23 16:10:33 +02:00
DDDHuang
25bae9e397
fix: clients subscribe api
2021-08-23 10:31:24 +08:00
Turtle
d4d4ba9ea4
refactor(prometheus): refactor prometheus swagger schema
2021-08-23 09:41:46 +08:00
k32
9c74fa42a5
chore(rlog): Use the new method of creating shards
2021-08-21 17:47:53 +02:00
Shawn
f3efc89192
refactor(config): replace all ':' with '=' in the *.conf ( #5531 )
2021-08-19 19:57:42 +08:00
DDDHuang
65563e9f8c
Merge pull request #5511 from DDDHuang/delayed_api
...
feat: add delayed api
2021-08-19 17:59:29 +08:00
DDDHuang
c07fadc336
Merge pull request #5526 from DDDHuang/fix_node_stats_api
...
fix: node stats api
2021-08-19 17:59:05 +08:00
DDDHuang
11ea506af6
Merge branch 'master' into delayed_api
2021-08-19 17:24:16 +08:00
DDDHuang
2088fe17cf
fix: node stats api
2021-08-19 16:45:38 +08:00
Shawn
ef59309ed0
fix(config): check config failed when updating
2021-08-19 15:53:45 +08:00
DDDHuang
5520326ce3
feat: add delayed api
2021-08-19 10:48:12 +08:00
lafirest
adc6226eae
refactor(emqx_retainer): emqx_retainer_api use openapi model
2021-08-19 10:12:08 +08:00
Shawn
213b7c2501
fix(config_api): improve the schema for config update APIs
2021-08-19 09:38:33 +08:00
Shawn
e8e95d39ef
refactor(config): move emqx_config:get/get_raw to emqx:get_config/get_raw_config ( #5517 )
2021-08-18 14:52:57 +08:00
Shawn
5f6bcd1ebb
fix(config_api): remove config APIs that already been provided by apps
2021-08-18 11:30:20 +08:00
Shawn
bf6251e20f
refactor(config): update the return values of config handlers
2021-08-18 09:42:06 +08:00
Shawn
bd8263e324
refactor(config): move APIs for config update,remove,reset to emqx
...
Move the emqx_config:update,remove,reset APIs to emqx, to remove
the circular dependency between the modules emqx_config and
emqx_config_handler.
After this change the dependency among these modules will be:
```
emqx ---> emqx_config
| ^
| |
+ ---> emqx_conifg_handler
```
2021-08-18 09:42:06 +08:00
Shawn
7f03cd0e8b
fix(config): update the calls to emqx_config:update/2,3
2021-08-16 17:41:53 +08:00
Shawn
b652a64dbb
fix(config): reset config failed due to rootname not found
2021-08-12 17:20:05 +08:00
Shawn
8dbb14b668
feat(config): improve the API for resetting configs
2021-08-12 17:20:05 +08:00
Shawn
566d6f8d74
refactor(config): create a dedicate API for config reset
2021-08-10 15:17:45 +08:00
Shawn
a4b773b66f
refactor(config): create only one API for resetting configs
2021-08-10 15:17:45 +08:00
Shawn
74a849bfbb
refactor(config): create APIs for each root-name
2021-08-10 15:17:45 +08:00
Shawn
eee98a5803
fix(API): return 400 if delete failed
2021-08-10 15:17:45 +08:00
Shawn
139712fc94
fix(API): return 200 for PUT method
2021-08-10 15:17:45 +08:00
Shawn
2738815af9
feat(API): add a general API to update configs
2021-08-10 15:17:45 +08:00
Shawn
990c383e01
feat(emqx_config): support fetching the entire config map
2021-08-10 15:17:45 +08:00
Shawn
c745120453
fix(api): update config APIs for emqx core
2021-08-10 15:17:45 +08:00
Shawn
c9911a3b5f
feat(api): add API /v5/configs for updating configs
2021-08-10 15:17:45 +08:00
DDDHuang
1064278db1
chore: add node param in subscription
2021-08-10 14:23:17 +08:00
DDDHuang
a87521358e
chore: add some api params description
2021-08-10 11:42:58 +08:00
DDDHuang
e7cb9491c6
Merge pull request #5306 from DDDHuang/sys_info
...
chore: sys uptime by millisecond
2021-08-05 13:51:06 +08:00
Zaiming (Stone) Shi
58446217a6
Merge pull request #5341 from zmstone/split-emqx-app
...
Split emqx app
2021-08-04 09:43:10 +02:00
DDDHuang
b3ea7f9cce
Merge pull request #5378 from DDDHuang/clients_api_fix
...
fix: add cleints api query params doc & unsubscribe api
2021-08-04 15:07:51 +08:00
Zaiming Shi
e6232665a3
refactor(emqx): ensure app shutdown and reboot order
...
make use of application dependency to ensure start order.
also the same dependency top-sorted for shutdown and reboot order
2021-08-04 08:40:03 +02:00
DDDHuang
b99ec04267
Merge pull request #5379 from DDDHuang/listeners_api_fix
...
fix: listeners id param name
2021-08-04 14:39:45 +08:00
DDDHuang
ac2084daeb
Merge pull request #5382 from DDDHuang/publish_api_fix
...
fix: publish api params
2021-08-04 14:39:05 +08:00
DDDHuang
07a4d54a25
fix: unsubscribe api; query params
2021-08-03 17:08:40 +08:00
DDDHuang
8e2b1aed32
fix: publish api params
2021-08-02 17:20:15 +08:00
DDDHuang
52ff6e1b3e
fix: listeners id param name
2021-08-02 15:54:25 +08:00
DDDHuang
ca50dfe686
fix: add cleints api query params doc
2021-08-02 10:03:28 +08:00
Zaiming Shi
b10fb4e95d
refactor: unify all io:format calls to use the same macro
2021-08-01 09:36:59 +02:00
Turtle
9e97de04c9
chore(plugins): delete emqx_plugins module attributes
2021-07-30 14:32:01 +08:00
Turtle
740b729778
feat(api): support stats/metrics API aggregate
2021-07-30 09:09:45 +08:00
Turtle
fa37151b69
fix(tests): fix check apps api test cases
2021-07-26 21:35:28 +08:00
Turtle
5434aa02ff
feat(mgmt): ignore emqx_dashboard API and apps API
2021-07-26 21:35:28 +08:00
zhanghongtong
4c5b75f281
chore: rename acl to authz
...
Signed-off-by: zhanghongtong <rory-z@outlook.com>
2021-07-26 16:10:33 +08:00
Turtle
569d54a4c0
feat(dashboard): Update the configuration file to hocon
2021-07-26 15:00:40 +08:00
DDDHuang
ec88e3a404
chore: sys uptime by millisecond
2021-07-23 18:32:38 +08:00
DDDHuang
ffc7a070f4
Merge branch 'master' into api_format
2021-07-23 17:09:47 +08:00
Shawn
ec8fed9a7d
fix(test): wait a while after subscribing/unsubscribing to a topic
2021-07-23 17:06:28 +08:00
Shawn
6710695f9d
fix(test): wait a while after kicking out the client
2021-07-23 17:06:28 +08:00
Shawn
0704cbc986
refactor(config): change mqtt.session_expiry_interval to ms
2021-07-23 17:06:28 +08:00
DDDHuang
2b12fa1c05
chore: api code format; fix: atom refname; update minirest version
2021-07-23 16:40:19 +08:00
DDDHuang
e96bac87ce
refactor: alarms api; add: alarms format function
2021-07-23 13:56:23 +08:00
DDDHuang
9642bcce88
refactor: listeners api; add: listeners list function; fix: listener
...
already start error
2021-07-23 13:52:19 +08:00
DDDHuang
0cf4723c73
refactor: sub api; fix: fuzzy function ( #5287 )
2021-07-23 13:49:51 +08:00
DDDHuang
2d4d7b2923
fix: routes api function cause
2021-07-20 13:56:20 +08:00
DDDHuang
746a91efd8
Merge pull request #5263 from DDDHuang/apps_api
...
refactor: apps api; rename: error response util function
2021-07-20 11:40:59 +08:00
DDDHuang
9a64c9a464
Merge pull request #5261 from DDDHuang/routes_api
...
refactor: routes api
2021-07-20 09:40:04 +08:00
DDDHuang
51dc9093ed
refactor: apps api
2021-07-20 09:35:30 +08:00
DDDHuang
14d9b876e7
refactor: routes api
2021-07-19 17:33:48 +08:00
DDDHuang
120c2b8cdf
chore: add mgmt start listener log
2021-07-19 15:27:12 +08:00
Turtle
b9e3095ac3
fix(test): fix check emqx management test cases fail
2021-07-17 14:59:52 +08:00
Shawn
4d279e47d8
chore(merge): merge code from master
2021-07-17 01:20:57 +08:00
DDDHuang
92ae5663a6
feat: update to openapi 3.0.0
2021-07-16 23:26:56 +08:00
Shawn
bb6d7c4e0b
Merge branch 'master' into emqx_config
2021-07-16 16:49:50 +08:00
DDDHuang
1bfa6ead42
refactor: publish api; add: batch schema util function
2021-07-15 19:25:26 +08:00
DDDHuang
187d200cb7
refactor: stats api & metrics api; fix: clients api parameter type lose
2021-07-15 19:19:26 +08:00
Shawn
ba166967c9
Merge branch 'master' into emqx_config
2021-07-15 18:44:56 +08:00
DDDHuang
e838df99a9
fix: api auth header support
2021-07-15 16:20:46 +08:00
Shawn
8e32d5314d
Merge branch 'master' into emqx_config
2021-07-14 09:33:58 +08:00
DDDHuang
500047fa30
refactor: nodes api ; add: api test util module
2021-07-13 15:08:28 +08:00
DDDHuang
734a5b9420
test: add clients api SUITE & add delete sub api
2021-07-12 18:10:40 +08:00
DDDHuang
c11a8c6db6
refactor: clients api; status api; adapter minirest v1
...
The serious influence:
authn:
api
authz:
api; api test suit
dashboard:
all closed
lwm2m:
api;
modules:
api(api_topic_metrics, modules_api); test suit(emqx_modules_SUITE)
prometheus:
api
retainer:
api; api test suit
rule_engine:
api: api test suit
telemetry:
api
2021-07-09 18:09:07 +08:00
Shawn
477097c062
chore(project): merge code from master
2021-07-07 19:32:52 +08:00
DDDHuang
dc98cff27b
fix: mgmt conf & schema; prepare minirest ( #5178 )
2021-07-07 17:04:05 +08:00
Shawn
4dd72e59fa
feat(listeners): make the APIs and CLIs work with the new listener
2021-07-07 16:22:38 +08:00
Turtle
918a26e921
feat(conf): merge all conf to emqx.conf
2021-07-02 17:01:16 +08:00
DDDHuang
2c7fd0b547
chore: mgmt hoconf support ( #5153 )
2021-07-02 00:02:09 +08:00
zhanghongtong
e0f1087490
chore(mgmt): cancel plugins test case
2021-06-30 19:17:38 +08:00
Rory Z
55613593f0
chore: delete import and export feature
2021-06-25 18:45:34 +08:00
Rory Z
ecc450e942
chore: delete import and export feature
2021-06-25 18:45:34 +08:00
zhanghongtong
09e995a1b2
build: delete needless auth plugins
2021-06-25 18:45:34 +08:00
Shawn
704af9f3b1
The config handler phase2 ( #5052 )
...
* refator(config_handler): handle and validate the updates to raw_configs
* fix(hocon): update hocon to 0.8.0
* refactor(config_handler): check and apply envs only in top-level handler
* refactor(config_handler): update config from top level to bottom level
* refactor(emqx_data_bridge): move configs to emqx.conf
* fix(emqx_schema): remove the extra config path
* fix(config_handler): load the emqx.conf when starting emqx_config_handler
* fix(data_bridge): API not working
* feat(config_handler): save updated configs to emqx_override.conf
* fix(config_handler): cannot find the emqx.conf and emqx_override.conf
* fix(emqx_config): cannot find the correct path for etc dir
* fix(test): load load emqx_schema foreign refereced apps
* refactor(emqx_plugin): do not generate configs before load plugins
All configs (including the configs for plugins) now should go into
the `emqx.conf`.
* fix(tests): update the test cases for plugins
* fix(tests): don't include schema from apps when testing
* fix(tests): use emqx-ct-helper branch hocon
2021-06-25 11:47:18 +08:00
k32
a14ab5f90a
Merge pull request #5053 from k32/dev/mgmt-shard
...
feat(emqx_management): mqtt_app shard
2021-06-23 19:42:47 +02:00
turtleDeng
5a560a153c
feat(telemetry): Update the configuration file to hocon ( #5064 )
2021-06-23 17:12:24 +08:00
Rory Z
263aaff6d6
feat: add authz ( #4852 )
...
* feat(authorization): add authorization api
* feat(authorization): add check function
* feat(authorization): use hocon config file
* feat(authz): add mysql connector
* feat(authz): support pgsql
* feat(connector): support redis
* chore(authz): use "publish/subscribe/all" instead of "pub/sub/pubsub"
2021-06-23 10:55:38 +08:00
k32
239255f251
feat(emqx_management): mqtt_app shard
2021-06-21 18:02:11 +02:00
DDDHuang
1e0f6f4dea
chore: more node info
2021-06-17 21:09:06 +08:00
Zaiming Shi
b6b144fa31
test: expect unsupported_version for now
2021-06-05 15:04:11 +02:00