Commit Graph

3864 Commits

Author SHA1 Message Date
lafirest
68961c7479
Merge pull request #7397 from lafirest/test/prometheus_coverage
test(prometheus): improve test coverage to 88%
2022-03-25 02:40:13 +08:00
Thales Macedo Garitezi
2e05e45245
Merge pull request #7385 from thalesmg/bump-ekka-0-12-3
chore: bump ekka -> 0.12.3, mria -> 0.2.2
2022-03-24 11:47:28 -03:00
Dmitrii
f4125fbe0d
Merge pull request #7386 from ieQu1/doc-schema-3
docs(schema): Add descriptions to the schema
2022-03-24 14:05:38 +01:00
Zaiming (Stone) Shi
14e12a79d8
Merge pull request #7388 from zmstone/chore-delete-epmd-related
chore: delete epmd related ports and settings
2022-03-24 13:16:54 +01:00
Thales Macedo Garitezi
a310d2390e
Merge pull request #7381 from thalesmg/fix-telemetry-mac-symlink
fix(test): use a real copy of BUILD_INFO for testing
2022-03-24 09:04:28 -03:00
DDDHuang
88403559af
fix(conf): auto subscription, batter docs
Co-authored-by: Dmitrii <99872536+ieQu1@users.noreply.github.com>
2022-03-24 18:42:54 +08:00
Dmitrii
fa8ab06368
docs: Apply remark
Co-authored-by: Thales Macedo Garitezi <thalesmg@gmail.com>
2022-03-24 11:39:35 +01:00
Dmitrii
1c65176362
docs: Apply remark
Co-authored-by: Thales Macedo Garitezi <thalesmg@gmail.com>
2022-03-24 11:39:11 +01:00
DDDHuang
08de17e631 fix: api examples spec error 2022-03-24 18:01:47 +08:00
firest
8c8162facb test(prometheus): improve test coverage to 88% 2022-03-24 16:17:40 +08:00
DDDHuang
9037b807ae fix: add api auth failed code def & fix bad spelling 2022-03-24 12:12:19 +08:00
DDDHuang
ad12c3a4e3 fix(doc): add auto sub docs & more notes 2022-03-24 10:02:59 +08:00
JianBo He
5a6023676e
Merge pull request #7360 from JimMoen/fix-authz-cluster-update-config
fix authz cluster update config
2022-03-24 09:21:27 +08:00
Zaiming (Stone) Shi
0a5d1b0f52 chore: delete epmd related ports and settings 2022-03-23 22:16:10 +01:00
Zaiming (Stone) Shi
5458490bc3 chore: add namespace to bridge schema 2022-03-23 21:12:55 +01:00
ieQu1
077ef073e5 docs(schema): Add descriptions to the schema 2022-03-23 19:05:25 +01:00
Thales Macedo Garitezi
29ca83184a
chore: bump ekka -> 0.12.3, mria -> 0.2.2 2022-03-23 14:41:10 -03:00
Thales Macedo Garitezi
d312bc0f28
feat: add advanced mqtt features to telemetry 2022-03-23 14:05:04 -03:00
Thales Macedo Garitezi
7e3b9bb356
fix(test): use a real copy of BUILD_INFO for testing
On macOS, apparently symlinks can cause problems when rebar3 tries to
copy files to the `_build` directory.  So we now use a copy of
`rel/BUILD_INFO`.  Unfortunately, this has the downside of this copy
possibly going stale over time.
2022-03-23 13:29:11 -03:00
Dmitrii
b163fce35b
Merge pull request #7382 from ieQu1/doc-schema-2
docs: Add definitions to the schema
2022-03-23 15:19:20 +01:00
JimMoen
d20388cf01 test(authz): acl file rules update 2022-03-23 21:14:43 +08:00
JimMoen
fc687bed27 test(authz): authz mnesia suite json body 2022-03-23 21:14:43 +08:00
JimMoen
41c808a262 fix(authz): write acl and cert files after nodes config synced 2022-03-23 21:14:43 +08:00
JimMoen
c2e1c38fdf refactor(authz): prepend and append only allow one source 2022-03-23 21:14:43 +08:00
JimMoen
843e12ad16 refactor(authz): unifined function names and var names 2022-03-23 21:14:43 +08:00
Chris Hicks
e659748153
Merge pull request #7306 from mononym/EMQX-3917-add-test-cases-for-connectors-mongo-db
refactor: refactor mongo connector test suite
2022-03-23 14:01:26 +01:00
ieQu1
8967e13eee docs(schema): Move descriptions from emqx.conf.all 2022-03-23 13:52:54 +01:00
ieQu1
ee805f12a6 docs(schema): Add documentation for prometheus and logger 2022-03-23 13:52:54 +01:00
ieQu1
d1e8fefa1f docs(schema): Add descriptions of events 2022-03-23 13:52:51 +01:00
JianBo He
617022f276
Merge pull request #7372 from lafirest/fix/coap_events
fix(coap): trigger disconnect logic when the client manually disconne…
2022-03-23 19:36:23 +08:00
Dmitrii
a0bec0d921
Merge pull request #7103 from ieQu1/doc-schema
docs: Add to the schema
2022-03-23 10:46:11 +01:00
firest
ab2f5b9bb7 fix(coap): fix system topic case 2022-03-23 17:25:52 +08:00
ieQu1
503c7f00ae docs(schema): Fix typos 2022-03-23 08:40:59 +01:00
firest
ab51d8ab8e fix(coap): trigger disconnect logic when the client manually disconnected 2022-03-23 14:19:00 +08:00
JianBo He
97c05d3a72 chore(emqx): fmt codes 2022-03-23 09:53:18 +08:00
JianBo He
a889b0b6a9 test: update test/emqx_channel_SUITE.erl
Co-authored-by: Thales Macedo Garitezi <thalesmg@gmail.com>
2022-03-23 09:53:18 +08:00
JianBo He
df74c180b7 fix(channel): send will_msg if client has been kicked 2022-03-23 09:53:18 +08:00
JianBo He
87a29beb5f fix(channel): send DISCONNECT packet if connection has been kicked
fix #7241
2022-03-23 09:53:18 +08:00
ieQu1
6f4e7dc118 docs(schema): Formatting 2022-03-22 20:19:18 +01:00
Zaiming (Stone) Shi
ab40036a45
Merge pull request #7363 from zmstone/docs-add-more-desc
docs: add doc for stats
2022-03-22 19:41:35 +01:00
Thales Macedo Garitezi
fbfbaa8a9a
test: add more tests to telemetry 2022-03-22 15:28:42 -03:00
Thales Macedo Garitezi
35a523230f
feat: add mqtt runtime insights to telemetry data 2022-03-22 15:28:19 -03:00
ieQu1
c6b0e8806f docs(schema): Add descriptions to the schema 2022-03-22 19:09:20 +01:00
Zaiming (Stone) Shi
f08c317939 docs: fix spellcheck 2022-03-22 14:07:51 +01:00
Thales Macedo Garitezi
4d3157743e
style: format emqx_modules 2022-03-22 09:31:55 -03:00
Thales Macedo Garitezi
650683ac19
Merge pull request #7333 from thalesmg/telemetry-revamp1
Telemetry revamp part 1

- Remove obsolete `active_modules`.
- Don't use `mnesia(boot)` callback for indirect initialization.
- Add build info and vm specs to the exported data.
2022-03-22 09:03:13 -03:00
Zaiming (Stone) Shi
7a9ad86574 chore: increase line width to 120
and fix bad formats from erlfmt
2022-03-22 11:34:29 +01:00
Zaiming (Stone) Shi
f9bad0412b docs: add doc for stats 2022-03-22 11:34:29 +01:00
JianBo He
83e16a5bc5
Merge pull request #7343 from HJianBo/fix-gw-bugs 2022-03-22 17:49:02 +08:00
firest
49fc1ab1c0 fix(exhook): use emqx_hook_metrics to count hook call information 2022-03-22 16:59:49 +08:00
lafirest
7e8bf82573
Merge pull request #7352 from lafirest/fix/auto_sub_empty_topic
fix(auto_subscribe): make a warning if the topic is empty when auto s…
2022-03-22 15:15:18 +08:00
firest
d657a161db fix(auto_subscribe): improve log information 2022-03-22 15:02:25 +08:00
firest
0c3d02b02d test(coap): add a observe test case 2022-03-22 11:57:49 +08:00
Thales Macedo Garitezi
7ec6947c02
fix: add http timeout to prevent hanging 2022-03-21 14:24:40 -03:00
Thales Macedo Garitezi
bf82b2d45c
style: fix typo 2022-03-21 14:24:40 -03:00
Thales Macedo Garitezi
e8682a1107
feat: add build info and vm specs to telemetry 2022-03-21 14:24:40 -03:00
Thales Macedo Garitezi
5b49f3eee8
chore: rm active_modules 2022-03-21 14:24:40 -03:00
Thales Macedo Garitezi
98f950881f
chore: drop mnesia(boot), create tables on start up 2022-03-21 14:24:40 -03:00
Zaiming (Stone) Shi
91bcf02970 chore: format code apps/emqx 2022-03-21 16:51:31 +01:00
Xinyu Liu
ecf4d4b206
Merge pull request #7356 from DDDHuang/update_version
chore: release 5.0.0 beta4
2022-03-21 21:16:48 +08:00
Yang Miao
79b8c63b54
Merge pull request #7355 from EMQ-YangM/upstream_master
fix(rule): replace sql crlf with spaces
2022-03-21 21:15:15 +08:00
zhouzb
9820728e5c
Merge pull request #7351 from JimMoen/fix-authz-api-pem-check
fix authz api flaky status code.
2022-03-21 20:55:36 +08:00
DDDHuang
e86fd9c4cb feat: release V5.0.0 beta4 2022-03-21 19:45:03 +08:00
EMQ-YangM
6cff53ad67 fix(rule): replace sql crlf with spaces
get around the hocon bug: error handling escape character \n
2022-03-21 19:26:06 +08:00
JianBo He
6da4592bb0 chore: fix elivs warnings 2022-03-21 18:52:41 +08:00
JianBo He
094c4ad262 fix(exproto): don't carry the ssl confs if ssl.enable is false 2022-03-21 18:44:01 +08:00
firest
bad04e3571 fix(auto_subscribe): make a warning if the topic is empty when auto subscribe 2022-03-21 18:37:33 +08:00
JianBo He
670749493b fix(coap): reject duplicated connection request 2022-03-21 18:17:24 +08:00
JianBo He
053f9b422c fix(stomp): fix client.disconnect not trigger 2022-03-21 18:17:24 +08:00
JianBo He
5682dcb72e fix(gw): enrich conninfo for coap&lwm2m 2022-03-21 18:17:24 +08:00
JianBo He
edb1460b56 chore(rule-engine): more safe generate even_msg content 2022-03-21 18:17:24 +08:00
JianBo He
3645cb244b fix(gw): throw the exproto start grpc server starting failure error 2022-03-21 18:17:24 +08:00
JimMoen
3769044a57 fix(authz_api): ssl pem check failed returns 400 2022-03-21 18:05:43 +08:00
Zhongwen Deng
946d62e40a test: don't run api_plugins_SUITE for now 2022-03-21 17:57:57 +08:00
Zhongwen Deng
88e0c4067f fix: api_plugins common test failed bump dashboard to v0.25.0. 2022-03-21 17:56:22 +08:00
Zhongwen Deng
5c9a87f251 chore: fix elvis warning: len_length is too long. 2022-03-21 17:56:22 +08:00
Zhongwen Deng
df6141e4b8 test: fix plugin ct failed 2022-03-21 17:56:22 +08:00
Zhongwen Deng
2c879b7e13 chore: simplify nest case function 2022-03-21 17:56:22 +08:00
Zhongwen Deng
bf6339ebf4 chore: upgrade hocon to 0.26.3 to fix dialyzer warning 2022-03-21 17:56:22 +08:00
Zhongwen Deng
f81eb8f62f fix: remove TODO from hot-config-schema.json. 2022-03-21 17:56:22 +08:00
Zhongwen Deng
267fd398a6 fix: elvis warning 2022-03-21 17:56:22 +08:00
Zhongwen Deng
f051424b3b test: add zones udpate/delete common test 2022-03-21 17:56:22 +08:00
Zhongwen Deng
be0c26130a feat: add transate_to meta to root schema. 2022-03-21 17:56:22 +08:00
Zhongwen Deng
18886f657b feat: add emqx_config_logger. 2022-03-21 17:56:22 +08:00
DDDHuang
eb4be03012
Merge pull request #7329 from DDDHuang/fix_api
fix: generate http api response code
2022-03-21 17:30:20 +08:00
zhongwencool
2c8cd8a44a
Merge pull request #7331 from lafirest/test/emqx_psk_coverage
test(psk): improve test coverage
2022-03-21 17:24:51 +08:00
JimMoen
1ed8e783f4 fix(authz_api): rm authz sources full update 2022-03-21 16:43:08 +08:00
JimMoen
0b7f1ab69c refactor(authz_api): avoid copy paste 2022-03-21 16:43:08 +08:00
JimMoen
0ee3e49db7 chore: rm unused macro and func, fix unchanged product name 2022-03-21 16:43:08 +08:00
JimMoen
188d876b1c fix(api): fix unmatched position parsing 2022-03-21 16:43:08 +08:00
Xinyu Liu
5456a2efa1
Merge pull request #7350 from terry-xiaoyu/update_rule_keep_metrics
fix(rule): update rules without reset the metrics
2022-03-21 16:41:58 +08:00
DDDHuang
9a6653d152 fix(api): slow subs update config return 2022-03-21 15:55:54 +08:00
Yang Miao
fe95e6ffbb
Merge pull request #7349 from EMQ-YangM/http_code
fix: unify http response code for auhtn & authz
2022-03-21 15:32:32 +08:00
Shawn
50ee6ad2e2 fix(rule): update rules without reset the metrics 2022-03-21 15:06:34 +08:00
DDDHuang
e517b41a4d fix(api): desc & remove useless api 2022-03-21 15:03:37 +08:00
EMQ-YangM
dc8408e378 fix(emqx_authz_api): fix error code 2022-03-21 14:42:09 +08:00
EMQ-YangM
a34e750ebe fix: unify http response code for auhtn & authz 2022-03-21 14:16:52 +08:00
DDDHuang
010dbbdb26 fix: bad code style 2022-03-21 14:12:19 +08:00
DDDHuang
e1b6c0770d fix: getway bad api spec 2022-03-21 14:12:19 +08:00
DDDHuang
66c6ea4c23 fix: dashboard swagger desc & description check 2022-03-21 14:12:19 +08:00
DDDHuang
b9b5e376a6 fix: dialyzer & bad func spec 2022-03-21 14:12:19 +08:00
DDDHuang
4d4348759d fix: generate connector & exhook & retainer api response code 2022-03-21 14:12:19 +08:00
DDDHuang
60f107f91f fix: generate dashboard api response code 2022-03-21 14:12:19 +08:00
DDDHuang
15b8203ac1 fix: generate ggateway api response code 2022-03-21 14:12:19 +08:00
DDDHuang
74e6fa5a94 fix: generate bridge api response code
fix: generate connector api response code SUITE

fix: generate exhook api response code
2022-03-21 14:12:19 +08:00
JianBo He
c597cdc0e5
Merge pull request #7321 from HJianBo/mqtt-sn-resume-subs-5
feat(sn): introduce subs_resume option
2022-03-21 11:38:04 +08:00
firest
b71eaf1290 fix(psk): fix spell error 2022-03-21 11:28:29 +08:00
firest
ea52e0c05d fix(psk): fix too long style error 2022-03-21 11:28:29 +08:00
firest
435b22273d test(psk): improve test coverage 2022-03-21 11:28:29 +08:00
lafirest
841024461c
Merge pull request #7346 from lafirest/fix/spellcheck
fix(retainer): fix spellcheck in schema
2022-03-21 10:48:37 +08:00
JimMoen
a5a9613512
Merge pull request #7338 from JimMoen/fix-mongo-servers-schema
fix(mongo): servers for mongo_sharded and mongo_rs
2022-03-21 10:19:20 +08:00
firest
8e5c118562 fix(retainer): fix spellcheck in schema 2022-03-21 10:14:05 +08:00
JianBo He
a85b31d904
Merge pull request #7337 from lafirest/fix/retainer_update_api
fix(retainer): don't translate config content, keep it in raw
2022-03-20 06:52:48 +08:00
Xinyu Liu
40f1bfb3ab
Merge pull request #7332 from EMQ-YangM/add_authn_authz_status_api
feat: add authn, authz status api
2022-03-18 18:12:25 +08:00
firest
114f676150 fix(limiter): make elvis happy 2022-03-18 18:04:47 +08:00
JimMoen
ed021d125f fix(mongo): servers for mongo_sharded and mongo_rs 2022-03-18 17:58:27 +08:00
firest
5459e38e15 fix(retainer): don't translate config content, keep it in raw 2022-03-18 17:16:03 +08:00
EMQ-YangM
339e459589 fix(emqx_authn): disable invalid_dynamic_call
cc

aa
2022-03-18 17:07:56 +08:00
firest
beba7c9692 fix(limiter): improve code style and description 2022-03-18 16:00:42 +08:00
firest
d28b34f0d1 fix(limiter): improve test case and fix some bugs 2022-03-18 16:00:42 +08:00
firest
32030c8369 feat(limiter): remove the group(zone) level 2022-03-18 16:00:42 +08:00
lafirest
e7dec7835f feat(limiter): change zone to group and simplify config 2022-03-18 16:00:42 +08:00
EMQ-YangM
d1857ba454 feat: add authn, authz status api 2022-03-18 14:36:33 +08:00
lafirest
d231b2222e
Merge pull request #7328 from lafirest/fix/delayed_lookup
fix(delayed): make it possible to lookup/delete other node's delayed …
2022-03-18 00:53:53 +08:00
Thales Macedo Garitezi
89c8ba7e1a
Merge pull request #7326 from thalesmg/bump-gen-rpc
chore: bump gen_rpc
2022-03-17 13:50:28 -03:00
JianBo He
43c01117bb fix(sn): fix typos 2022-03-17 18:40:13 +08:00
JianBo He
fbc0240f26 feat(sn): introduce subs_resume option
As the mqtt-sn v1.2 spec metioned, the gateway will be able to sync the
subscriptions topic-name registry to client when the client resume
it's session

port from: https://github.com/emqx/emqx/pull/7300
2022-03-17 18:38:54 +08:00
firest
3fc4236565 fix(delayed): make it possible to lookup/delete other node's delayed message 2022-03-17 14:36:55 +08:00
lafirest
6453479f44
Merge pull request #7324 from lafirest/fix/delayed_terminate_v5
fix(delayed): cancel the publish timer when terminate
2022-03-17 10:55:56 +08:00
Thales Macedo Garitezi
c45578c130
chore: bump gen_rpc 2022-03-16 15:20:13 -03:00
firest
43a935286a fix(delayed): cancel the publish timer when terminate 2022-03-16 17:51:29 +08:00
Zhongwen Deng
9c355994e9 fix: add apps error code. 2022-03-16 17:20:26 +08:00
Yang Miao
e6fcef16ba
Merge pull request #7319 from EMQ-YangM/ignore_authz_authn_metrics_status
Ignore authz, authn metrics status
2022-03-16 14:41:37 +08:00
Xinyu Liu
ef8ad9b1f0
Merge pull request #7314 from terry-xiaoyu/demo0315
Fix some issues in rule engine found in the demo session
2022-03-16 13:52:05 +08:00
EMQ-YangM
37c4d68f40 fix: ignore authn, authz status and metrics 2022-03-16 11:14:21 +08:00
EMQ-YangM
eb5570dd07 fix: disable authn_api, authz_api_sources swagger spec 2022-03-16 10:16:50 +08:00
Shawn
a892ff9006 fix(dialyzer): update the specs for the rule() 2022-03-16 10:13:16 +08:00
Zaiming (Stone) Shi
4fce9d4cc3
Merge pull request #7305 from zmstone/chore-split-ct-jobs
ci: run ct in concurrent jobs
2022-03-15 21:15:19 +01:00
Zaiming (Stone) Shi
d9ebca3294 test: fix emqx_retainer_api_SUITE infinity wait for table 2022-03-15 20:40:28 +01:00
Zaiming (Stone) Shi
9d96d3d10a test: fix auto_subscribe test case 2022-03-15 20:40:28 +01:00
Zaiming (Stone) Shi
4a35aaa50e
Merge pull request #7304 from zmstone/update-emqtt-to-1.4.8
chore: update emqtt to 1.4.8
2022-03-15 17:50:38 +01:00
Shawn
93c5fa60b4 fix(rules): store rule configs to cluster config files 2022-03-16 00:39:01 +08:00
Shawn
869dc1a081 fix(rules): ensure create_at unchanged after rule is updated 2022-03-16 00:38:42 +08:00
Zaiming (Stone) Shi
d7d0525733
Merge pull request #7313 from zmstone/chore-pin-ekka-0.12.2
chore: pin ekka 0.12.2
2022-03-15 14:30:18 +01:00
Ilya Averyanov
402cb9190f
Merge pull request #7312 from savonarola/fix-retainer-tests
chore(retainer): fix mqtt_v5 test suite
2022-03-15 16:26:43 +03:00
Thales Macedo Garitezi
58705a1383
Merge pull request #7289 from thalesmg/fix-ekka-monitor-cleanups
fix(ekka): run cleanups on node down events
2022-03-15 09:39:37 -03:00
Zaiming (Stone) Shi
f8d8bcb8bc chore: pin ekka 0.12.2
with mnesia_down vs node_down fix
and fast rocksdb build
2022-03-15 12:16:47 +01:00
Zaiming (Stone) Shi
420ad32aa7 chore: update emqtt to 1.4.8 2022-03-15 12:11:44 +01:00
Ilya Averyanov
b3193181b2 chore(retainer): fix mqtt_v5 test suite 2022-03-15 12:55:02 +03:00
JimMoen
a04bb57c19
Merge pull request #7310 from JimMoen/enhanced-authn-mnesia-fuzzy-query
feat(authn): enhanced authn users fuzzy searching
2022-03-15 17:18:08 +08:00