William Yang
3c73c6b7c6
feat(quic): bump quicer to 0.0.107
2023-02-20 10:42:55 +01:00
William Yang
0351b32cf4
test(quic): disable shutdown policy for large payload test
2023-02-20 10:42:55 +01:00
William Yang
f4f346e387
test(quic): fix flaky test
2023-02-20 10:42:55 +01:00
William Yang
db544cf9ad
fix: emqtt vsn in rebar after rebase
2023-02-20 10:42:55 +01:00
William Yang
dc26790495
test(quic): trace why we get verify_peer
2023-02-20 10:42:55 +01:00
William Yang
f8fd201a8c
test(quic): fix flaky test
2023-02-20 10:42:55 +01:00
William Yang
d8fa65ea09
fix(quic): handle timeout event in data stream
2023-02-20 10:42:55 +01:00
William Yang
38247a9d62
feat(quic): bump quicer to 0.0.106
2023-02-20 10:42:55 +01:00
William Yang
381eb8ec68
chore(quic): fix dialyzer
2023-02-20 10:42:55 +01:00
William Yang
282d1a6829
ci: build dialyzer PLT with quicer, jq and bcrypt
2023-02-20 10:42:55 +01:00
William Yang
88cdfcc4a6
test(quic): excl. multistream SUITE when BUILD_WITHOUT_QUIC
2023-02-20 10:42:55 +01:00
William Yang
de810e04fd
chore(quic): clean test code
2023-02-20 10:42:55 +01:00
William Yang
98a72d40ce
fix(emqx_connection): do not raise an exception for normal shutdown
2023-02-20 10:42:55 +01:00
William Yang
1692a16778
feat(quic): handle ctrl stream normal shutdown
2023-02-20 10:42:55 +01:00
William Yang
2a6cdd9da6
test(quic): enhance large payload test
2023-02-20 10:42:55 +01:00
William Yang
00f615a1e3
chore(quic): clean code
2023-02-20 10:42:55 +01:00
William Yang
22dcf5907e
feat(quic): bump to quicer 0.0.104
2023-02-20 10:42:55 +01:00
William Yang
f65ac5422e
test(quic): improve coverage
2023-02-20 10:42:55 +01:00
William Yang
5764994436
feat(quic): bump to quicer 0.0.103
2023-02-20 10:42:55 +01:00
William Yang
1e8b2e247e
feat(quic): 0-RTT multi-streams data
2023-02-20 10:42:55 +01:00
William Yang
71d3148544
feat(quic): stream use active_n 10
2023-02-20 10:42:55 +01:00
William Yang
0173121a30
feat(quic): improve coverage and remove unused code
2023-02-20 10:42:55 +01:00
William Yang
0544a3ca0c
fix(quic): setops on stream and handle peer needs stream
...
- setopts should go for stream
- handle peer_needs_streams for none msquic clients
2023-02-20 10:42:55 +01:00
William Yang
ceac5a0ec7
feat(quic): bump to quicer 0.0.101
2023-02-20 10:42:55 +01:00
William Yang
1840a7f923
test(quic): improve coverage
2023-02-20 10:42:55 +01:00
William Yang
5bdcb0562d
feat(quic): workaround to flushing the send buffer after conn shutdown
...
Could not find a way to ensure msquic flush the send buffer after
calling ConnectionShutdown.
So just close the ctrl stream and let conn owner shutdown the conn.
2023-02-20 10:42:55 +01:00
William Yang
04a8a49dbe
test: update testcase for new emqtt
2023-02-20 10:42:55 +01:00
William Yang
7d9bd33de9
feat(quic): bump quicer version to 0.0.100
2023-02-20 10:42:55 +01:00
William Yang
9b52beaee9
fix(quic): handle fast_close while handshake fail
2023-02-20 10:42:55 +01:00
William Yang
9f696928b6
feat(quic): multi streams
2023-02-20 10:42:55 +01:00
William Yang
a51c886908
fix: prepare for multi stream
2023-02-20 10:42:55 +01:00
William Yang
2d09a054e3
chore: add some typing
2023-02-20 10:42:55 +01:00
William Yang
00b59b4939
feat(quic): WIP multi-stream
2023-02-20 10:42:55 +01:00
Zaiming (Stone) Shi
6f1eaca253
chore: bump version to e5.0.1-alpha.1
2023-02-20 08:28:14 +01:00
ieQu1
794bedef9f
fix(emqx_ctl): Start CLI before ekka
2023-02-17 09:50:50 +01:00
Zaiming (Stone) Shi
719e02cc96
fix(metrics): use the same data source for RAM usage info
2023-02-15 16:11:39 +01:00
William Yang
4e6c7bfcbe
chore: changelog for hibernate_after
2023-02-14 16:26:58 +01:00
William Yang
d424d77e84
chore(TLS): hibernate_after default to 5s, follow version 4.x
2023-02-14 16:26:58 +01:00
William Yang
572e50e0a2
perf: add TLS config hibernate_after, reduce memory footprint
2023-02-14 16:26:55 +01:00
Zaiming (Stone) Shi
7d9b0f4826
chore: bump version to v5.0.17
2023-02-13 08:53:09 +01:00
Zaiming (Stone) Shi
a11217aa0f
chore: bump version to v5.0.17
2023-02-12 11:36:53 +01:00
Zaiming (Stone) Shi
d1eb788ee1
Merge pull request #9916 from qzhuyan/fix/william/bridge-mqtt-TLS-verify-wildcard-peer
...
fix(mqtt-bridge): support verify TLS wildcard cert
2023-02-10 09:39:35 +01:00
Zaiming (Stone) Shi
40f719a34d
Merge pull request #9936 from id/feat-disable-disksup
...
feat: disable disksup by default
2023-02-10 09:17:13 +01:00
Zaiming (Stone) Shi
42dfaf3ef2
Merge pull request #9910 from sstrigler/EMQX-8861-improve-bridge-restart-button-behaviour
...
EMQX 8861 improve bridge restart button behaviour
2023-02-09 18:00:48 +01:00
Zaiming (Stone) Shi
4e71f1cbc5
Merge pull request #9940 from zmstone/0208-ensure-no-leading-br-in-docs
...
Add style checks for i18n.conf files
2023-02-09 17:37:44 +01:00
Zaiming (Stone) Shi
157c919ba1
ci: add i18n style check script
2023-02-09 11:41:52 +01:00
ieQu1
123fea44de
chore(ekka): Bump version to 0.14.0
2023-02-08 17:35:14 +01:00
Zaiming (Stone) Shi
5df667738a
docs: fix bad i18n files
2023-02-08 17:25:22 +01:00
Ivan Dyachkov
fdb802975c
feat: disable disksup by default
2023-02-08 15:33:35 +01:00
Zaiming (Stone) Shi
d628aba079
Merge pull request #9718 from zmstone/0108-refactor-authn-schema-union-member-selector
...
0108 refactor authn schema union member selector
2023-02-07 16:45:47 +01:00
William Yang
6113d467c1
fix(mqtt-bridge): support verify TLS wildcard cert
2023-02-07 16:40:55 +01:00
Stefan Strigler
86f3f5787f
feat: allow to manually re-connect disconected bridge
2023-02-07 11:58:30 +01:00
Zaiming (Stone) Shi
4653ca65f7
fix(logger): fix REPORT_CB/2 CRASH logs
2023-02-06 23:46:49 +01:00
Zaiming (Stone) Shi
dc8f0c5101
refactor(authn): no need to check config at app boot
2023-02-06 18:19:22 +01:00
Zaiming (Stone) Shi
83e66da2aa
fix(authn): throw exception on invalid config from the API
2023-02-06 14:12:50 +01:00
Zaiming (Stone) Shi
a9c650da66
refactor: for better test coverage
2023-02-04 07:59:49 +01:00
Zaiming (Stone) Shi
2ebc89e339
refactor: authn schema union selector
2023-02-04 07:58:43 +01:00
Zaiming (Stone) Shi
4f91bf415c
fix: schema check error reason pattern
2023-02-04 07:58:06 +01:00
Zaiming (Stone) Shi
65319567cc
chore: no type check for 3rd party auth
2023-02-04 07:56:29 +01:00
Zaiming (Stone) Shi
fbc52330f3
refactor: do not re-check config in post_config_update
...
now that the type is not lazy, it should have already been checked
when reaching the post_config_update step
2023-02-04 07:56:29 +01:00
Zaiming (Stone) Shi
15035f7eb0
refactor: remove lazy type for authentication
...
The idea of using lazy type for authentication was to make the
config check easy to extend at runtime. However the reality
is: it's overly complicated.
It's more likely that people will just continue to implementing
the auth hook callbacks instead of injecting config schema
at runtime.
2023-02-04 07:56:29 +01:00
Zaiming (Stone) Shi
1e0fe270bc
chore: bump emqx app vsn to 5.0.17
2023-02-02 20:32:09 +01:00
Zaiming (Stone) Shi
94768c9f44
Merge remote-tracking branch 'origin/master' into 0202-merge-release-50-back-to-master
2023-02-02 20:21:26 +01:00
Zaiming (Stone) Shi
5fe3a0b1b3
Merge pull request #9898 from zmstone/0202-upgrade-to-dashboard-e1.0.3
...
chore: upgrade dashboard to v1.1.7 for ce and e1.0.3 for ee
2023-02-02 17:41:52 +01:00
Zaiming (Stone) Shi
42462db8b8
chore: bump version to v5.0.16 and e5.0.0
2023-02-02 17:26:00 +01:00
Zaiming (Stone) Shi
7ea140599a
Merge pull request #9894 from id/ci-always-run-static-checks
...
ci: always run static_checks
2023-02-02 16:33:19 +01:00
Zaiming (Stone) Shi
980ba2fd35
docs: Update apps/emqx/i18n/emqx_schema_i18n.conf
...
Co-authored-by: Ivan Dyachkov <dev@dyachkov.org>
2023-02-02 14:19:37 +01:00
Zaiming (Stone) Shi
0e299642cb
chore: function renamed but forgot to update xref excemption
2023-02-02 14:16:23 +01:00
Zaiming (Stone) Shi
d5c482b0b0
docs: remove timer unit from description
...
the user input has time unit. e.g. "5s" for 5 seconds etc.
2023-02-02 13:49:20 +01:00
firest
031b36da32
feat(banned): filter out banned messages from mqueue
2023-02-02 20:20:52 +08:00
Kjell Winblad
2cf193e2fd
Merge pull request #9839 from kjellwinblad/kjell/fix/Authorization_header_log_leak_webhook/EMQX-8791
...
fix: Authorization header leak in log entries for webhook
2023-02-02 10:38:42 +01:00
zhongwencool
e5bc787467
Merge pull request #9872 from zmstone/0131-improve-help-text
...
docs: improve docs for system monitoring config
2023-02-02 14:45:03 +08:00
Zaiming (Stone) Shi
6fd30a7e81
docs: improve docs for system monitoring config
2023-02-01 20:21:08 +01:00
Zaiming (Stone) Shi
ec3031271b
Merge pull request #9883 from zmstone/0201-upgrade-enterprise-dashboard-to-e1.0.2
...
0201 upgrade enterprise dashboard to e1.0.2
2023-02-01 16:26:21 +01:00
Zaiming (Stone) Shi
32d18ec594
Merge pull request #9878 from zmstone/0201-upgrade-ehttpc-0.4.6
...
fix(ehttpc): fix crash when webhook bridge uses `hash` pool type.
2023-02-01 15:00:28 +01:00
Zaiming (Stone) Shi
38ef37d109
chore: bump release version to e5.0.0-rc.4
2023-02-01 14:52:08 +01:00
zhongwencool
13511d2782
Merge pull request #9856 from zhongwencool/alarm-percent-decimals
...
fix: /api/nodes is timeout when emqx in high load
2023-02-01 19:40:53 +08:00
Zaiming (Stone) Shi
96a18e7105
chore: upgrade to hocon 0.35.3
2023-02-01 10:52:01 +01:00
Zhongwen Deng
ced55719ef
chore: only run t_sys_mem_check ct in linux
2023-02-01 14:47:41 +08:00
Zhongwen Deng
95ef1e806c
chore: don't crash when add_handler failed
2023-02-01 11:24:27 +08:00
Zhongwen Deng
9cbad5297c
fix: primary logger level not update
2023-02-01 11:16:30 +08:00
Zhongwen Deng
b6e6315b50
feat: change loads from string to float
2023-02-01 10:07:22 +08:00
Zhongwen Deng
0b19be074c
feat: cache OTP_VERSION in persistent_term
2023-02-01 10:07:22 +08:00
Zhongwen Deng
6162f90610
fix: don't crash when OTP_VERSION file is missing
2023-02-01 10:07:22 +08:00
Zhongwen Deng
5783127c30
test: cpu_sup:load mock test
2023-02-01 10:07:22 +08:00
Zhongwen Deng
2d67bb3fb6
fix: /api/nodes is timeout if emqx in high load
2023-02-01 10:07:22 +08:00
Zaiming (Stone) Shi
7e8253e3af
chore: bump version to e5.0.0-rc.3
2023-01-31 20:45:28 +01:00
Zaiming (Stone) Shi
ddfbc0a19f
refactor: refresh logger config before starting listeners
2023-01-31 18:50:16 +01:00
Zaiming (Stone) Shi
605d9972e4
fix(config): avoid calling emqx:update_config/2 for logger refresh
...
Prior to this fix, whatever configured for loggers are persisted to
cluster-override.conf.
This may cause troulbe for users who changes boot mode.
For example if the node is once started in console mode,
the logging config is persisted, with console enabled, but file
disabled.
Then if the user decide to start in daemon mode, all the logs
will silently go to erlang.log.N and emqx.log.N will be empty.
After this fix, only changes really made into cluter-override.conf
will take effect.
2023-01-31 18:50:16 +01:00
Zaiming (Stone) Shi
b0ac924ca9
refactor: less copy-paste
2023-01-31 18:40:55 +01:00
Zaiming (Stone) Shi
f6dafc20ea
feat: export API to read cluster and local overrides
2023-01-31 14:20:34 +01:00
firest
3bdffca488
fix: the exclusive topics aren't removed when the session has already been cleaned
2023-01-30 18:17:00 +08:00
Zhongwen Deng
bb636394e1
chore: add debug log for raw data
2023-01-30 16:35:06 +08:00
Zhongwen Deng
b73d11675e
chore: log the bad mqtt packet(frame error)
2023-01-30 15:05:49 +08:00
Zhongwen Deng
3d07271ea5
fix: crash when mfa not found
2023-01-30 14:30:20 +08:00
Zhongwen Deng
25090563af
chore: use brackets to wrap the mqtt packet when logging
2023-01-30 12:29:00 +08:00
Zhongwen Deng
ce32ea7334
feat: Make the log output format order fixed
2023-01-30 12:18:22 +08:00
Zhongwen Deng
6cbad047cd
fix: don't log CONNECT twice when debug
2023-01-30 12:16:17 +08:00
Zaiming (Stone) Shi
6a58bafcb0
chore: bump release version to e5.0.0-rc.2
2023-01-27 14:38:21 +01:00
Zaiming (Stone) Shi
f6b3b930b0
chore: improve a error log
2023-01-26 14:21:27 +01:00
Kjell Winblad
86cfbfb43c
fix: Authorization header leak in log entries for webhook
...
There might be another possibility for leakage. If the resource mangager
for the webhook resource crashes, OTP might log the spec for the
resource manager which contains the Config and thus the Authorization
header. This is probably an issue for other resources as well and should
be fixed in another commit. The following issue has been created for
that:
https://emqx.atlassian.net/browse/EMQX-8794
Fixes:
https://emqx.atlassian.net/browse/EMQX-8791
2023-01-26 12:44:16 +01:00
Zaiming (Stone) Shi
7575120ea6
test: use snabbkaffe retry macro
2023-01-24 10:54:20 +01:00
Zaiming (Stone) Shi
140cda2f13
fix(emqx_connection): crash when idle_timeout is set to infinity
2023-01-24 10:14:35 +01:00
Zaiming (Stone) Shi
727100e094
chore: prepare for v5.0.15 release
2023-01-20 16:42:01 +01:00
Zaiming (Stone) Shi
57607ca0ce
chore: prepare for v5.0.15 release
2023-01-20 11:20:34 +01:00
Zaiming (Stone) Shi
1716a5da99
chore: bump version to e5.0.0-rc.1
2023-01-18 17:22:05 +01:00
Zaiming (Stone) Shi
7abba17b25
Merge pull request #9765 from zmstone/0115-add-password-converter
...
fix(schema): add password converter to ensure its binary() type
2023-01-18 15:09:05 +01:00
Andrew Mayorov
33b3c4fa9a
Merge pull request #9753 from feat/EMQX-8738/convert-ordered-sets
...
feat: turn tables queried with search APIs into ordered sets
2023-01-18 18:05:57 +04:00
Zaiming (Stone) Shi
7e8381f4c7
Merge pull request #9785 from savonarola/fix-authn-handling
...
fix(authn): stop authn handling when emqx_authentication provides a result
2023-01-18 13:24:22 +01:00
ieQu1
d7242739e0
chore(ekka): Bump version to 0.13.9
2023-01-18 12:01:03 +01:00
Ivan Dyachkov
430b0a03d4
Merge pull request #9780 from id/fix-ensure-no-colon-in-filenames
...
fix: ensure no colon in filenames
2023-01-18 09:36:16 +01:00
Zaiming (Stone) Shi
fc992f28bc
test: add test coverage
2023-01-17 20:13:01 +01:00
Ilya Averyanov
1d7364dab1
fix(authn): fix authn hook chain evaluation
...
Stop authentication handling when
`emqx_authentication` provides a definitive result.
2023-01-17 20:06:20 +02:00
Zhongwen Deng
5a56013193
docs: more detail about crashdump config
2023-01-17 20:33:01 +08:00
zhongwencool
9f80eb2497
Merge pull request #9777 from zmstone/0116-refactor-config_files-is-readonly
...
refactor: config_files is a readonly config
2023-01-17 20:32:39 +08:00
Zaiming (Stone) Shi
263deae1f3
refactor: add a more generic name for password_converter
2023-01-17 11:12:17 +01:00
Zaiming (Stone) Shi
4a7e74f5d6
fix(schema): add password converter to ensure its binary() type
2023-01-17 11:12:17 +01:00
Zhongwen Deng
3dfdad9cc9
test: dashboard default password
2023-01-17 11:30:42 +08:00
Zaiming (Stone) Shi
33be7672ad
test: recover boot_modules app env after test
2023-01-17 00:43:25 +01:00
Ivan Dyachkov
676f017ec0
fix: ensure no colon in filenames
2023-01-16 21:27:01 +01:00
Zaiming (Stone) Shi
e668044ebc
fix: version number previs in restricted shell
2023-01-16 13:47:00 +01:00
Andrew Mayorov
34571c779d
feat: make `suboption` table ordering more natural
2023-01-16 15:39:10 +03:00
Andrew Mayorov
ce2dba15b4
feat: turn tables queried with search APIs into ordered sets
...
This is needed to ensure more or less consistent client experience
for the new planned cursor-based search APIs.
2023-01-16 15:39:10 +03:00
Zaiming (Stone) Shi
a7fc5e8fe1
Merge pull request #9761 from zmstone/0114-fix-kafka-value-template-and-docs
...
feat: introduce 'this' concept for placeholder, and use it in Kafka bridge
2023-01-16 13:37:29 +01:00
Zaiming (Stone) Shi
376dab7cd8
Merge pull request #9743 from zmstone/0112-docs-fix-some-descriptions
...
0112 docs fix some descriptions
2023-01-16 09:56:56 +01:00
Zaiming (Stone) Shi
089389100e
Merge pull request #9763 from zmstone/0114-fix-crash-when-password-undefined
...
0114 fix crash when password undefined
2023-01-15 12:41:02 +01:00
Zaiming (Stone) Shi
df202c69ad
Merge pull request #9746 from zmstone/0113-fix-mqtt-connect-packet-format-when-password-is-empty
...
fix(emqx_packet): log empty string if password value is missing
2023-01-14 19:42:07 +01:00
Zaiming (Stone) Shi
0f2f5fbbe0
fix(authn): no exception when password is 'undefined'
2023-01-14 17:58:55 +01:00
Zaiming (Stone) Shi
7073c62dd9
feat: add a 'this' for rule engine put env
...
now a dot is allowed in front of a var (path)
e.g. ${.clientid} is equivalent to ${clientid}
${.} however, means everything.
the parsed var is interally represented as $_THIS_
to make it easier to read/search.
2023-01-14 11:03:58 +01:00
Zaiming (Stone) Shi
002f5dbd89
Merge pull request #9750 from zhongwencool/bootstrap-app-env
...
fix: save app's env when bootstrapping and reloading
2023-01-14 07:33:13 +01:00
Zhongwen Deng
b07befbf56
test: conf_app ct failed
2023-01-14 01:03:57 +08:00
Zhongwen Deng
588140b842
chore: why we should ingore save kernel app env when init
2023-01-13 23:35:45 +08:00
Zhongwen Deng
1fe0061123
fix: node.config_files type is hocon:array(string()))
2023-01-13 23:35:45 +08:00
Zhongwen Deng
c9f0355f5a
fix: save app env when bootstrap and reload
2023-01-13 23:35:45 +08:00
Zhongwen Deng
1085492171
chore: don't refresh when CT is running
2023-01-13 23:35:45 +08:00
Zhongwen Deng
91d38b410d
fix: refresh logger handler when starting
2023-01-13 23:35:45 +08:00
Stefan Strigler
1690a6dcfc
Merge branch 'master' into dev/api-refactor
2023-01-13 15:34:13 +01:00
Zaiming (Stone) Shi
a77d33b97d
Merge pull request #9751 from lafirest/fix/un_cleared_ca
...
fix that obsoleted cert file will not be deleted after the listener is updated/deleted
2023-01-13 14:38:55 +01:00
Zaiming (Stone) Shi
2974269f2a
Merge pull request #9723 from emqx/release-50
...
chore: sync release-50 to master
2023-01-13 14:13:12 +01:00
firest
0a965879dd
fix: fix that obsoleted cert file will not be deleted after the listener is updated/deleted
2023-01-13 18:42:27 +08:00
Zhongwen Deng
f15b29b1ef
chore: upgrade app version
2023-01-13 18:22:29 +08:00
zhongwencool
383a6812d1
Merge pull request #9748 from zhongwencool/listener-max-connections-default-value
...
fix: default max_connections in raw config should be binary not atom
2023-01-13 17:55:22 +08:00
zhongwencool
0049b4a294
Merge branch 'master' into release-50
2023-01-13 16:39:35 +08:00
Zhongwen Deng
eacdaffe3c
fix: default max_connections in raw config should be binary not atom
2023-01-13 16:01:57 +08:00
Zaiming (Stone) Shi
2bc19c3a62
fix(emqx_packet): log empty string if password value is missing
...
to keep it a consistent behaviour comparing when logging username
2023-01-13 08:21:09 +01:00
Zaiming (Stone) Shi
153d64068a
refactor: rename root level cache type to authz_cache
2023-01-13 07:47:54 +01:00
Zaiming (Stone) Shi
b40ce0fc2d
Merge pull request #9626 from id/fix-enable-authz-cache-by-default
...
fix: enable authorization cache by default
2023-01-13 07:39:38 +01:00
firest
c5f557e315
fix: disable basic auth for HTTP API
2023-01-12 21:35:49 +08:00
Ivan Dyachkov
f90c41f769
fix: set default value in schema
2023-01-12 13:49:52 +01:00
Thales Macedo Garitezi
254b92a3c1
docs: add comma to please spellcheck
2023-01-11 10:31:23 -03:00
Thales Macedo Garitezi
d5a462486e
feat: tag another emqx schema as `emqx`
2023-01-11 09:31:38 -03:00
Thales Macedo Garitezi
e6a8be1ff6
docs: fix closing tag
2023-01-11 09:10:04 -03:00
Thales Macedo Garitezi
48e1ba4832
feat(docs): add tags to schemas
...
This'll allow us to split the generated `schema.json` file into
subsections for better documentation navigation.
2023-01-11 09:10:03 -03:00
Zhongwen Deng
fdc0682c3f
fix: elvis warning
2023-01-11 17:30:45 +08:00
Zhongwen Deng
d9429bba00
fix: bump hocon to 0.35.0(don't log overriding structs)
2023-01-11 14:44:34 +08:00
Zhongwen Deng
ba738d7707
chore: bump to 5.0.14
2023-01-11 14:39:32 +08:00
Zhongwen Deng
21dbc21dc8
chore: add changelog for api_key.bootstrap_file
2023-01-10 19:15:01 +08:00
Zhongwen Deng
f6a47e5cf6
chore: support api_key.bootstrap_file config
2023-01-10 19:03:49 +08:00
ieQu1
13f1ab6344
Merge pull request #9671 from ieQu1/metrics
...
feat(emqx_metrics): Sliding window samples
2023-01-10 11:08:43 +01:00
Zaiming (Stone) Shi
e52f9d5920
refactor: use union member type selector for authz sources
2023-01-09 14:26:16 +01:00
Stefan Strigler
903ae9a644
style: fix typo in fun name
2023-01-09 09:59:42 +01:00
Thales Macedo Garitezi
fd360ac6c0
feat(buffer_worker): refactor buffer/resource workers to always use queue
...
This makes the buffer/resource workers always use `replayq` for
queuing, along with collecting multiple requests in a single call.
This is done to avoid long message queues for the buffer workers and
rely on `replayq`'s capabilities of offloading to disk and detecting
overflow.
Also, this deprecates the `enable_batch` and `enable_queue` resource
creation options, as: i) queuing is now always enables; ii) batch_size
> 1 <=> batch_enabled. The corresponding metric
`dropped.queue_not_enabled` is dropped, along with `batching`. The
batching is too ephemeral, especially considering a default batch time
of 20 ms, and is not shown in the dashboard, so it was removed.
2023-01-05 10:15:09 -03:00
ieQu1
5d9f9671e9
feat(emqx_metrics): Sliding window samples
2023-01-05 13:55:52 +01:00
ieQu1
93c205db7c
fix(router_helper): Reduce log verbosity of expected events
2023-01-05 12:17:27 +01:00
firest
b016695cb1
fix(bridges): obfuscate the password in bridges API responses
2023-01-03 22:09:29 +08:00
Thales Macedo Garitezi
7e02eac3bc
Merge pull request #9619 from thalesmg/refactor-gauges-v50
...
refactor(metrics): use absolute gauge values rather than deltas (v5.0)
2023-01-02 10:56:47 -03:00
Zaiming (Stone) Shi
dbc10c2eed
chore: update copyright year 2023
2023-01-02 09:22:27 +01:00
Thales Macedo Garitezi
305ed68916
chore: bump app vsns
2022-12-30 16:51:24 -03:00
Thales Macedo Garitezi
8b060a75f1
refactor(metrics): use absolute gauge values rather than deltas
...
https://emqx.atlassian.net/browse/EMQX-8548
Currently, we face several issues trying to keep resource metrics
reasonable. For example, when a resource is re-created and has its
metrics reset, but then its durable queue resumes its previous work
and leads to strange (often negative) metrics.
Instead using `counters` that are shared by more than one worker to
manage gauges, we introduce an ETS table whose key is not only scoped
by the Resource ID as before, but also by the worker ID. This way,
when a worker starts/terminates, they should set their own gauges to
their values (often 0 or `replayq:count` when resuming off a queue).
With this scoping and initialization procedure, we'll hopefully avoid
hitting those strange metrics scenarios and have better control over
the gauges.
2022-12-30 16:51:24 -03:00
Zaiming (Stone) Shi
b30f2ea58b
fix(statsd schema): a field is not 'required' when it has 'default'
2022-12-30 14:20:24 +01:00
Zaiming (Stone) Shi
0ce1ca89b7
refactor: use string type for server and servers
2022-12-30 14:20:23 +01:00
Zaiming (Stone) Shi
cac7e0c5f0
refactor: move version prefix string detection to a static fun
...
this is to make dialyzer happy
2022-12-30 14:19:03 +01:00
zhongwencool
f92b1fb8f4
Merge pull request #9633 from zhongwencool/fix-json-fmt
...
fix: bad best fmt json []
2022-12-30 09:08:13 +08:00
Zhongwen Deng
4e62aff3ab
fix: bad best fmt json []
2022-12-29 14:53:00 +08:00
Zaiming (Stone) Shi
2790d5697d
test: add a 2 seconds sleep between listener sotp and restart
...
to lower the chance of eaddrinuse
2022-12-28 18:48:53 +01:00
Thales Macedo Garitezi
4819794401
test(refactor): decrease test teardown noise
2022-12-27 10:30:14 -03:00
Thales Macedo Garitezi
6fdcba641e
test(refactor): no need for monitor
...
the janitor is already linked to the parent
2022-12-27 10:30:14 -03:00
Zaiming (Stone) Shi
a777bac38c
build: prepare for v5.0.13 release
2022-12-27 11:54:09 +01:00
Zaiming (Stone) Shi
15bd797b36
ci: bump to v5.0.13-rc.3
2022-12-27 11:24:47 +01:00
Zaiming (Stone) Shi
580137de0d
Merge remote-tracking branch 'origin/master' into release-50
2022-12-27 11:06:17 +01:00
lafirest
2ff6ef01f1
Merge pull request #9599 from lafirest/fix/blacklist_default_exp
...
fix(banned): ensure the default expiration time of `banned` is large enough
2022-12-27 17:30:10 +08:00
Zaiming (Stone) Shi
0517541f34
ci: bump to v5.0.13-rc.2
2022-12-27 09:54:34 +01:00
Zaiming (Stone) Shi
18246442aa
chore: prepare v5.0.13-rc.1
...
bump dashboard version to v1.1.4
2022-12-26 21:45:48 +01:00
firest
af3f0c9bb0
fix(banned): ensure the default timeout of `banned` is large enough
2022-12-26 10:17:31 +08:00
Zaiming (Stone) Shi
269a40a9ea
fix: format psk user lookup fun back to string
2022-12-23 19:22:15 +01:00
Zaiming (Stone) Shi
350023e757
fix(config): option only_fill_defaults renamed to make_serializable
2022-12-23 14:27:04 +01:00
Zaiming (Stone) Shi
59970272ff
chore: pin hocon 0.33.0
2022-12-23 12:07:36 +01:00
lafirest
f660724bf7
Merge pull request #9582 from lafirest/fix/fix_field_name
...
fix(limiter): change limiter `cache` to `buffer`
2022-12-21 18:12:40 +08:00
firest
a8e020af58
fix(limiter): change limiter `cache` to `buffer`
2022-12-20 22:30:52 +08:00
Zaiming (Stone) Shi
e932569f34
refactor: delete stale code
...
'hash' strategy has been removed from config schema
hence no need to keep the compatibility code
2022-12-19 20:20:58 +01:00
Zaiming (Stone) Shi
ad3a793910
fix(shared_sub): insert alive pid table at mnesia table event
2022-12-19 20:12:38 +01:00
Zaiming (Stone) Shi
4f1fb0b629
refactor(shared_sub): improve sticky strategy performance
...
* avoid calling ets:select twice for sticky strategy
* when the calling process is terminating, no loop-back dispatch
2022-12-19 20:04:33 +01:00
Zaiming (Stone) Shi
29f394aa70
fix(shared): handle unsubscribe for sticky strategy
...
prior to this change, the message is dispatched to a shared subscriber
even after unsubscribed
2022-12-19 19:12:38 +01:00
Zaiming (Stone) Shi
67718ef84f
docs: prepare to deprecate broker.shared_dispatch_ack_enabled
2022-12-19 17:07:52 +01:00
Andrew Mayorov
fed7c80a9a
fix(ci): spec function with explicit exception
2022-12-16 13:45:05 +03:00
Andrew Mayorov
8a0ca38a77
fix: drop no longer supported dialyzer option
2022-12-16 13:45:05 +03:00
Andrew Mayorov
c301c8e992
chore: drop few unused macros / includes
2022-12-16 13:45:04 +03:00
Andrew Mayorov
a614e3065a
chore(tls): drop OTP-22-related workaround
2022-12-16 13:45:04 +03:00
JimMoen
23d5d5329e
test(session): ensure 'message.dropped' hook ran with named reason
2022-12-15 16:16:27 +08:00
JimMoen
b88398c3c6
fix: run `message.dropped` hook, inc `messages.dropped` metrics
...
- when awaiting_rel full
- packet identifier in use (QoS2 packet resend)
2022-12-15 16:16:26 +08:00
Zaiming (Stone) Shi
9e3da5b661
chore: bump app versions
2022-12-14 20:07:41 +01:00
Zaiming (Stone) Shi
56066a03b5
Merge remote-tracking branch 'origin/release-50' into 1214-sync-master-upstreams
2022-12-14 20:04:20 +01:00
Zaiming (Stone) Shi
82db73c3f7
chore: bump version to v5.0.12
2022-12-14 20:02:42 +01:00
Zaiming (Stone) Shi
7137a422df
refactor(emqx_authn): make error messages more readable
2022-12-14 15:53:42 +01:00
Zaiming (Stone) Shi
abef881a73
refactor(config): no need to explicitly remove env metadata
...
after upgraded to honcon 0.32.0, the env meta is removed
by default.
2022-12-14 15:53:42 +01:00
Zaiming (Stone) Shi
34f7fff97d
chore: pin hocon 0.32.0
2022-12-14 15:53:42 +01:00
Zaiming (Stone) Shi
42c58e2a91
Merge remote-tracking branch 'origin/release-50' into 1214-sync-master-upstreams
2022-12-14 15:29:13 +01:00
Thales Macedo Garitezi
464d0a5057
refactor(test): use a linked janitor for test teardown
2022-12-12 17:18:19 -03:00
Thales Macedo Garitezi
a095867358
test(refactor): add ids to namespace `on_exit` callbacks
2022-12-12 17:18:19 -03:00
Thales Macedo Garitezi
697b3ecf2d
docs: improve descriptions
...
Co-authored-by: Zaiming (Stone) Shi <zmstone@gmail.com>
2022-12-12 17:18:19 -03:00
Thales Macedo Garitezi
1cd91a24e9
feat(gcp_pubsub): implement GCP PubSub bridge (ee5.0)
2022-12-12 17:18:19 -03:00
Thales Macedo Garitezi
fffce9316c
test(fix): avoid trying to connect to system_monitor db in tests
...
When `system_monitor`'s application is loaded, it sets a default
hostname:
```erlang
1> application:get_env(system_monitor, db_hostname).
undefined
2> application:load(system_monitor).
ok
3> application:get_env(system_monitor, db_hostname).
{ok,"localhost"}
```
And that makes tests crash when somehow it gets loaded.
By having a semantic `enable` field, we could avoid starting this
application by checking if the hostname is filled or not.
```
=ERROR REPORT==== 1-Dec-2022::13:57:20.855070 ===
** Generic server <0.7646.3> terminating
** Last message in was {command,epgsql_cmd_connect,
#{codecs => [],database => "postgres",
host => [],
password =>
#Fun<epgsql_cmd_connect.0.29916615>,
port => 5432,timeout => 5000,
username => "system_monitor"}}
** When Server state == {state,undefined,undefined,<<>>,undefined,on_message,
undefined,
{[],[]},
undefined,undefined,undefined,undefined,[],
information_redacted,[],undefined,undefined,
undefined,undefined,undefined,#{}}
** Reason for termination ==
** {badarg,
[{gen_tcp,connect_0,4,[{file,"gen_tcp.erl"},{line,207}]},
{epgsql_cmd_connect,open_socket,2,
[{file,
"/emqx/_build/default/lib/epgsql/src/commands/epgsql_cmd_connect.erl"},
{line,94}]},
{epgsql_cmd_connect,execute,2,
[{file,
"/emqx/_build/default/lib/epgsql/src/commands/epgsql_cmd_connect.erl"},
{line,54}]},
{epgsql_sock,command_exec,4,
[{file,"/emqx/_build/default/lib/epgsql/src/epgsql_sock.erl"},
{line,338}]},
{gen_server,try_handle_call,4,[{file,"gen_server.erl"},{line,721}]},
{gen_server,handle_msg,6,[{file,"gen_server.erl"},{line,750}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]}
** Client system_monitor_pg stacktrace
** [{gen,do_call,4,[{file,"gen.erl"},{line,214}]},
{gen_server,call,3,[{file,"gen_server.erl"},{line,243}]},
{epgsql,call_connect,2,
[{file,"/emqx/_build/default/lib/epgsql/src/epgsql.erl"},
{line,203}]},
{system_monitor_pg,connect,0,
[{file,"/emqx/_build/default/lib/system_monitor/src/system_monitor_pg.erl"},
{line,151}]},
{system_monitor_pg,initialize,0,
[{file,"/emqx/_build/default/lib/system_monitor/src/system_monitor_pg.erl"},
{line,142}]},
{system_monitor_pg,handle_info,2,
[{file,"/emqx/_build/default/lib/system_monitor/src/system_monitor_pg.erl"},
{line,92}]},
{gen_server,try_dispatch,4,[{file,"gen_server.erl"},{line,695}]},
{gen_server,handle_msg,6,[{file,"gen_server.erl"},{line,771}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]
=CRASH REPORT==== 1-Dec-2022::13:57:20.855697 ===
crasher:
initial call: epgsql_sock:init/1
pid: <0.7646.3>
registered_name: []
exception exit: badarg
in function gen_tcp:connect_0/4 (gen_tcp.erl, line 207)
in call from epgsql_cmd_connect:open_socket/2 (/emqx/_build/default/lib/epgsql/src/commands/epgsql_cmd_connect.erl, line 94)
in call from epgsql_cmd_connect:execute/2 (/emqx/_build/default/lib/epgsql/src/commands/epgsql_cmd_connect.erl, line 54)
in call from epgsql_sock:command_exec/4 (/emqx/_build/default/lib/epgsql/src/epgsql_sock.erl, line 338)
in call from gen_server:try_handle_call/4 (gen_server.erl, line 721)
in call from gen_server:handle_msg/6 (gen_server.erl, line 750)
ancestors: [system_monitor_pg,system_monitor2_sup,system_monitor_sup,
<0.4297.3>]
message_queue_len: 0
messages: []
links: [<0.4303.3>]
dictionary: []
trap_exit: false
status: running
heap_size: 1598
stack_size: 29
reductions: 734
neighbours:
```
2022-12-12 17:18:19 -03:00
Zaiming (Stone) Shi
61da68ff40
fix(emqx_schema): handshake_timeout is common for all listeners
2022-12-09 16:47:19 +01:00
Zaiming (Stone) Shi
6a4fb1241b
Merge remote-tracking branch 'origin/release-50' into 1209-chore-merge-dev/ee5.0-to-release-50
2022-12-09 12:54:16 +01:00
Ilya Averyanov
a26964291d
Merge pull request #9496 from savonarola/fix-auth-chain
...
Fix `emqx_authentication` hook cooperation with other hooks
2022-12-09 14:48:18 +03:00
Ilya Averyanov
7ae3ecfccb
chore(retainer): optimize index writes
2022-12-09 14:42:43 +03:00
Ilya Averyanov
cd0ae62995
fix(auth): fix emqx_authenticator cooperation with other 'client.authenticate' hooks
2022-12-09 13:57:48 +03:00
Zaiming (Stone) Shi
40809b2ad0
Merge remote-tracking branch 'origin/dev/ee5.0' into release-50
2022-12-09 11:45:52 +01:00
lafirest
3705d5bc73
Merge pull request #9505 from lafirest/fix/psk_r50
...
fix(psk): Add more PSK ciphers support
2022-12-09 00:00:52 +08:00
Zaiming (Stone) Shi
e1f09d9899
Merge remote-tracking branch 'origin/release-50' into 1208-merge-release-50-back-to-master
2022-12-08 14:27:01 +01:00
firest
21a908167d
fix(psk): Add more PSK ciphers support
2022-12-08 11:41:42 +08:00
Zaiming (Stone) Shi
dc14cd450d
test: render config for emqx_conf only for ee bridge tests
2022-12-07 18:27:06 +01:00
Zaiming (Stone) Shi
c9d84b2fda
test: do not load emqx_conf app when it's not found
...
also remove stale code in emqx_common_test_helpers
2022-12-07 16:49:54 +01:00
Zaiming (Stone) Shi
d89dbb7caa
Merge remote-tracking branch 'origin/release-50' into 1206-chore-merge-ee50-to-release-50
2022-12-07 16:24:13 +01:00
Zaiming (Stone) Shi
f3b069a0d9
test: fix config load for lib-ee tests
2022-12-07 15:50:50 +01:00
Zaiming (Stone) Shi
b897d64b75
test: fix emqx_frame_SUITE
2022-12-07 12:20:03 +01:00
Ilya Averyanov
6692b0c895
feat(bridge): add Redis bridge
2022-12-06 23:15:42 +03:00
Zaiming (Stone) Shi
1c2fc4b6c3
Merge remote-tracking branch 'origin/release-50' into 1206-chore-merge-ee50-to-release-50
2022-12-06 16:35:56 +01:00
Zaiming (Stone) Shi
817554c7d7
refactor(emqx_frame): better error handling
2022-12-06 01:48:52 +08:00
firest
72669080a1
fix(frame): fix potential parse errors found by fuzzing test
2022-12-05 23:16:07 +08:00
Zaiming (Stone) Shi
7adb539ae1
chore: pin hocon 0.31.2
2022-12-01 16:50:10 +01:00
firest
88a0c77707
fix(limiter): add `limiter` back to the configs API
2022-12-01 15:07:15 +08:00
Zaiming (Stone) Shi
983e904858
fix(connector): fix ssl clear
2022-11-30 17:03:41 +01:00
Zaiming (Stone) Shi
311e4cd583
Merge pull request #9440 from zmstone/1128-chore-sync-release-branch-back-to-master
...
1128 chore sync release branch back to master
2022-11-29 11:47:01 +01:00
Zaiming (Stone) Shi
b398617614
chore: bump app versions
2022-11-28 21:12:43 +01:00
Zaiming (Stone) Shi
77341e7a3c
chore: bump app versions
2022-11-28 21:06:33 +01:00
Zaiming (Stone) Shi
9f3a9efbad
Merge remote-tracking branch 'origin/release-v50'
2022-11-28 21:02:39 +01:00
Zaiming (Stone) Shi
7ee53e5319
Merge tag 'v5.0.11' into dev/ee5.0
2022-11-28 21:02:21 +01:00
Erik Timan
95faf56077
feat: remove $queue in favor of $shared
...
This commit removes support for setting shared subscriptions with the
non-standard $queue feature. Shared subscriptions is now part of the MQTT
spec (using $shared) and we will only support that from now on.
2022-11-28 11:00:18 +01:00
Zaiming (Stone) Shi
05719daff2
chore: bump version to v5.0.11
2022-11-27 11:15:28 +01:00
Zaiming (Stone) Shi
970b3eb1a0
chore: bump to version v5.0.11-rc.1
2022-11-26 15:51:38 +01:00
lafirest
345fa65241
Merge pull request #9416 from lafirest/fix/emqx_ctl
...
fix(ctl): fix unsafe `list_to_atom`
2022-11-25 09:58:07 +08:00
JianBo He
ffb3f2d2d2
chore: change emqx_live_connection tab type to ordered_set
...
Co-authored-by: Zaiming (Stone) Shi <zmstone@gmail.com>
2022-11-24 20:14:33 +01:00
JianBo He
6d9e1e0d7a
test(mgmt): cover emqx_mgmt_api:cluster_query
2022-11-24 20:14:33 +01:00
JianBo He
36de83a50a
feat(cm): change emqx_channel_info to ordered_set table
2022-11-24 20:14:33 +01:00
JianBo He
0c1412315c
chore(bpapi): ignore emqx_mgmt_api:collect_total_from_tail_nodes/3
2022-11-24 20:14:33 +01:00
JianBo He
79a2682fd3
chore: improve the no-conditions query
2022-11-24 20:14:33 +01:00
JianBo He
08121e7df6
fix(mgmt): optimize the speed of query tail pages
...
In the previous, when you query the tail pages, all the front of rows
will be queried out and formatted. It greatly hurts the speed of query.
Currently, we only format the final result rows. i.e, the query for the
last page of data will be 10x faster.
2022-11-24 20:14:33 +01:00
Zaiming (Stone) Shi
6837af2308
Merge branch 'release-v50' into 0720-feat-direct-deny-when-anonymous-is-not-allowed
2022-11-24 16:07:58 +01:00
firest
03fb543ba8
fix(ctl): fix unsafe `list_to_atom`
...
A command can be called only when it is exists
2022-11-24 17:28:53 +08:00
firest
2bc8b00419
feat(authn): support quick deny anonymous
2022-11-24 09:44:19 +01:00
Zaiming (Stone) Shi
b879c935eb
Merge pull request #9404 from JimMoen/fix-typo-50
...
fix(typo): typo in code
2022-11-24 09:39:43 +01:00
Zhongwen Deng
282e6ff218
chore: set channel info once
2022-11-24 09:59:39 +08:00
Zaiming (Stone) Shi
6f67e3b333
feat(emqx_map_lib): add a binary_key_map help function
2022-11-23 23:49:43 +01:00
kraftwerk28
00c57de4c3
feat: do not drop MQTTv5 properties in rule/bridge
2022-11-22 20:09:59 +01:00
firest
118a97a0d8
fix: change the defualt value of `max_topic_levels` to 128
2022-11-22 18:45:44 +08:00
JimMoen
c21fa3c339
fix(typo): typo in code
2022-11-22 09:51:30 +08:00
JianBo He
fcbf1bc890
fix(will-msg): fix mountpoint not working for will-msg.
2022-11-21 21:41:00 +08:00
Zhongwen Deng
1845e472e0
fix: create trace sometime failed by end_at time has already passed
2022-11-21 09:54:36 +08:00
Zaiming (Stone) Shi
458d23ebc4
chore: bump version to v5.0.0-beta.5
2022-11-20 09:11:53 +01:00
Zaiming (Stone) Shi
83fe35b148
Merge remote-tracking branch 'origin/dev/ee5.0' into 1116-sync-v5.0.10-to-ee50
2022-11-18 19:23:31 +01:00
lafirest
4ce3d43446
Merge pull request #9386 from lafirest/fix/flaky_banned_case
...
test: fix flaky banned case
2022-11-17 21:29:45 +08:00
Ilya Averyanov
e301ca09d5
Merge pull request #9373 from savonarola/fix-access-test
...
chore(acl): fix acl test
2022-11-17 18:06:43 +05:00
firest
7b93b166dc
test: fix flaky banned case
...
since this suite has changed its start method to the `emqx_common_test_helpers:start_apps/1`, the `emqx_banned` server will never stop (its restart type is permanent), thus there is no need to manually start or stops it.
2022-11-17 14:48:25 +08:00
Zaiming (Stone) Shi
c940b901f5
chore: fix app versions
2022-11-16 16:26:43 +01:00
Zaiming (Stone) Shi
09455edae8
Merge tag 'v5.0.10' into dev/ee5.0
2022-11-16 16:20:30 +01:00
Thales Macedo Garitezi
2ae0125562
test(refactor): encode toxiproxy payloads with emqx_json
2022-11-16 10:57:13 -03:00
firest
b1889fa203
chore: bump emqx version && update changes
2022-11-16 18:00:32 +08:00
firest
085074ac41
feat(banned): kick session when it is banned by clientid
2022-11-16 18:00:22 +08:00
Ilya Averyanov
25c32dd2f5
chore(acl): fix acl test
2022-11-15 23:30:19 +03:00
Stefan Strigler
b5a84b8b0f
test: increase timeout creating listeners
2022-11-11 13:34:46 +01:00
Zaiming (Stone) Shi
354b94fc2d
test: ensure all modules start
2022-11-08 20:59:24 +01:00
JimMoen
2cd457e07c
fix(channel): session takenover & discarded maybe call disconnect hook
2022-11-08 23:22:58 +08:00
firest
ebaba0c2b1
fix: Revert "feat(banned): clean retained/delayed data when client is banned"
...
This reverts commit 69701ff578
.
2022-11-08 11:36:11 +08:00
Thales Macedo Garitezi
04588148b7
test(influxdb): increase influxdb bridge/connector coverage (ee5.0)
2022-11-07 15:15:49 -03:00
firest
bd13ae0ad6
fix(acl): Check the real topic in delayed messages
...
We need to check the true topic of the delayed message correctly
the cheapest way to do this is to extract the true topic from the original topic when doing ACL check
2022-11-04 10:51:52 +08:00
firest
bb7476d3af
fix(listeners): Constraints the atom convert when parsing the esockd access rules
...
esockd rules only use words 'allow' and 'deny', both are existing,
so it is better to restrict the conversion and print a log when errors
2022-11-02 14:45:47 +08:00
Thales Macedo Garitezi
b6445cdc14
test: remove unused var warning
2022-11-01 16:53:20 -03:00
firest
6c52d5de1f
fix(bridge): Ensure that the node name is known
2022-11-01 15:36:10 +08:00
Zhongwen Deng
18235a7125
chore: update emqx_managment bpapi.versions
2022-10-28 09:16:05 +08:00
Zhongwen Deng
af79e652da
chore: clear dialyzer warning.
2022-10-28 09:16:05 +08:00
Zhongwen Deng
ea95f792e0
refactor: multicall node_info to improve /node speed
2022-10-28 09:14:33 +08:00
Zaiming (Stone) Shi
4cadb86b18
docs: fix typos
2022-10-27 20:09:31 +02:00
Zaiming (Stone) Shi
c157392452
docs: fix self-closing html tag, change </br> to <br/>
2022-10-27 13:57:18 +02:00
Zaiming (Stone) Shi
fd2a3f816e
Merge pull request #9238 from zmstone/1026-fix-docs
...
docs: fix zh punctuations
2022-10-27 10:39:22 +02:00
Zaiming (Stone) Shi
a314950be9
docs: fix zh punctuations
2022-10-26 16:19:38 +02:00
ieQu1
6c8936467e
chore(ekka): Bump version to 0.13.6
2022-10-26 12:08:14 +02:00
Zaiming (Stone) Shi
637bc886bb
chore: bump release version to 5.0.10
2022-10-24 11:49:20 +02:00
Zaiming (Stone) Shi
e3240b52a8
chore: bump app versions
2022-10-24 11:48:17 +02:00
Zaiming (Stone) Shi
508c0e84d0
Merge branch 'release-v50' into master
2022-10-24 11:46:31 +02:00
Zaiming (Stone) Shi
11daaa08e2
chore: bump version numbers to 5.0.9
2022-10-24 09:42:25 +02:00
Zaiming (Stone) Shi
fa5d756ae6
Merge pull request #9186 from HJianBo/more-understanderable-trans
...
chore(docs): translate Max Awaiting PUBREL confs
2022-10-21 17:29:28 +02:00
Zaiming (Stone) Shi
ca052bd0f4
docs: Update apps/emqx/i18n/emqx_schema_i18n.conf
2022-10-21 17:28:49 +02:00
JianBo He
0f03449b43
chore: improve max_awating_rel_timeout conf docs
...
Co-authored-by: Zaiming (Stone) Shi <zmstone@gmail.com>
2022-10-21 16:08:09 +08:00
JianBo He
49dd25cb14
chore: make spellcheck happy
2022-10-21 14:38:46 +08:00
firest
1d564ab8d5
test(shared_sub): remove redundant test case
2022-10-21 14:37:46 +08:00
Zaiming (Stone) Shi
0ca4f30a34
Merge pull request #9193 from zmstone/1020-chore-upgrade-gun-1.3.9
...
1020 chore upgrade gun 1.3.9
2022-10-21 08:13:21 +02:00
JianBo He
6d232fda5c
chore(i18n): improve the max_awaiting_rel desc
2022-10-21 10:27:20 +08:00
JianBo He
72a228c521
chore: update apps/emqx/i18n/emqx_schema_i18n.conf
...
Co-authored-by: Zaiming (Stone) Shi <zmstone@gmail.com>
2022-10-21 09:53:31 +08:00
Zaiming (Stone) Shi
d1332b72e7
feat(api/publish): return detailed publish results
...
Prior to this change, the publish API returns 200 in most of
the cases.
This change provides more insights to the publish result.
For single message publish endpoint (`publish/`):
HTTP error codes are:
200: Everything is OK
202: No subscriber for the topic
400: When mesage is invalid message.
e.g. bad topic name or QoS out of range.
503: Failed to dispatch the message. e.g. during EMQX restart.
The response body is a JSON object with two fields
`message_id`, and `publish_result`.
The `message_id` is a globally unique ID for tracing.
`publish_result` is `"OK"` when the message is delivered
to at least one subscriber.
Otherwise `"no_subscriber"`.
`publish_result` may also be some other informative
message to hint the failure result, the content of which
may change in the future.
For `publish/bulk` endpoint:
200: When all message in the bulk are published OK
202: If at least one message in the bulk had `"no_subscriber"` result
400: When mesage is invalid message. e.g. bad topic name or
QoS out of range.
503: When there is at least one message failed at dispatch.
The reply body is a list of JSON objects having the same layout
as for hte `publish` endpoint.
2022-10-20 20:03:27 +02:00
Zaiming (Stone) Shi
b3ffe89f35
test: assert message receive pid is in the expected pids list
2022-10-20 19:10:45 +02:00
JianBo He
fa020d036f
chore(docs): translate Max Awaiting PUBREL confs
2022-10-20 20:14:36 +08:00
Zaiming (Stone) Shi
c7a90d73b2
fix(shared): do not redispatch shared messages for certain shutdown
...
For takeover, there should be no message re-dispatch because
the messages will be retried by the new session.
For kick, messages should not be re-dispatched for security reason.
i.e. if admin has identified that there are malicious messages
stored in persisted sessions, killing the session should not
cause messages to be re-dispatched
2022-10-20 13:51:48 +02:00
lafirest
c0c2657a80
Merge pull request #9139 from lafirest/fix/clean_blocked_user_data
...
feat(banned): clean retained/delayed data when client is banned
2022-10-20 18:00:48 +08:00
lafirest
0546cd3d1a
Merge pull request #9123 from lafirest/fix/kick_seesion_redispatch
...
fix(shared_sub): kick session should not cause session message redispatch
2022-10-19 09:47:10 +08:00
firest
7b3c67fbe9
test(shared_sub): ensure snabbkaffe will be stopped
2022-10-18 13:47:57 +08:00
firest
3f1f244310
fix: fix bpapi versions
2022-10-18 13:39:48 +08:00
firest
69701ff578
feat(banned): clean retained/delayed data when client is banned
2022-10-18 13:35:09 +08:00
Zhongwen Deng
58b990064c
chore: update bpapi.verions
2022-10-17 09:43:17 +08:00
Zhongwen Deng
4d9cae0387
feat: get trace file's detail via /trace/:name/log_detail
2022-10-17 09:43:15 +08:00
zhongwencool
bfc780f95b
Merge branch 'master' into authn-config-check
2022-10-14 16:36:50 +08:00
JianBo He
56000cbf3e
refactor: more rigorous checking of flapping to improve stability of the system
...
port: https://github.com/emqx/emqx/pull/9045
2022-10-12 10:03:47 +08:00
firest
b4eb0f18f9
fix(shared_subs): rename redispatch function name and simply test case
2022-10-10 18:06:55 +08:00
firest
f0769cb765
fix(shared_sub): kick session should not cause session message redispatch
2022-10-10 13:52:09 +08:00
Zaiming (Stone) Shi
1c29e2806a
test(shared): add a test case to ensure shared dispatch retry
...
to ensure retry will not enter a dead loop
2022-10-05 22:33:49 +02:00
Zaiming (Stone) Shi
e8279a02ef
fix(shared): re-dispatch inflight (QoS1) and mqueue messages
...
when session terminates (not due to take over)
shared delivery should be re-dispatched to other members
in the group
2022-10-05 22:33:48 +02:00
Zaiming (Stone) Shi
242a69359c
Merge pull request #9047 from HJianBo/remove-colon-port
...
Improve the `ip_port()` definition and `bind` print format
2022-09-29 05:56:50 +02:00
JianBo He
6581911d5c
Merge remote-tracking branch 'stone/0922-upgrade-ip-port-schema' into remove-colon-port
2022-09-27 15:08:27 +08:00
Zaiming (Stone) Shi
00e4b4da5a
fix(schema): support hostname.domain:port for mqtt bridge
2022-09-27 09:02:49 +02:00
JianBo He
607f68bab1
chore(schema): don't automaticly add ipv4 address if configured as
...
`:1883`
2022-09-27 13:01:39 +08:00
JianBo He
03eaa07c02
chore: add more comments for bind display perference
2022-09-27 12:51:00 +08:00
Thales Macedo Garitezi
129f09f88b
chore: remove extra information from denied lwt log
2022-09-26 15:23:59 -03:00
Shawn
19e3f5919e
chore: release e5.0.0-beta.4
2022-09-26 19:54:01 +08:00
JianBo He
c9904e78aa
chore: remove colon port in HTTP-API and CLI
...
In the https://github.com/emqx/emqx/pull/8571 , we add a colon before the
port. But it was not popular, so we removed ta in this PR
2022-09-26 17:30:54 +08:00
Shawn
4135910b42
chore: merge master into dev/ee5.0
2022-09-26 09:52:33 +08:00
JimMoen
2984397e73
chore: apps vsn bump
2022-09-23 17:09:15 +08:00
JimMoen
85835256f1
Merge tag 'v5.0.8' into merge-release-v5.0.8-into-master
2022-09-23 16:06:44 +08:00
Zaiming (Stone) Shi
516d60c7da
build: fix deps consistency check
2022-09-23 09:00:17 +02:00
firest
89af9c4a5f
fix(slow_subs): fix timestamp unit error and update config not work
...
1. The unit of `deliver_begin_at` is incorrectly used the `seconds`, the resulting is incorrect when `stats_type` is `internal` or `response`
2. The config update doesn't actually take effect, the `load` function always used the old config
2022-09-22 17:57:51 +08:00
zhongwencool
8c718d891f
Merge pull request #9002 from zhongwencool/fix-listener-crash
...
fix: /listeners API crash when there are nodes still in initial conf
2022-09-20 15:25:03 +08:00
Zhongwen Deng
2551c51a8c
fix: ct failed
2022-09-20 11:37:49 +08:00
ieQu1
62957b298b
chore(ekka): Bump version to 0.13.5
2022-09-19 18:21:32 +02:00
Zhongwen Deng
0241185225
chore: Add test coverage for listeners API
2022-09-19 18:25:25 +08:00
Zhongwen Deng
386110ae1e
fix: /listeners API crash when some nodes still in init configuration
2022-09-19 15:24:36 +08:00
Thales Macedo Garitezi
c20ad3733a
fix: check for authorization on topic before publishing last will testament
...
fixes #8978
Without checking for authorization, a client can, on abnormal
termination, publish a message to any topic, including `$SYS` ones.
2022-09-16 17:31:22 -03:00
Thales Macedo Garitezi
dca522d7d3
test: add tests for publishing lwt when deny_action is disconnect
2022-09-16 15:11:54 -03:00
Thales Macedo Garitezi
87ab2e3a2d
fix: check conn state before sending will message
2022-09-16 15:11:54 -03:00
zhouzb
ba37ab4938
chore: bump vsn to 5.0.8
2022-09-16 19:32:17 +08:00
Zhongwen Deng
6bd72fe5a1
fix: check authn's mechanism field
2022-09-16 09:45:37 +08:00
Zhongwen Deng
49829caaa0
fix: check authn(lazy type) config when boot
2022-09-16 09:45:36 +08:00
Zhongwen Deng
0b07561e9b
fix: ensure authentication is array, not struct
2022-09-16 09:45:36 +08:00
zhouzb
8054144357
chore: bump vsn
2022-09-15 10:20:25 +08:00
Zaiming (Stone) Shi
0c1595be02
feat: Add Kafka connector
2022-09-13 19:46:56 +02:00
zhongwencool
0e633f87b3
Merge branch 'master' into denny-update-local-override-conf
2022-09-08 17:17:07 +08:00
Zaiming (Stone) Shi
befc4acced
Merge remote-tracking branch 'origin/master' into merge-master-to-ee50-a
2022-09-06 20:31:38 +02:00
firest
3f758ca36f
fix(tls): fix ciphers cache return `ok` at the first time call
2022-09-06 16:42:02 +08:00
Zhongwen Deng
499da1ebe0
chore: add emqx_release:edition_longstr()
2022-09-06 15:46:18 +08:00
Zaiming (Stone) Shi
9408aeb719
Merge pull request #8420 from zmstone/0705-refactor-delete-unused-module
...
chore: delete unused schema module
2022-09-05 16:33:07 +02:00
Thales Macedo Garitezi
09d640c1b6
Merge pull request #8887 from thalesmg/bugfix-will-msg-not-connected
...
bugfix: do not publish last will when authentication failed
2022-09-05 10:38:47 -03:00
ieQu1
9dfa82b448
fix(shared_sub): Dispatch shared messages via gen_rpc
2022-09-05 14:06:59 +02:00
Thales Macedo Garitezi
e0fcf07cf9
fix: do not publish last will when authentication failed
...
fixes #8886
2022-09-05 08:55:47 -03:00
ieQu1
03766d54cc
feat(emqx_rpc): call with timeout
2022-09-05 13:38:34 +02:00
ieQu1
c2d03838e2
fix(bpapi): Return undefined for unknown API on the node
2022-09-05 12:29:33 +02:00
Shawn
c695e67e18
chore: release e5.0.0-beta.3
2022-09-03 12:27:20 +08:00
JimMoen
d533e35df0
chore: update app vsn
2022-09-02 22:26:21 +08:00
JimMoen
1d70e0b0ec
Merge tag 'v5.0.7' into fix-mqtt-bridge-fields
2022-09-02 10:43:23 +08:00
Zaiming (Stone) Shi
8a5a9ca2bf
Merge pull request #8854 from zmstone/0831-chore-merge-main-to-dev-ee50
...
0831 chore merge main to dev ee50
2022-09-01 11:35:23 +01:00
zhouzb
ee91128cef
chore: bump vsn
2022-09-01 15:05:18 +08:00
JianBo He
dda0b4ac8c
chore: update emqtt vsn
2022-09-01 12:35:37 +08:00
JianBo He
c1afb34a86
test: fix failed tests
2022-09-01 11:34:31 +08:00
Zhongwen Deng
7bb592a2e1
fix: default override_to is cluster
2022-09-01 09:25:23 +08:00
Zaiming (Stone) Shi
5a3fb4a011
Merge remote-tracking branch 'origin/master' into dev/ee5.0
2022-08-31 17:11:15 +02:00
firest
71aaf5c538
fix(authz): fix dialyzer && test case && proper error
2022-08-31 16:49:27 +08:00
Zhongwen Deng
5718b28eeb
feat: Deny hot updates to the configuration in local-override.conf
2022-08-31 14:55:10 +08:00
JianBo He
168f44e45b
fix: exhook client.authorize never be execauted
...
see: https://github.com/emqx/emqx/issues/8779
2022-08-31 14:34:02 +08:00
Shawn
9e50866cd0
fix: rename queue_max_bytes -> max_queue_bytes
2022-08-30 17:18:54 +08:00
zhouzb
0aac916c1a
Merge branch 'release-v5.0.7' into sync-changes-from-506
2022-08-30 15:30:41 +08:00
William Yang
7451351c42
fix: quic listener idle_timeout type err
2022-08-29 16:19:19 +02:00
Zaiming (Stone) Shi
2eb078ff3b
chore: bump changed app versions
2022-08-26 14:32:28 +02:00
zhouzb
ecb79716ad
Merge branch 'master' into merge-506-to-master
2022-08-26 17:40:26 +08:00
Zaiming (Stone) Shi
97856f2e42
fix: allow empty string as ciphers
2022-08-24 21:02:21 +02:00
Zaiming (Stone) Shi
7851a3aefd
refactor(ssl): use 'available' for defaults
...
prior to this change, for TLS versions, 'default's are 'available's
there is no need for such an alias.
now we call available_versions with a specific tag:
tls, dtls, or all
2022-08-24 21:02:21 +02:00
Zaiming (Stone) Shi
8717535d32
refactor: populate ciphers list at runtime
...
Populating ciphers list when checking schema makes the
config file example and the schmea documents quite bloated
2022-08-24 21:02:21 +02:00
Shawn
f75932e49f
chore: release e5.0.0-beta.2
2022-08-24 22:28:29 +08:00
JianBo He
97b9d378a5
Merge tag 'v5.0.6' into merge-506-to-master
2022-08-23 09:08:55 +08:00
ieQu1
5aceeff7b4
refactor(cm_registry): Export transactions
2022-08-22 19:52:37 +02:00
JianBo He
46f743d16b
chore: bump emqx vsn
2022-08-22 14:37:16 +08:00
JianBo He
ad96bb551e
chore: update changes and release vsn
2022-08-22 12:30:42 +08:00
JimMoen
2648362c62
fix(bridge): password for bridge/db format as `password` for dashboard
2022-08-19 15:54:19 +08:00
JianBo He
d1c676a1c5
chore: bump vsn
2022-08-19 14:08:09 +08:00
JianBo He
7ffdd95aa3
chore: bind option support `:1883` style config
...
see: https://github.com/emqx/emqx/pull/8571
2022-08-19 11:12:17 +08:00
ieQu1
c89de81e19
refactor(bpapi): Export transactions
2022-08-18 12:27:13 +02:00
ieQu1
7292095951
test(router_helper): Refactoring
2022-08-18 12:27:13 +02:00
ieQu1
4fa06fcd63
refactor(exclusive_sub): Export transaction
2022-08-18 12:27:13 +02:00
ieQu1
b962a71da2
refactor(shared_sub): Export transactions
2022-08-18 12:20:42 +02:00
ieQu1
cd3aa476c6
refactor(router_helper): Export transactions
2022-08-18 12:20:42 +02:00
ieQu1
8ef1c2db26
refactor(banned): Export transactions
2022-08-18 12:20:42 +02:00
ieQu1
5c260dfbd0
refactor(alarm): Export transaction functions
2022-08-18 12:20:42 +02:00
ieQu1
cdde392d6e
refactor(emqx_trace): Extract transactions to DL module
2022-08-18 12:02:54 +02:00
ieQu1
b8a7ab9ad3
fix(connector_psql): Wrap password in a fun
2022-08-17 14:31:12 +02:00
Zaiming (Stone) Shi
050f68cf5d
test: allow missing schema for app in tests
2022-08-17 08:33:17 +02:00
Thales Macedo Garitezi
f0436a2bd6
chore: bump ekka -> `0.13.4`
...
ZSTD fix for RocksDB.
https://github.com/emqx/mnesia_rocksdb/pull/6
2022-08-16 09:48:32 -03:00
Xinyu Liu
84a8f8b218
Merge branch 'dev/ee5.0' into copy-of-master
2022-08-15 21:46:42 +08:00
Zaiming (Stone) Shi
ecbf867551
refactor: rename Field to Struct for ref type create function
...
Hocon type reference is actually a child-struct's struct name
not necessarily the same name as the parent-sutrct's field name
This commit changes the variable name for more clarity
2022-08-15 09:17:44 +02:00
Shawn
b3162fe5ff
fix: conflicts between master and ee5.0
2022-08-14 22:24:09 +08:00
Shawn
18d710e932
chore: release v5.0.5-beta.1
2022-08-12 18:37:27 +08:00
Xinyu Liu
4318159b85
Merge pull request #8673 from qzhuyan/dev/william/quic-listener-config-timeouts
...
feat(quic): more listener options
2022-08-12 18:30:53 +08:00
Xinyu Liu
fc6d79c2da
fix: typos in emqx_schema_i18n.conf
2022-08-12 18:30:34 +08:00
Shawn
bed10b097f
chore: release e5.0.0-beta.1
2022-08-12 00:27:13 +08:00
William Yang
7ca8550a5d
feat(quic): more listener options
2022-08-10 12:37:12 +02:00
Zaiming (Stone) Shi
18614ad291
fix(connector): add back deleted fields as deprecated
...
max_retries and retry_interval were removed from 5.0.4 wihtout
backward compatibliity.
This commit adds the fields back as deprecated
2022-08-10 09:50:12 +02:00
Shawn
8f0954837b
fix: update test cases for emqx_connector
2022-08-10 00:34:35 +08:00
William Yang
30f24131e2
Merge pull request #8650 from qzhuyan/fix/william/keep-alive-check
...
fix: keep alive check
2022-08-09 11:37:12 +02:00
Benjamin Krenn
70cb7768b0
Merge branch 'emqx:master' into feat_round_robin_per_node
2022-08-05 11:12:23 +02:00
Benjamin Krenn
71f31ab5cd
feat(shared-sub): add round_robin_per_group strategy
...
remove flaky tests that provide little value
2022-08-05 11:10:54 +02:00
Thales Macedo Garitezi
5bd2875db8
Merge pull request #8637 from thalesmg/esockd-tls-gc
...
feat: add option to gc after TLS/SSL handshake
2022-08-04 14:18:45 -03:00
Benjamin Krenn
5fa2a2aa44
Merge branch 'emqx:master' into feat_round_robin_per_node
2022-08-04 11:02:51 +02:00
Benjamin Krenn
dec892e867
feat(shared-sub): add round_robin_per_group strategy
...
add round robin per group strategy that balances load in a more predictable fashion when using no replication
2022-08-04 10:40:50 +02:00
William Yang
01b9115fd8
fix: keep alive check
...
According to MQTT spec, MQTT Server should check a complete MQTT message
recv in last keep-alive time frame instead of number of received bytes
from the socket.
This commit change to check the recv pkt counter from process dict
instead.
Also it could save some calls to erlang port.
2022-08-03 17:14:19 +02:00
Thales Macedo Garitezi
7f932d64be
docs: adjust descriptions
...
Co-authored-by: Zaiming (Stone) Shi <zmstone@gmail.com>
2022-08-03 09:38:51 -03:00
Thales Macedo Garitezi
19e101445c
feat: add option to gc after TLS/SSL handshake
2022-08-03 09:38:51 -03:00
lafirest
11165f4a9c
Merge pull request #8626 from lafirest/fix/connect_event_5
...
fix(channel): Adjust the timing of the `client.connected` event
2022-08-03 16:01:17 +08:00
JianBo He
cffaf95d00
chore: update apps/emqx/src/emqx_channel.erl
2022-08-02 17:20:58 +08:00
Thales Macedo Garitezi
a78760dbac
chore: bump app vsns
2022-08-01 10:57:34 -03:00
firest
78deee6846
fix(channel): Adjust the timing of the `client.connected` event
2022-08-01 17:35:48 +08:00
JianBo He
14920743ca
Merge pull request #8513 from lafirest/fix/limiter_interface
...
refactor(limiter): refactor the user interface
2022-08-01 11:02:15 +08:00
Thales Macedo Garitezi
a9b176b8bd
Merge pull request #8598 from thalesmg/license-fixes-50
...
license fixes (5.0)
2022-07-29 13:13:51 -03:00
JianBo He
be679f8128
Merge pull request #8589 from emqx/release-v5.0.4
...
Merge v5.0.4 into master branch
2022-07-29 08:49:10 +08:00
Thales Macedo Garitezi
8e08f045aa
chore(bpapi): add new vsn
2022-07-28 17:59:54 -03:00
Thales Macedo Garitezi
f8a1bd0715
feat(license): copy license file to cluster when updating it
2022-07-28 17:29:59 -03:00
JianBo He
5835120d8e
chore: relealse v5.0.4
2022-07-28 13:47:41 +08:00
zhouzb
9323878442
chore: bump vsn
2022-07-27 16:23:54 +08:00
Thales Macedo Garitezi
b4be9b6fae
chore: bump ekka -> 0.13.3
...
Mainly: https://github.com/emqx/erlang-rocksdb/pull/7
2022-07-26 09:50:14 -03:00
JianBo He
257e310931
chore: ensure the `bind` output style
...
e.g:
- Configured as `1883`, printed as `:1883`
- Configured as `0.0.0.0:1883`, printed as `:1883`
- Configured as `127.0.0.1:1883`, printed as `127.0.0.1:1883`
- Configured as `::1:1883`, printed as `[::1]:1883`
- Configured as `[::1]:1883`, printed as `[::1]:1883`
2022-07-26 19:02:04 +08:00
firest
bc716884e0
fix(limiter): fix spellcheck error
2022-07-26 15:16:53 +08:00
firest
bcc78950a9
fix(limiter): fix schema error
2022-07-26 14:33:04 +08:00
Chris Hicks
bc93d5f525
Merge pull request #8567 from emqx/EMQX-6018-v-5-0-4-cli-command-to-verify-config-syntax-against-schema
...
feat: Added emqx command to check configs
2022-07-25 17:14:42 +02:00
Ilya Averyanov
2f470b8878
Merge pull request #8554 from savonarola/authn-logging
...
Add more tracing for authentication
2022-07-25 17:43:00 +03:00
Ilya Averyanov
1a236db91b
chore(log): add authentication tracing
2022-07-25 17:14:19 +03:00
Chris
24f88679ae
feat: Added emqx command to check configs
2022-07-25 11:01:08 +02:00
JianBo He
74c5fd411b
chore(schema): trim space in ip_port
2022-07-25 09:33:47 +08:00
JianBo He
e0b33dc258
fix(listener): support listen on ipv6 address
2022-07-25 09:31:16 +08:00
Thales Macedo Garitezi
343a78b08a
feat(persistent_sessions): don't use rocksdb when unavailable
2022-07-22 10:59:41 -03:00
firest
ce46cb9216
fix(limiter): fix test case error
2022-07-22 18:59:02 +08:00
firest
15c8110af2
fix(limiter): lift the level of the `client` field
2022-07-22 17:14:24 +08:00
Zhongwen Deng
4d5dfe265b
fix: logger json formatter's config not working
2022-07-22 09:48:11 +08:00
Zhongwen Deng
116c664df1
feat: add sysmon config handler to reload conf
2022-07-21 12:33:56 +08:00
firest
dbab1bc96a
fix(limiter): fix elvis && dialyzer error
2022-07-20 15:00:12 +08:00
firest
d3f965dfe7
refactor(limiter): refactor the user interface
2022-07-20 13:57:31 +08:00
zhongwencool
b1c259191c
Merge pull request #8502 from ieQu1/wait-cluster-rpc-shard
...
Wait cluster rpc shard
2022-07-19 11:29:02 +08:00
ieQu1
6f00f51457
chore(ekka): Bump version
2022-07-18 15:13:40 +02:00
William Yang
4481ae6ff8
feat(quicer): bump to 0.0.16
2022-07-18 12:08:22 +02:00
Zhongwen Deng
421251f4c8
chore: improve the dashboard listener startup log
2022-07-14 09:49:54 +08:00
JimMoen
f42c8ffcfa
test(connector): redis sentinel include name
2022-07-13 10:37:16 +08:00
firest
bcc16230cc
fix(stats): fix topic name error
2022-07-12 13:55:36 +08:00
Zaiming (Stone) Shi
49d008371f
chore: bump version to 5.0.4
2022-07-08 22:35:16 +02:00
Shawn
b55048f705
chore: update app versions
2022-07-08 16:29:07 +08:00
Shawn
9ca5927b88
fix: issue in test cases
2022-07-08 14:07:28 +08:00
Shawn
71f642518a
fix: the file cluster-override.conf is emptied if hocon_pp:do/2 failed
2022-07-08 09:17:23 +08:00
Zhongwen Deng
0b1117df47
chore: upgrade hocon to 0.28.3 to speed up schema cache
2022-07-07 15:00:41 +08:00
Zaiming (Stone) Shi
07783249bb
chore: move emqx API version (in generated doc) to emqx_release.hrl
...
So we have one place to bump all versions
2022-07-06 14:01:35 +02:00
Zaiming (Stone) Shi
fa89b633d8
chore: bump version to 5.0.3
2022-07-04 23:23:20 +02:00
Zaiming (Stone) Shi
a7e948b0f4
fix(ws): websocket header get expects bin-string
2022-07-04 23:20:22 +02:00
Zaiming (Stone) Shi
4b383a42f3
Merge pull request #8399 from zmstone/0702-no-relup-for-opensource-edition
...
0702 no relup for opensource edition
2022-07-02 11:57:36 +01:00
Zaiming (Stone) Shi
999eac5376
chore: bump emqx app version to 5.0.2
2022-07-02 11:44:19 +02:00
Zaiming (Stone) Shi
c602ef708f
chore: bump version to 5.0.2
2022-07-02 11:44:19 +02:00
Zhongwen Deng
3675ba0c9f
fix: restricted_shell not working
2022-07-02 16:58:52 +08:00
zhouzb
0cce1df2b6
chore: bump release vsn
2022-07-01 22:03:47 +08:00
JimMoen
2ad99fca7a
chore: update appup.src
2022-07-01 21:07:33 +08:00
ieQu1
7d46e8671e
Merge pull request #8376 from ieQu1/nicer-bpapi-errors
...
fix(bpapi): Make error messages nicer
2022-07-01 14:50:49 +02:00
zhongwencool
670f83e415
Merge pull request #8369 from zhongwencool/sync-authz-certs
...
fix: sync data's authz and certs
2022-07-01 17:32:22 +08:00
DDDHuang
25c37a63ef
Merge pull request #8356 from DDDHuang/pubsub_api
...
Pubsub api
2022-07-01 17:24:18 +08:00
JianBo He
a13d726d17
Merge pull request #8315 from lafirest/v5.0
...
feat: add exclusive subscription
2022-07-01 16:00:10 +08:00
JianBo He
127ecdbf77
Merge pull request #8375 from lafirest/fix/authn_metrics_clause
...
fix(metrics): fix authn metrics count clause error
2022-07-01 15:53:52 +08:00
Zhongwen Deng
c23ccbd370
chore: update bpapi.verions
2022-07-01 15:51:25 +08:00
ieQu1
e2c2f7b224
feat(bpapi): Add a header to bpapi.versions file
2022-07-01 09:50:04 +02:00
ieQu1
2f7078f314
fix(bpapi): Make error messages nicer
2022-07-01 09:34:35 +02:00
DDDHuang
6c9cad366b
fix(api): client sub & unsub batch
2022-07-01 15:21:11 +08:00
William Yang
ff9ed0eab9
Merge pull request #8365 from qzhuyan/dev/william/bump-quicer
...
fix(quic): overload protection follows zone config
2022-07-01 09:17:22 +02:00
firest
9170a05990
fix(metrics): fix authn metrics count clause error
2022-07-01 15:14:46 +08:00
Zhongwen Deng
9af470dee9
chore: upgrade emqx_conf bpapi to version 2
2022-07-01 15:00:14 +08:00
firest
d205f10fab
chore: add upgarde callback for emqx_exclusive_subscription
2022-07-01 14:59:10 +08:00
firest
5981a23fe4
fix(exclusive): add upgarde API && fix description error
2022-07-01 14:44:51 +08:00
firest
b1b1d40528
fix(exclusive): fix xref error && change exclusive default value
2022-07-01 14:43:32 +08:00
firest
85f6846f89
chore: update emqx.appup.src
2022-07-01 14:43:30 +08:00
firest
af5bf52ddf
feat: add exclusive subscription
2022-07-01 14:36:41 +08:00
firest
9ce2dbb77a
fix(metrics): adjust metrics count codes
2022-07-01 13:42:40 +08:00
firest
7f18969f1e
fix(metrics): revert client.authenticate count method
2022-07-01 12:22:48 +08:00
firest
c45cf62b3d
chore: update emqx.appup.src
2022-07-01 12:22:48 +08:00
firest
9415a94c7f
feat(metrics): optimize client.authenticate
2022-07-01 12:22:48 +08:00
Shawn
264cf036c7
chore: release 5.0.1-beta.1
2022-07-01 11:12:08 +08:00
William Yang
ecf0c8d7e2
fix(quic): overload protection follows zone config
2022-06-30 20:51:45 +02:00
ieQu1
227602fa3a
fix(bpapi): Don't check forward compatibility from old release
2022-06-30 14:09:43 +02:00
Thales Macedo Garitezi
e70ab24a48
fix(hooks): return error on hook-removed subscription rather than deleting it (5.0)
...
Port of https://github.com/emqx/emqx/pull/8346
2022-06-29 11:10:36 -03:00
Zaiming (Stone) Shi
b3f16ccb36
fix: Erlang distribution over TLS
2022-06-28 21:49:02 +02:00
Zaiming (Stone) Shi
e4b22e2dc7
fix: enable -ssl_dist_optfile option in vm.args by default
...
this config has no effect if inet_tcp is in use
2022-06-28 21:49:02 +02:00
Zhongwen Deng
6372456211
chore: move vm.args.* to etc/
2022-06-28 10:36:43 +08:00
Thales Macedo Garitezi
57a36e53da
Merge pull request #8304 from thalesmg/fix-client-sub-hook-50
...
fix(hooks): allow `client.subscribe` hook to reject subscriptions
2022-06-27 10:44:55 -03:00
Zaiming (Stone) Shi
55558ccfbd
chore: allow lazy type environment variable override
2022-06-26 14:16:08 +02:00
Zaiming (Stone) Shi
5dec0be6e4
refactor(emqx_schema): remove union wrapper around array of maps
...
it's previously a union of array (of maps) and map.
since the second union member has been removed
there is no point of keeping the union wrapper
2022-06-26 14:13:14 +02:00
Thales Macedo Garitezi
4b44fda16b
fix(hooks): allow `client.subscribe` hook to reject subscriptions
...
Port of https://github.com/emqx/emqx/pull/8288
2022-06-23 11:33:55 -03:00
Zaiming (Stone) Shi
54f3dd3ddc
chore(appup): add appup for emqx_conf
2022-06-22 00:06:26 +02:00
Zaiming (Stone) Shi
0e62f4e70d
docs: escape <foobar> as \<foobar>
2022-06-21 21:32:06 +02:00
ieQu1
78ffb2b2b1
test(bpapi): Add API dump for 5.0.0
2022-06-21 09:31:59 +02:00
Zaiming (Stone) Shi
b467e11b2e
fix(appup): fixed appup and version check scripts for 5.0
2022-06-20 22:20:31 +02:00
Zaiming (Stone) Shi
7ae3b4e28c
chore: bump emqx app vsn to 5.0.1
2022-06-20 20:28:21 +02:00
JianBo He
366779e621
chore: bump version
2022-06-17 20:41:30 +08:00
JianBo He
e6fde4d292
Merge pull request #8259 from HJianBo/fix-url-conflict
...
fix(mgmt): avoid to HTTP dispatch failure due to an URI defination conflict
2022-06-17 20:40:07 +08:00
JianBo He
403ee13e17
test: increase waiting time
2022-06-17 20:00:38 +08:00
Zaiming (Stone) Shi
701a113aa4
ci: pin quicer 0.0.14
2022-06-17 12:35:54 +02:00
JianBo He
ca10340eed
Merge pull request #8253 from lafirest/fix/retainer_bucket
...
fix(retainer): check does the bucket is exists when update the retain…
2022-06-17 15:20:17 +08:00
Zhongwen Deng
bdb35c2e0b
fix: keepalive_backoff should be a number(int|float)
2022-06-17 12:03:47 +08:00
firest
2444970b0b
fix(retainer): check does the bucket is exists when update the retainer config
2022-06-17 10:25:08 +08:00
Xinyu Liu
c47d28cdc3
Merge pull request #8247 from terry-xiaoyu/mongo_auth_timeout
...
feat: add start_after_created option to resource:create/4
2022-06-17 07:51:52 +08:00
Shawn
d6ef2f7502
refactor: graceful recreate resources
2022-06-17 05:29:18 +08:00
Zaiming (Stone) Shi
7824ae5f09
fix(pmap): try not to exit abnormal as much as possible
2022-06-16 21:03:19 +02:00
zhongwencool
7088b02480
Merge pull request #8239 from zhongwencool/listener-options-default
...
fix: default nodelay(true),buffer(4kb)
2022-06-16 21:57:13 +08:00
Zaiming (Stone) Shi
fa41c9ff35
chore: pin quicer 0.0.12
...
quicer (quic.git) 0.0.12 has a build cache enabled which can spped up
the builds
2022-06-16 12:17:02 +02:00
William Yang
3c7dd5d6c4
Merge pull request #8092 from qzhuyan/dev/william/bump-quicer
...
feat: new quicer 0.0.11
2022-06-16 11:48:31 +02:00
William Yang
a911c27962
feat(quic): bump emqtt to 1.6.0 with quic 0.0.11
2022-06-16 10:38:46 +02:00
Zhongwen Deng
d8af08b292
fix: nodelay(true),buffer(4k)
2022-06-16 15:27:10 +08:00
Zaiming (Stone) Shi
d0709798e7
Merge pull request #8229 from zmstone/0615-delete-appname-for-k8s-and-dns-discovery
...
Delete app name config for k8s and dns discovery
2022-06-16 07:29:02 +01:00
Zhongwen Deng
634a75341a
fix: remove nonexistent listener should always return ok
2022-06-16 11:33:24 +08:00
Zhongwen Deng
c6271de174
fix: restart started listener when listener connection options update
2022-06-16 11:26:54 +08:00
Xinyu Liu
3b00b16abe
Merge pull request #8221 from terry-xiaoyu/fix_delayed_module_disbled_after_emqx_stop
...
feat: fix the hook priorities
2022-06-16 09:42:42 +08:00
JianBo He
584a1a6415
Merge pull request #8226 from savonarola/listener-anonymous
...
feat(authn): add enable_authn flag for listeners
2022-06-16 09:40:24 +08:00
Shawn
f59443eaee
fix: add macro HP_HIGHEST=1000
2022-06-16 09:16:43 +08:00
Zaiming (Stone) Shi
67b8e6c3bd
test: add a script to test dns cluster node discovery
2022-06-16 01:34:16 +02:00
Ilya Averyanov
e381e3698f
feat(authn): add enable_authn flag for listeners
2022-06-15 22:26:08 +03:00
Zaiming (Stone) Shi
efda516125
chore: fix typos
2022-06-15 19:05:09 +02:00
Shawn
48f685a0dd
fix: remove the APIs for emqx_hooks:put/2 and emqx_hooks:add/2
2022-06-16 00:43:50 +08:00
zhongwencool
604f0d9511
Merge pull request #8224 from zhongwencool/gateway-authn-mismatch
...
fix: don't merge gateway's authn
2022-06-15 23:04:52 +08:00
zhongwencool
fbfed35371
Merge pull request #8214 from zmstone/0613-best-effort-json-for-hocon-type-check-errors
...
refactor: best-effort json for hocon type check errors
2022-06-15 22:45:05 +08:00
Zhongwen Deng
5561fa6e06
fix: listener_SUITE failed
2022-06-15 21:20:25 +08:00
Zaiming (Stone) Shi
738a551550
refactor: best-effort json for hocon validation errors
2022-06-15 15:01:15 +02:00
William Yang
2908c06c54
fix(quic): default quic listener
2022-06-15 14:39:29 +02:00
William Yang
45e2605485
build: workaround for windows build
2022-06-15 14:39:29 +02:00
William Yang
96a510fbf1
feat(quic): fix some listener
2022-06-15 14:39:29 +02:00
William Yang
6349b5e5e0
feat(quic): bump to quicer 0.0.11
2022-06-15 14:39:29 +02:00
William Yang
219f159fe7
Merge pull request #8219 from qzhuyan/dev/william/emqx-conf-vm-args
...
chore(conf): mv some default val of vmargs to emqx_conf
2022-06-15 14:14:57 +02:00
JianBo He
89ff67a1e6
Merge pull request #8211 from lafirest/fix/limiter_infinity_update
...
fix(limiter): set maximum value for `infinity` rate and capacity
2022-06-15 20:04:55 +08:00
zhongwencool
14ba93d1df
Merge pull request #8218 from zhongwencool/enabled-listener
...
feat: add enabled for listeners
2022-06-15 19:28:28 +08:00
Shawn
39b1b20506
feat: fix the hook priorities
2022-06-15 19:03:40 +08:00
JianBo He
67063cd088
Merge pull request #8190 from HJianBo/fix-authz-setting-required
...
fix(authz): fix required not working for authz-cache
2022-06-15 18:52:03 +08:00
firest
28d9939713
fix(limiter): fix test case errors
2022-06-15 17:35:13 +08:00
firest
4e05d751c1
fix(limiter): change limiter log level to debug
2022-06-15 16:01:16 +08:00
Zhongwen Deng
042b88db2d
fix: don't start listener when update stopped listener
2022-06-15 15:20:53 +08:00
William Yang
efed970aab
chore(conf): mv some default val of vmargs to emqx_conf
2022-06-15 09:06:06 +02:00
firest
c147743895
fix(limiter): move default connection setting into schema
2022-06-15 14:57:49 +08:00
Zhongwen Deng
36af3d066f
feat: add enabled for listeners
2022-06-15 14:39:58 +08:00
firest
fa99b65c91
fix(limiter): refresh dispatcher limiter when retainer config updated
2022-06-15 14:11:15 +08:00
firest
6ca58e5fbc
fix(limiter): fix test case error
2022-06-15 14:11:15 +08:00
firest
e5d223000e
fix(limiter): set maximum value for `infinity` rate and capacity
...
There are now two types of limiters, `infinity` and `limited`.
When `infinity` is updated to `limited` by config, the changes only take effect for new users.
When `limited` is updated to `infinity`, old users will never get tokens, because the `countes`
they hold are no longer updated.
Setting the maximum value for `infinity` rate and capacity can unify these two limiters and slove this problem
2022-06-15 14:11:12 +08:00
JianBo He
03967a83de
chore(authz): make `authorization.cache.enable` required
2022-06-15 13:46:17 +08:00
JianBo He
f1d4bab97d
Merge pull request #8156 from lafirest/fix/default_con_limiter
...
fix(limiter): add default connection limiter for listeners
2022-06-15 13:38:13 +08:00
JianBo He
5817b7a9a9
Merge pull request #8157 from lafirest/fix/rmv_client_prefix
...
fix(metrics): remove the `client.` prefix for AuthN/AuthZ metrics
2022-06-14 17:23:48 +08:00
firest
45aa9d604b
fix(metrics): remove the client. prefix for AuthN/AuthZ metrics
2022-06-14 14:08:25 +08:00
Xinyu Liu
e9f2ba4c71
Merge pull request #8203 from terry-xiaoyu/force_sync_configs
...
Change the default retry_interval of cluster_rpc call to 1min
2022-06-14 11:27:24 +08:00
Thales Macedo Garitezi
4d0c60cacf
Merge pull request #8178 from thalesmg/fix-connack-auth-err-mqtt3-50
...
fix(metrics): inc `connack.auth_error` when using MQTT 3.1 (5.0)
2022-06-13 16:07:25 -03:00
Thales Macedo Garitezi
5f9778237a
test(fix): avoid depending on other apps; fix setup
2022-06-13 12:00:00 -03:00
Shawn
dd099137f0
fix: catch errors when load bridges
2022-06-13 22:31:58 +08:00
Zaiming (Stone) Shi
01118cb804
Merge pull request #8195 from zmstone/0613-refactor-display-rfc3339
...
refactor: expose rfc3339 datetime string
2022-06-13 14:19:19 +01:00
Zaiming (Stone) Shi
b18290626d
Merge pull request #8194 from zmstone/0613-uptime-format-as-string-in-cli-printout
...
fix: uptime display in CLI printout should be human-readable
2022-06-13 13:55:42 +01:00
William Yang
5b79fd55a2
Merge pull request #8176 from qzhuyan/dev/william/kill-quic
...
chore: don't build quic on MacOS
2022-06-13 14:34:39 +02:00
Zaiming (Stone) Shi
08d5f4869b
Merge pull request #8183 from zmstone/0612-chore-pin-rebar3_hex-plugin-version-7.0.2
...
build: pin rebar3_hex plugin version 7.0.2
2022-06-13 12:33:18 +01:00
William Yang
d49a75ae28
chore: don't build quic on MacOS
2022-06-13 13:09:20 +02:00
Zaiming (Stone) Shi
8518e71db1
Merge pull request #8182 from zmstone/0611-fix-config-update-race-condition
...
fix(cluster_rpc): config update race condition
2022-06-13 11:46:08 +01:00
Zaiming (Stone) Shi
10add62206
refactor: expose rfc3339 datetime string
2022-06-13 11:56:07 +02:00
Zaiming (Stone) Shi
ba23771a0a
fix: uptime display in CLI printout should be human-readable
2022-06-13 11:44:26 +02:00
Zaiming (Stone) Shi
2e6af5f2e1
test: fix a flaky test
...
emqtt client may start before listener is ready
2022-06-13 10:46:31 +02:00
firest
f5c1221ec8
fix(limiter): fix test case error
2022-06-13 15:58:22 +08:00
firest
7e3c8162ea
fix(limiter): remove the `enable` field
2022-06-13 14:43:10 +08:00
firest
d13055be43
fix(limiter): add default connection limiter for listeners
2022-06-13 14:43:10 +08:00
firest
2512ebf58e
fix(limiter): fix counter rate calc error
2022-06-13 14:18:20 +08:00
lafirest
1963441472
Merge pull request #8167 from lafirest/fix/limiter_period
...
fix(limiter): fix precision issue
2022-06-13 10:13:05 +08:00
Zaiming (Stone) Shi
2065be569e
fix(emqx_cluster_rpc): fail fast on stale state
...
Due to:
* Cluster RPC MFA is not idempotent!
* There is a lack of rollback for callback's side-effects
For instance, when two nodes try to add a cluster-singleton
concurrently, one of them will have to wait for the table lock
then try to catch-up, then try to apply MFA.
The catch-up will have the singleton created, but the initiated
initiated multicall apply will fail causing the commit to rollback,
but not to 'undo' the singleton creation.
Later, the retries will fail indefinitely.
2022-06-12 20:18:48 +02:00
Zaiming (Stone) Shi
d418850d3c
Merge pull request #8165 from zmstone/0609-chore-update-to-mria-0.2.8
...
chore: update mria to 0.2.8
2022-06-11 16:53:04 +01:00
Thales Macedo Garitezi
7cd35c9d44
fix(metrics): inc `connack.auth_error` when using MQTT 3.1 (5.0)
...
Since MQTT 3.1 uses a different reason code for auth failures, it was
failing to increase the corresponding metric that works for MQTT 5.0.
2022-06-10 17:40:27 -03:00
gsychev
86c1610d26
Merge pull request #8039 from gsychev/multinode_helper
...
Multinode helper
2022-06-10 13:10:38 +00:00
Zaiming (Stone) Shi
1b4f29bd64
chore: update ekka to 0.12.9
...
compring to 0.12.8, it included a version bump of erlang_rocksdb
which fixed a CI build issue (bad version number uploaded to github
artifacts, caused cached build result to always fail to download
hence fallback to compile from source code)
2022-06-10 13:59:30 +02:00
Georgy Sychev
c29eb8a409
feat(testing): Multinode testing helper
2022-06-09 13:33:01 +04:00
firest
e01f8ecccb
fix(limiter): fix precision issue
...
When the global rate is less than 1/s, the bad code produces a long period, this will make the rate not correct
2022-06-09 10:39:21 +08:00
Shawn
dcc8e27bcd
fix: change default idle_timeout of ws connections to 7200s
2022-06-09 10:29:49 +08:00
lafirest
0aab063dd5
Merge pull request #8153 from lafirest/fix/limiter_obtained
...
fix(limiter): fix initial value error for `obtained`
2022-06-08 13:46:30 +08:00
lafirest
787724bb99
Merge pull request #8143 from lafirest/chore/bump_esockd_version
...
chore: bump esockd version
2022-06-08 10:17:02 +08:00
Zhongwen Deng
853ead3aaf
fix: reload ssl listener failed
2022-06-08 06:25:13 +08:00
Zhongwen Deng
5e92ef54c5
fix: ct failed
2022-06-07 20:13:57 +08:00
firest
d863a60cff
fix(limiter): fix initial value error for `obtained`
2022-06-07 18:17:06 +08:00
Zhongwen Deng
dd873147b3
feat: make tcp/ssl options more straightforward
2022-06-07 17:17:06 +08:00
firest
0b84479221
chore: bump esockd version
2022-06-07 13:20:56 +08:00
zhongwencool
914fbedd7e
Merge pull request #8116 from zhongwencool/better-hocon-validate-msg
...
chore: better hocon validate msg
2022-06-06 20:29:25 +08:00
Zhongwen Deng
de5e388afb
chore: hocon validate message
2022-06-06 09:55:12 +08:00
Zhongwen Deng
c7cc2e85b2
fix: add default&example for schema
2022-06-06 09:52:10 +08:00
Ilya Averyanov
4adfe75530
Merge pull request #8108 from savonarola/authn-delete-chain
...
Authn delete chain
2022-06-03 12:16:42 +03:00
Zaiming (Stone) Shi
a272951415
Merge pull request #8107 from zmstone/0531-test-fix-flaky-test-case
...
test: wait for listener to be ready before running test case
2022-06-02 15:52:40 +01:00
Ilya Averyanov
0893a36dec
fix(authn): removed explicit chain creation for security reasons
2022-06-02 14:03:19 +03:00
Ilya Averyanov
92145d0275
fix(metrics): make metric id unique for authn provider instances
2022-06-02 14:03:19 +03:00
Ilya Averyanov
d32b2ecd81
fix(authn api): update removing listener-specific chain logic
2022-06-02 14:03:14 +03:00
Ilya Averyanov
1bad5f8b7c
Merge pull request #8088 from savonarola/authn-import-users-request
...
feat(authn api): add method for user file upload
2022-06-02 13:51:46 +03:00
Ilya Averyanov
2d53c21d45
chore(authn api): replace user import api with upload api
2022-06-01 19:56:23 +03:00
Shawn
88ca25c60c
fix(resource): fast return when starting a unavailable resource
2022-06-01 08:24:53 +08:00
Zaiming (Stone) Shi
a7148a4a43
test: wait for listener to be ready before running test case
2022-05-31 20:08:21 +02:00
Shawn
4c247c2c3c
chore: release v5.0.0-rc.4
2022-05-31 23:35:46 +08:00
Xinyu Liu
d9a5f53601
Merge pull request #8097 from zhongwencool/ct-failed
...
fix: ct failed
2022-05-31 22:02:35 +08:00
JianBo He
f4db4ffa7d
chore: change idle_timeout 24h -> 15s
2022-05-31 21:47:54 +08:00
Zhongwen Deng
9861e07426
fix: ct failed
2022-05-31 21:21:15 +08:00
Zaiming (Stone) Shi
9dda0a663f
fix(emqx_schema): sync default values
2022-05-31 15:13:38 +02:00
JianBo He
11ef46bc1d
fix: fix badmatch for emqx_os_mon:update_mem_alarm_status/1
2022-05-31 20:46:48 +08:00
zhongwencool
55d2e5aee7
Merge pull request #8009 from zhongwencool/simplify-conf
...
feat: generate a minimized emqx.conf
2022-05-31 20:32:42 +08:00
Zhongwen Deng
d61b44ef97
fix: ct failed again
2022-05-31 19:20:27 +08:00
Zhongwen Deng
0fcc02caf4
chore: comment quic listener from emqx.conf
2022-05-31 19:20:27 +08:00
Zhongwen Deng
6c9b959651
fix: ct failed
2022-05-31 19:20:27 +08:00
Zhongwen Deng
26a57a00bb
fix: cluster crash
2022-05-31 19:20:27 +08:00
Zhongwen Deng
1345b7e993
chore: bump hocon to 0.28.0
2022-05-31 19:20:27 +08:00
Zhongwen Deng
61237cd97b
chore: debug for docker start failed
2022-05-31 19:20:27 +08:00
Zhongwen Deng
9ec804ae03
feat: generate example.conf from schemas
2022-05-31 19:20:27 +08:00
Zhongwen Deng
2b4b3d1b56
test: debug broker segmentation fault
2022-05-31 19:20:27 +08:00
Zhongwen Deng
d215f5e4e6
test: add default quic conf
2022-05-31 19:20:27 +08:00
Zhongwen Deng
239949ff0b
fix: elvis warning
2022-05-31 19:20:27 +08:00
Zhongwen Deng
96baf4ccdb
fix: don't add default if root_key not found
2022-05-31 19:20:27 +08:00
Zhongwen Deng
8aa60cc0a5
feat: generate a minimized emqx.conf
2022-05-31 19:20:27 +08:00
Zaiming (Stone) Shi
f4886206ef
fix: ignore other os when updating sysmem alarm
2022-05-31 12:51:23 +02:00
ieQu1
06d2e1d05a
Merge pull request #8082 from ieQu1/mria-0.2.6
...
chore(mria): Bump version to 0.2.7
2022-05-31 10:22:52 +02:00
William Yang
f6e53c7f55
Merge pull request #8086 from qzhuyan/dev/william/no-def-quic-listen
2022-05-31 07:39:10 +02:00
JianBo He
96f58d0ec8
Merge remote-tracking branch 'ce/master' into authn-import-users-request
2022-05-31 10:11:21 +08:00
JianBo He
f1c596134a
Merge pull request #8084 from savonarola/authn-delete-chain
...
fix(authn api): add method for removing listener-specific chains
2022-05-31 09:50:53 +08:00
William Yang
3955456c8a
chore: remove default quic listener
2022-05-30 23:58:44 +02:00
Ilya Averyanov
3be617cf40
feat(authn api): add method for user file upload
2022-05-31 00:40:10 +03:00
ieQu1
d5649d1f89
chore(mria): Bump version to 0.2.7
2022-05-30 20:20:23 +02:00
Ilya Averyanov
4cae80c8d2
fix(authn api): add method for removing listener-specific chains
2022-05-30 15:33:21 +03:00
gsychev
b80f038fcc
Merge pull request #7860 from gsychev/shared_redispatch5
...
Shared redispatch for 5.0
2022-05-30 11:20:51 +00:00
Shawn
004a784952
fix(test): stop apps at the end of the emqx_bpapi_SUITE
2022-05-30 11:17:43 +08:00
Thales Macedo Garitezi
f187ba4a62
Merge pull request #8074 from thalesmg/fix-flaky-test-responser
...
test(flaky): attempt to fix more flaky tests
2022-05-27 17:14:53 -03:00
Thales Macedo Garitezi
718989c0c9
test(flaky): attempt to fix more flaky tests
2022-05-27 16:35:50 -03:00
gsychev
db368e83b1
fix(session): takenover
...
Co-authored-by: Thales Macedo Garitezi <thalesmg@gmail.com>
2022-05-27 14:54:18 +00:00
Zaiming (Stone) Shi
eacd3847ed
fix(emqx_mgmt): show used and total ram from lc
2022-05-27 14:04:30 +02:00
Zaiming (Stone) Shi
7b9a600c20
Merge pull request #8055 from zmstone/0526-delete-edge-edition
...
refactor: stop releasing edge edition
2022-05-27 00:13:47 +01:00
Zaiming (Stone) Shi
a76e258d41
test: fix flaky test
2022-05-26 20:05:46 +02:00
Zaiming (Stone) Shi
ebe4d7c3fb
refactor: stop releasing edge edition
...
Prior to EMQX 5.0, the edge edition's main difference comaring
to standard edition are:
* Less number of plugins in the release (smaller package size)
* Smaller number is vm.args (for lower memory usage)
Starting from 5.0 most of the plugins are included as features,
the tuned vm.args arguments does not justify a special release edition.
Also as nanomq is getting mature,
EMQ's recommendtation for MQTT broker in edge is https://nanomq.io/
2022-05-26 20:05:46 +02:00
JimMoen
6c91cf3c72
fix: typo in authn/authz metrics sup
2022-05-26 20:11:45 +08:00
Shawn
9c5c961356
fix(test): emqx_mqtt_caps_SUITE failed with {config_not_found,[zones]}
2022-05-26 08:45:25 +08:00
Xinyu Liu
ea09ad6403
Merge pull request #8034 from emqx/update_relup_script
...
fix: porting the install_upgrade.escript from v4.4
2022-05-25 15:46:13 +08:00
Shawn
3d7cab4288
fix: porting emqx_relup.erl from 4.4
2022-05-25 12:37:03 +08:00
Zaiming (Stone) Shi
24529337d9
Merge pull request #8038 from zmstone/0524-fix-typo
...
chore(emqx_os_mon): fix a typo
2022-05-24 18:51:04 +01:00
Zaiming (Stone) Shi
ff9ba3e862
chore(emqx_os_mon): fix a typo
2022-05-24 18:08:34 +02:00
Zhongwen Deng
e40d3c6228
chore: fix emqx_trace_SUITE failed
2022-05-24 22:26:55 +08:00
ieQu1
48c143b97a
fix(emqx_trace): Read the data locally
2022-05-24 14:39:55 +02:00
Georgy Sychev
d911a5a9d4
fix(shared): fixed logging
2022-05-24 15:57:38 +04:00
ieQu1
e7d70c142c
fix(emqx_shared_sub): Don't crash on table schema change
2022-05-24 13:03:18 +02:00
Georgy Sychev
d0cf112e17
fix(shared): dialyzer
2022-05-24 11:17:34 +04:00
zhongwencool
875b40a4fc
Merge pull request #8016 from lafirest/fix/simplify_limiter_cfg
...
fix(limiter): Simplified limiter configuration
2022-05-24 14:01:08 +08:00
firest
89de8274a0
test(retainer): fix flow control test case error
2022-05-24 12:44:47 +08:00
Georgy Sychev
ea313df2cc
fix(shared): removed emqx_message:format
2022-05-24 00:06:29 +04:00
Georgy Sychev
671906dd59
fix: typo
2022-05-23 22:46:49 +04:00
Georgy Sychev
f964989d6b
feat(shared): redispatch QoS1 messages when sub dies
2022-05-23 17:52:39 +04:00
firest
74f715ca08
fix(limiter): Simplified limiter configuration
...
1. Simplified limiter configuration
2. add switch for limiter server
2022-05-23 17:45:42 +08:00
firest
6a2a7b96ea
fix(limiter): remove the unused limit conf
2022-05-20 18:02:14 +08:00
JianBo He
0a6276f9fe
test: suppress ct:print/2 producing ton of useless logs
2022-05-19 14:16:21 +08:00
Yang Miao
bf552f2c4b
Merge pull request #7980 from EMQ-YangM/fix_zero_padding
...
fix: zero padding should be to the MSB side
2022-05-18 17:22:23 +08:00
EMQ-YangM
66c62f432b
fix: zero padding should be to the MSB side
2022-05-18 15:28:01 +08:00
Yang Miao
2b58733571
Merge pull request #7971 from EMQ-YangM/fix_hexstring_to_binary
...
fix: hexstr_to_bin support half byte
2022-05-18 10:14:25 +08:00
EMQ-YangM
d8da8f1686
fix: hexstr_to_bin support half byte
2022-05-17 16:47:59 +08:00
Zaiming (Stone) Shi
d1ffba7ff4
Merge pull request #7966 from zmstone/0516-ignore-bad-metrix-value
...
fix(emqx_map_lib): ignore non-number non-map values
2022-05-17 07:33:15 +01:00
Shawn
c4faaee555
chore: release 5.0.0-rc.3
2022-05-16 18:10:42 +08:00
Zaiming (Stone) Shi
5deb0c4878
fix(emqx_map_lib): ignore non-number non-map values
2022-05-16 10:59:18 +02:00
Zaiming (Stone) Shi
3524fb6994
Merge pull request #7775 from zmstone/0426-5.0-hint-metrics-merge-errors
...
fix: hint metrics merge errors
2022-05-16 07:42:01 +01:00
Zaiming (Stone) Shi
522bd935ba
fix(authn): check authenticator config existence in pre-update callback
...
prior to this change, the authenticator existence check was done
in the post-update callback, this causes confusion as teh list
already contains duplication.
2022-05-15 09:19:31 +02:00
Zaiming (Stone) Shi
9527561125
refactor: ensure auth mechanism is binary
2022-05-15 09:19:28 +02:00
Zaiming (Stone) Shi
382d9079e1
Merge pull request #7923 from zmstone/0511-pin-lc-0.3.0-fix-memory-usage-false-alarm
...
pin lc 0.3.0 fix memory usage false alarm
2022-05-13 21:55:23 +01:00
Zaiming (Stone) Shi
2eb621ba57
fix: hint metrics merge errors
2022-05-13 21:38:51 +02:00
Zaiming (Stone) Shi
d48528d74f
chore(emqx_os_mon): no need for special handling of 0
2022-05-13 21:12:08 +02:00
Zaiming (Stone) Shi
5f3780a032
fix(os_mon): ensure float point number for ~f format
2022-05-13 20:55:28 +02:00
Zaiming (Stone) Shi
99d50d2455
Merge pull request #7496 from zmstone/0401-5.0-add-parallel-map-lib
...
refactor: refine pmap with nolink_apply
2022-05-13 18:40:36 +01:00
Zaiming (Stone) Shi
c355c40ea8
refactor: call emqx_alarm:ensure_deactivated everywhere
2022-05-13 16:02:55 +02:00
Zaiming (Stone) Shi
4013dd2f14
refactor: refine pmap implementation
2022-05-13 15:22:42 +02:00
Georgy Sychev
0522361604
feat(shared_sub): Per-group shared subscription and local strategy
2022-05-13 14:23:06 +02:00
Zaiming (Stone) Shi
1ea0639321
fix(os_mon): do mem check and alarm triggers in emqx_os_mon
2022-05-13 13:06:27 +02:00
Zaiming (Stone) Shi
95f81126ca
fix(emqx_os_mon): call load_ctl (lc) to get accurate memory stats
...
Prior to this commit, the RAM usage ratio reported by memsup is
used to trigger EMQX alarm.
This ratio counted system cache as 'used', so quite often
a false alarm is triggered.
With lc 0.3.0, the usage is caculated without cached RAM
2022-05-13 13:06:27 +02:00
Zaiming (Stone) Shi
eb592df275
chore: pin lc version 0.3.0
...
lc 0.3.0 has new APIs added to get total RAM and usage ratio
2022-05-13 13:06:27 +02:00
Zaiming (Stone) Shi
44b14fc019
Merge pull request #7948 from zmstone/0513-fix-flaky-test
...
0513 fix flaky test
2022-05-13 12:06:03 +01:00
ieQu1
d277e2b644
Merge pull request #7897 from ieQu1/persist-sess-schema
...
feat(persistent_session): Make schema more flexible
2022-05-13 11:53:30 +02:00
Zaiming (Stone) Shi
7207b2fa70
test: ensure emqx app stoped for emqx_ctl_SUITE run
2022-05-13 11:52:41 +02:00
Zaiming (Stone) Shi
002249a89a
docs: water mark -> watermark
2022-05-13 08:35:33 +02:00
ieQu1
8dbd080e45
docs(persistent_session): Apply suggestions from William
2022-05-12 14:29:25 +02:00
ieQu1
b06c4cb6cc
docs(persistent_session): Apply suggestions from code review
...
Co-authored-by: JianBo He <heeejianbo@163.com>
2022-05-12 14:29:25 +02:00
ieQu1
03cfb67a45
docs(persistent_session): Fix Chinese translation
2022-05-12 14:29:25 +02:00
ieQu1
a1285cd308
fix(persistent_sessions): Enhance documentation
2022-05-12 14:29:25 +02:00
ieQu1
39aa7de88f
fix(grammar): Fix Chinese translations
...
Co-authored-by: JianBo He <heeejianbo@163.com>
2022-05-12 14:29:25 +02:00
ieQu1
5221c6b2f9
feat(persistent_session): Make schema more flexible
2022-05-12 14:29:25 +02:00
ieQu1
e71cac5031
chore(bpapi): Ensure versions are sorted alphabetically
2022-05-12 11:49:01 +02:00
ieQu1
ace6ad25e9
fix(bpapi): Compile the code in check profile before running xref
2022-05-12 11:30:05 +02:00
ieQu1
c39665edbd
refactor(bpapi): Un-chew formatting
2022-05-12 10:55:22 +02:00
lafirest
d06377d82d
Merge pull request #7925 from lafirest/chore/esockd_version
...
chore: update esockd to 5.9.2
2022-05-12 15:49:08 +08:00
zhongwencool
dbfbdb930f
Merge pull request #7920 from zhongwencool/remove-enable-from-server-ssl-options
...
fix: remove enable from server_ssl_opts_schema
2022-05-12 14:47:26 +08:00
Zhongwen Deng
f0cb72dda6
fix: telemetry can't get active plugins list
2022-05-12 11:18:44 +08:00
firest
8a5c11744f
chore: update esockd to 5.9.2
2022-05-12 10:18:37 +08:00
lafirest
dc77c052cf
Merge pull request #7904 from lafirest/fix/listener_limiter_update
...
fix(listener): when update listener conf, should override limiter con…
2022-05-12 09:13:38 +08:00
Thales Macedo Garitezi
11b61881de
chore: bump ekka -> 0.12.6, mria -> 0.2.5
...
reduce mria logs when in RLOG mode.
https://github.com/emqx/ekka/pull/161
https://github.com/emqx/mria/pull/84
https://github.com/emqx/mria/pull/86
2022-05-11 15:15:41 -03:00
Thales Macedo Garitezi
0925f2104c
test: fix flaky tests
2022-05-11 13:42:47 -03:00
Zhongwen Deng
e929da2e68
fix: remove enable from server_ssl_opts_schema
2022-05-11 22:08:24 +08:00
Zaiming (Stone) Shi
41448849ff
test: ensure no timeout when waiting for dashboard listener
2022-05-11 08:45:32 +02:00
firest
c9227703fc
fix(listener): when update listener conf, should override limiter config not merge
2022-05-11 14:00:54 +08:00
Zhongwen Deng
83b4b658e2
fix: assert not empty list
2022-05-10 09:39:53 +08:00
Zhongwen Deng
068421d0e1
feat: don't dispatch requests until dispatch is ready
2022-05-10 09:38:48 +08:00
Zhongwen Deng
b91e9e59ba
chore: bump minirest to 1.3.1(generate api_spec concurrency)
2022-05-10 09:38:48 +08:00
Zhongwen Deng
5c66b6f04d
feat: generate dashboard's dispatch asynchronously
2022-05-10 09:38:48 +08:00
firest
93ab0458d1
fix(gateway): make gateway listeners list return act like MQTT listeners
2022-05-09 12:37:15 +08:00
firest
db9cb6c4a0
fix(gateway): add node_status into the result of /gateway/{name}/listeners
2022-05-09 12:37:15 +08:00
JianBo He
4d3aa16ceb
Merge pull request #7881 from lafirest/fix/limiter_update
...
fix(limiter): add config update handler for limiter
2022-05-09 11:07:26 +08:00
firest
1355f7c887
fix(retainer): fix test case and xref error
2022-05-07 17:01:51 +08:00
firest
a4a9650e66
fix(limiter): add config update handler for limiter
2022-05-07 17:01:51 +08:00
firest
ba683167bd
fix(limiter): remove unused rate limit codes
2022-05-07 17:00:13 +08:00
JianBo He
6e03a7c686
fix(authn): use a random group id to void data overlap
2022-05-07 10:16:58 +08:00
lafirest
495ef7f301
Merge pull request #7879 from lafirest/fix/listener_with_limiter
...
fix(listeners): add limiter info into the listener config
2022-05-06 20:34:57 +08:00
Thales Macedo Garitezi
ef19fa7cc9
Merge pull request #7877 from thalesmg/bump-ekka-0-12-5
...
chore(ekka): bump ekka -> 0.12.5
2022-05-06 09:02:02 -03:00
Ilya Averyanov
4cff19985e
Merge pull request #7872 from savonarola/fix-mongo-conn-healthcheck
...
fix(mongodb): fix mongodb connection healthcheck
2022-05-06 11:47:26 +03:00
firest
b394d18852
fix(listeners): add limiter info into the listener config
2022-05-06 13:33:03 +08:00
Yang Miao
c7826db3f7
Merge pull request #7865 from EMQ-YangM/fix_imporve_authn_authz_metrics
...
fix: improve authn, authz metrics
2022-05-06 11:19:47 +08:00
Thales Macedo Garitezi
2771193359
chore(ekka): bump ekka -> 0.12.5
...
Improves autocluster resilience against split-brain during startup.
https://github.com/emqx/ekka/pull/160
2022-05-05 17:02:47 -03:00
William Yang
7dcdae4672
Merge pull request #7874 from qzhuyan/dev/william/logging-fix
...
chore: minor logging fix
2022-05-05 20:23:21 +02:00
William Yang
5ffce8d619
chore: minor logging fix
2022-05-05 16:04:51 +02:00
Ilya Averyanov
0dae3f43a9
fix(mongodb): fix mongodb connection healthcheck
2022-05-05 15:36:38 +03:00
lafirest
97e778e797
Merge pull request #7868 from lafirest/feat/limiter_api
...
feat(limiter): add limiter view/update api
2022-05-05 19:08:47 +08:00
EMQ-YangM
30b3060327
fix: improve authn, authz metrics
2022-05-05 18:53:31 +08:00
JianBo He
39a26f8225
Merge pull request #7853 from HJianBo/fix-gw-bad-ssl
...
Fix gateway listener API return 500
2022-05-05 18:47:41 +08:00
zhongwencool
7f0f2571d0
Merge pull request #7861 from zhongwencool/username-as-clientid-not-valid
...
fix: don't allow empty username if username_as_clientid is true
2022-05-05 17:32:32 +08:00
firest
1a7c870b7d
test(limiter): add more cases for rate parser
2022-05-05 16:06:22 +08:00
Zhongwen Deng
41268dba01
fix: can't get emqx's priv_dir when whitespace in install path
2022-05-05 15:59:14 +08:00
firest
acb78d53eb
fix(limiter): fix rate parser, support this format: xMB/s
2022-05-05 15:38:04 +08:00
firest
f2e7563b0c
feat(limiter): add limiter view/update api
2022-05-05 13:08:33 +08:00
JianBo He
62a0df69fc
fix(limiter): avoid maps:get/2 crash
2022-05-05 10:47:59 +08:00
Zhongwen Deng
2987bd47ad
fix: don't allow empty username if username_as_clientid is true
2022-05-05 10:30:59 +08:00
JianBo He
5bfb9367ea
chore(tls): guard empty pem/path string
2022-05-03 17:54:00 +08:00
Shawn
be60b3330d
chore: release 5.0.0-rc.2
2022-04-29 19:01:44 +08:00
zhouzb
fc2169ba18
Merge pull request #7842 from zmstone/0429-refactor-rename-funs-to-please-elvis
...
refactor: rename functions to please elvis
2022-04-29 17:38:17 +08:00
JianBo He
d36d27c533
Merge pull request #7781 from HJianBo/rename-acl-metrics
...
feat(metrics): refactor authz metrics name
2022-04-29 16:52:43 +08:00
Zaiming (Stone) Shi
6b44d96c0d
refactor: rename functions to please elvis
2022-04-29 10:52:08 +02:00
JianBo He
7bbed713f4
Merge pull request #7835 from JimMoen/fix-mongo-require-fields
...
fix(auth): mongo field `filter` not required and have default value
2022-04-29 15:38:54 +08:00
JianBo He
1597ea50c1
feat(metrics): refactor authz metrics name
...
In the current implementation:
```
Authz checking times = client.authorize + client.authorization.cache_hit
= client.authorization.allow + client.authorization.deny
client.authorize means how many times the `client.authorize` hook has been executed.
client.authorize = client.authorization.matched.allow +
client.authorization.matched.deny +
client.authorization.nomatch
```
2022-04-29 15:20:05 +08:00
Xinyu Liu
f28559ef62
Merge pull request #7820 from zmstone/0428-fix-flaky-test
...
test: ensure emqx_metrics gen_server stopped after each test
2022-04-29 14:21:21 +08:00
JimMoen
22c25fc7e8
fix(tls_lib): ssl file key list contains atom and bin
2022-04-29 14:05:55 +08:00
Zaiming (Stone) Shi
1e170da9e8
test: ensure emqx_metrics gen_server stopped after each test
2022-04-29 12:41:36 +08:00
Zaiming (Stone) Shi
4e65322667
refactor: move emqx_plugin_libs_metrics to emqx app
...
because it can not depend on other apps
2022-04-29 12:41:36 +08:00
Zhongwen Deng
591b7c4fdb
fix: make ssl options's required keys is []
2022-04-29 11:45:22 +08:00
Zhongwen Deng
e91d6f9806
fix: ensure tls option keys
2022-04-29 11:45:22 +08:00
Zhongwen Deng
352984efe7
fix: dashboard https without deafult pem/keyfile
2022-04-29 11:45:22 +08:00
Zhongwen Deng
6f1610257f
feat: bump hocon to 0.27.5 to remove FROM_ENV
2022-04-29 08:48:12 +08:00
Zhongwen Deng
1ffb7f5f94
fix: remove '\$FROM_ENV_VAR' from raw conf
2022-04-29 08:41:31 +08:00
Zaiming (Stone) Shi
a0a1a2b972
style: make elvis happy
2022-04-28 22:09:05 +02:00
Zaiming (Stone) Shi
a4d0a9266a
test: fix flaky test emqx_ctl_SUITE.erl
2022-04-28 21:46:36 +02:00
lafirest
828f1b0730
Merge pull request #7819 from lafirest/fix/limiter_schema
...
fix(limiter): fix schema parse error
2022-04-29 01:32:52 +08:00
Xinyu Liu
8528d76371
Merge pull request #7815 from terry-xiaoyu/fix_bridge_ssl_dry_run_fail
...
fix: convert ssl certfiles for dry-run creating bridges
2022-04-28 22:41:50 +08:00
Shawn
6c9e0d62e2
fix(test): ensure emqx_metrics stopped before testing
2022-04-28 22:40:05 +08:00
Xinyu Liu
8380efef16
Merge pull request #7809 from EMQ-YangM/authn_add_metrics
...
feat: authn new metrics
2022-04-28 19:24:09 +08:00
firest
60c2427874
fix(limiter): fix schema parse error
2022-04-28 18:30:32 +08:00
EMQ-YangM
4365de9ad5
fix: format code
2022-04-28 15:39:08 +08:00
EMQ-YangM
5b0ee30d72
fix: ignore unwanted results
2022-04-28 15:02:07 +08:00
EMQ-YangM
6530604f40
fix: add authn authz metrics supervisor
2022-04-28 14:38:45 +08:00
EMQ-YangM
2a7bd74ef1
feat: authn add new metrics
2022-04-28 11:16:45 +08:00
JimMoen
e5d4e272b2
fix(ssl): sni option should be atom
2022-04-28 09:46:14 +08:00
JimMoen
0c7bbf9e64
revert: ssl option should not provide default cert file
...
revert commit 3b9b12fe36
in PR#7527
2022-04-28 09:46:14 +08:00
JianBo He
cd9e7c9a49
Merge pull request #7805 from tigercl/chore/zone-i18n
...
docs: improve i18n for zone
2022-04-28 08:28:55 +08:00
Xinyu Liu
46e993fa81
Merge pull request #7786 from terry-xiaoyu/save_tls_files_for_bridges
...
Save tls files for bridges
2022-04-27 21:48:18 +08:00
zhongwencool
6825aa66fc
Merge pull request #7780 from zhongwencool/log-bug-fix
...
fix: make logger config more friendly 🤖
2022-04-27 19:42:20 +08:00
zhouzb
a83268a0f1
docs: improve descs that mention configuration items
2022-04-27 18:35:34 +08:00
zhouzb
bad3adbee6
docs: improve i18n for zone
2022-04-27 18:26:40 +08:00
Zhongwen Deng
ab9e93e8a7
fix: websocket's max_connection not work
2022-04-27 14:18:26 +08:00
Shawn
0635918d16
fix: define ssl SNI field as a non-empty-string
2022-04-27 14:17:22 +08:00
Zhongwen Deng
08cad804bf
fix: bump hocon to 0.27.4 to obfuscate sensitive as binary
2022-04-27 13:55:42 +08:00
ieQu1
73733221d5
chore: Bump versions of mria, ekka, snabbkaffe
2022-04-26 17:35:30 +02:00
JianBo He
44689f0f63
Merge pull request #7768 from HJianBo/fix-bad-alarm-msg
...
fix(alarm): use gen_event:noifty/2 to generate alarm event
2022-04-26 21:18:57 +08:00
JianBo He
9f35dd7f80
Merge pull request #7730 from savonarola/jwt-authz
...
feat(emqx_auth_jwt): use JWT for ACL checks
2022-04-26 14:18:50 +08:00
JianBo He
bbcbe01501
fix(alarm): use gen_event:noifty/2 to generate alarm event
...
Uniformly report high_system_memory_usage event by gen_event:notify/2 to
ensure generate a same alarm structure
2022-04-26 13:46:52 +08:00
JianBo He
c921207b82
Merge pull request #7721 from HJianBo/make-spell-check-happy
...
Make spellcheck happy
2022-04-26 13:42:55 +08:00
JianBo He
81e9000c72
Merge pull request #7764 from HJianBo/fix-authn-proc-crash
...
fix(authn): avoid crashing emqx_authentication process due to un-safe call
2022-04-26 10:06:53 +08:00
JianBo He
81b5d7959b
chore(i18n): add desc for authentication field
2022-04-26 10:01:39 +08:00
JianBo He
2f967bdfe7
chore(fmt): format emqx_schema and emqx_authz_api_sources_SUITE
2022-04-26 09:28:05 +08:00
JianBo He
be05f54053
docs(emqx): fix i18n desc
2022-04-26 09:28:05 +08:00
JianBo He
a58b88aeec
chore(i18n): fix more and more typos
2022-04-26 09:28:05 +08:00
JianBo He
6581680970
chore: correct emqx_limiter_i18n.conf
2022-04-26 09:28:05 +08:00
zhongwencool
4b763a3a12
Merge pull request #7742 from zhongwencool/schema-namespace
...
fix: add namespace to schema
2022-04-26 09:26:04 +08:00
JianBo He
5ac842b657
fix(authn): avoid crashing emqx_authentication process due to un-safe call
2022-04-25 21:22:17 +08:00
Ilya Averyanov
fc2ea9e484
feat(emqx_auth_jwt): use JWT for ACL checks
2022-04-25 11:59:04 +03:00
Yang Miao
9c297acb00
Merge pull request #7750 from EMQ-YangM/fix_miss_params
...
fix: 'ComFun' missing parameter
2022-04-25 13:43:43 +08:00
Zhongwen Deng
55f8f7277d
fix: imporve hocon check failed error
2022-04-25 11:47:18 +08:00
EMQ-YangM
2d553d711f
fix: 'ComFun' missing parameter
2022-04-25 11:38:48 +08:00
JimMoen
e9843aa225
fix(doc): html line break use `</br>`
2022-04-24 18:56:21 +08:00
Zhongwen Deng
7d9403d056
fix: add namespace to schema
2022-04-24 15:47:23 +08:00
zhongwencool
a27caff5af
Merge pull request #7739 from DDDHuang/better_dashboard_log
...
fix: better listener log
2022-04-24 14:08:27 +08:00
zhongwencool
b4b9853cfc
Merge pull request #7732 from terry-xiaoyu/rule_bridges_api_docs2
...
emqx_schema i18n docs
2022-04-24 14:05:48 +08:00
zhongwencool
cee4607472
Merge pull request #7738 from zhongwencool/obfuscate_sensitive_config
...
feat: obfuscate sensitive values default_password
2022-04-24 14:05:23 +08:00
Zhongwen Deng
a77bb994e1
fix: add timeout for schema json gen test
2022-04-24 12:05:07 +08:00
Zhongwen Deng
38215f73fc
fix: rate limiter schema check crash and return 500
2022-04-24 11:59:08 +08:00
DDDHuang
1752257169
fix: better listener log
2022-04-24 09:55:35 +08:00
Zhongwen Deng
5223c3ee61
feat: obfuscate sensitive values default_password
2022-04-24 09:41:29 +08:00
JimMoen
78d582447c
feat: emqx core provides api to get cluster name
2022-04-23 19:45:34 +08:00
Shawn
52864e0413
docs: add Chinese doc for emqx schema
2022-04-23 17:59:45 +08:00
Shawn
093d121bb2
docs: changes desc to ?DESC
2022-04-23 03:59:50 +08:00
Shawn
86863690ce
docs: add generated i18n conf
2022-04-23 03:52:20 +08:00
Shawn
984a26945c
docs: add i18n ids
2022-04-23 03:51:38 +08:00
JimMoen
14e0296221
Merge pull request #7728 from zhongwencool/fix-swagger
...
fix: swagger crash/ copy conf failed from core node
2022-04-22 20:49:21 +08:00
JimMoen
1fab779db8
fix(i18n): rm double quotes in i18n confs, add missing translation
2022-04-22 19:26:44 +08:00
Zhongwen Deng
11a404842e
fix: don't show quic in dashboard
2022-04-22 17:32:41 +08:00
Zaiming (Stone) Shi
9212906c5b
chore: pin hocon 0.27.2
2022-04-22 08:53:30 +02:00
JianBo He
97f28c0d5a
Merge pull request #7699 from lafirest/feat/limiter_i18n
...
feat(limiter): add i18n support
2022-04-22 10:31:21 +08:00
JianBo He
950beea24c
Merge pull request #7712 from ieQu1/fix-grammar-i18n
...
chore(grammar): Fix grammar i18n
2022-04-22 09:18:10 +08:00
Xinyu Liu
ae49c0bad5
Merge pull request #7709 from terry-xiaoyu/emqx_schema_i18n
...
doc: update i18n for emqx_schema.erl
2022-04-22 08:33:11 +08:00
Shawn
2137d0a763
docs: update i18n for emqx_schema.erl
2022-04-22 08:32:46 +08:00
ieQu1
f0455b32f8
chore(schema): Fix grammar
2022-04-21 23:41:06 +02:00
Zaiming (Stone) Shi
282766db32
Merge pull request #7323 from savonarola/retainer-indexes
...
feat(retainer): add topic indexing
2022-04-21 20:16:18 +01:00
JianBo He
b89ed9a139
chore(emqx): assign zones i18n description
2022-04-21 22:26:01 +08:00
JianBo He
ae1b435ace
chore: format emqx apps
2022-04-21 21:34:21 +08:00
JianBo He
0c27613ce4
Merge pull request #7700 from HJianBo/emqx-schema-i18n-mqtt
...
docs(emqx): i18n support for emqx_schema.erl
2022-04-21 18:06:52 +08:00
JianBo He
e1eb6591af
docs(emqx): add emqx_schema_in18.conf chinese
2022-04-21 16:08:52 +08:00
JianBo He
bf7182ddc9
docs(emqx): i18n support for emqx_schema.erl
2022-04-21 15:07:31 +08:00
firest
7a17d92c9b
feat(limiter): add i18n support
2022-04-21 15:01:30 +08:00
lafirest
597bdcd4aa
Merge pull request #7691 from lafirest/fix/limiter_schema
...
fix(limiter): change 'bucket name' to 'bucket_name'
2022-04-21 14:51:27 +08:00
Xinyu Liu
0986a1c8c4
Merge pull request #7694 from terry-xiaoyu/mqtt_bridge_issues
...
feat: save ssl cert files for data bridges
2022-04-21 13:32:36 +08:00
Shawn
4047617ed0
fix: only delete SSL files generated by us
2022-04-21 12:13:25 +08:00
zhongwencool
1cd871eaf2
Merge pull request #7693 from zhongwencool/pem-cache-clean-cli
...
feat: support clean pem_cache cli
2022-04-21 09:38:44 +08:00
Shawn
19630e9a99
feat: save ssl cert files for data bridges
2022-04-21 09:00:06 +08:00
Ilya Averyanov
9b61997dc0
feat(retainer): add topic indexing
2022-04-20 19:55:57 +03:00
Zhongwen Deng
8a322f1548
feat: support clean pem_cache cli
2022-04-20 22:05:38 +08:00
Thales Macedo Garitezi
097b38e418
Merge pull request #7678 from thalesmg/fix-flaky-prop-and-test
...
Fix flaky tests and properties
2022-04-20 07:41:24 -03:00
Xinyu Liu
f8d046b259
Merge pull request #7673 from terry-xiaoyu/mqtt_bridge_issues
...
fix: improve the error logs if update bridge failed
2022-04-20 18:37:48 +08:00
firest
5b79f6466f
fix(limiter): change 'bucket name' to 'bucket_name'
...
the space in name field will make some problems in frontend
2022-04-20 17:46:45 +08:00
Thales Macedo Garitezi
ac7a13f9f2
fix(test): fix flaky property
2022-04-20 05:05:48 -03:00
JianBo He
99bcf5a69f
Merge pull request #7656 from HJianBo/support-disable-salt
...
feat(authn): support disable salt
2022-04-20 15:29:22 +08:00
zhongwencool
051ed84fc8
Merge pull request #7675 from zhongwencool/api-listener
...
refatcor: simplify updating the listener
2022-04-20 14:10:01 +08:00
Shawn
56044085c8
fix(test): make mria fall back to use mnesia db_backend when running test
2022-04-20 12:04:29 +08:00
Zhongwen Deng
17ef987d25
fix: add proxy_protocol_timeout/access_rules default value
2022-04-20 09:54:09 +08:00
Zhongwen Deng
f8a2831c5d
fix: xref/dialyzer warning
2022-04-20 02:52:31 +08:00
Zhongwen Deng
a131535c60
chore: bypass emqx_authn's listener change
2022-04-20 02:52:31 +08:00
Zhongwen Deng
2b73a80dba
refactor: simplify updating the listener
2022-04-20 02:52:19 +08:00
JimMoen
cc220694fd
Merge pull request #7628 from JimMoen/refine-authn-authz-api-fields
...
refine authn/authz api fields
2022-04-19 22:44:30 +08:00
zhongwencool
ae005f6e69
Merge pull request #7651 from HJianBo/hot-confs-sys-topics-limiter
...
Add APIs for System Topics
2022-04-19 20:11:36 +08:00
Thales Macedo Garitezi
f691d9ef9d
Merge pull request #7598 from thalesmg/gen-rpc-oc
...
feat: use gen_rpc ordered cast for `emqx_rpc:cast/5`
2022-04-19 09:06:51 -03:00
Shawn
1b79b3f3c9
fix: improve the error logs if update bridge failed
2022-04-19 19:45:46 +08:00
JimMoen
341973880d
fix(authz): refine authz-http api with default headers
2022-04-19 18:57:01 +08:00
JimMoen
14a97d777d
fix(authz): api required fields
2022-04-19 18:57:01 +08:00
JianBo He
ba24f0309d
Merge branch 'master' into hot-confs-sys-topics-limiter
2022-04-19 17:38:49 +08:00
Zaiming (Stone) Shi
c71302ae27
refactor(ssl): show file paths for SSL certs in dashboard
2022-04-19 08:43:37 +02:00
Zaiming (Stone) Shi
3b9b12fe36
feat: add default ssl files to ssl options
2022-04-19 08:43:37 +02:00
Zhongwen Deng
0de367dc63
feat: Make api_listener align with gateway and remove unused APIs.
2022-04-19 10:42:08 +08:00
JimMoen
9998b613c8
refactor: mgmt rm `generate_response/1`
2022-04-19 10:39:10 +08:00
JianBo He
86d8dd2fb6
chore(sys): improve diff_hooks implement
2022-04-19 10:03:40 +08:00
JianBo He
75f6484032
feat(authn): support disable salt
2022-04-19 09:29:56 +08:00
JianBo He
65eae13e0b
chore: make prop pass
2022-04-18 18:37:52 +08:00
JianBo He
59c41c7c6e
feat(sys): add sys_topics http api
2022-04-18 15:32:34 +08:00
firest
c6b5bcd973
fix(frame): remove empty topic check, because it checked in emqx_channel
2022-04-18 15:03:45 +08:00
DDDHuang
a1ef677e33
fix: remove duplicate references
2022-04-16 16:37:10 +08:00
zhongwencool
ce915f0bbd
Merge pull request #7590 from zhongwencool/doc-i18n
...
feat: desc/label support i18n
2022-04-15 17:43:16 +08:00
Zhongwen Deng
630cc8ee34
feat: support i18n with desc struct.
2022-04-15 08:42:13 +08:00
Zhongwen Deng
da7bda3540
fix: can't shutdown emqx_config_handler process.
2022-04-14 17:02:07 +08:00
DDDHuang
b8e2c76382
fix: remove routes
2022-04-13 16:16:12 +08:00
Thales Macedo Garitezi
3602e7552d
feat: use gen_rpc ordered cast for `emqx_rpc:cast/5`
...
From: https://github.com/emqx/emqx/pull/6554
2022-04-12 17:22:03 -03:00
firest
907e643e20
fix(frame): fix empty topic check error
2022-04-12 12:14:48 +08:00
zhongwencool
72e16eb7d1
Merge pull request #7557 from zhongwencool/api-cluster
...
feat: add api_cluster api.
2022-04-11 16:47:57 +08:00
Zhongwen Deng
5acf19a947
chore: add invite_node/2 bpapi
2022-04-11 15:32:49 +08:00
EMQ-YangM
fa0c4d17ee
feat: impl rule_engine reset_metrics api
2022-04-11 10:25:48 +08:00
Zaiming (Stone) Shi
2d374a3b0d
chore: no need for erlang:demonitor optimisation
2022-04-08 15:53:58 +02:00
Zhongwen Deng
a8386adea3
fix: list listeners cli not working
2022-04-08 09:47:06 +08:00
Zhongwen Deng
1664438b4f
fix: dialyzer warning.
2022-04-08 09:47:06 +08:00
Zhongwen Deng
63d6682a7d
feat: refactor api_listeners api
2022-04-08 09:47:06 +08:00
William Yang
4fac090f7f
fix: text logger
...
Fix following "FORMAT ERROR"
logger:warning(["line1\n", "line2\n","line3\n"]).
2022-04-06T18:44:07.412131+02:00 [warning] FORMAT ERROR: "~ts " - ["line1\n","line2\n","line3\n"]
ok
2022-04-06 18:44:20 +02:00
Zaiming (Stone) Shi
356fbf6ce1
Merge pull request #7519 from zmstone/0405-5.0-sync-ssl-lib-from-4.3
...
5.0 refactor: delete deprecated emqx_plugin_libs_ssl module
2022-04-05 22:57:56 +01:00
Zaiming (Stone) Shi
32694e601a
refactor: rename RUNNER_ETC_DIR to EMQX_ETC_DIR
2022-04-05 23:08:45 +02:00
Zaiming (Stone) Shi
1ac19b42e4
refactor(emqx_tls_lib): allow undefined for string fields
2022-04-05 22:38:08 +02:00
Zaiming (Stone) Shi
ba51f03cb7
refactor: remove the deprecated save_files_return_opts
2022-04-05 17:38:33 +02:00
Zaiming (Stone) Shi
822a4f9f73
feat: parameterise EMQX_ETC_DIR
...
both at build time and at runtime
2022-04-05 16:36:13 +02:00
ieQu1
8df76da9ac
chore(formatting): Fix formatting of modules, authz and authn
2022-04-05 11:01:53 +02:00
ieQu1
251192f84c
docs(schema): Fix typo
2022-04-05 09:54:06 +02:00
ieQu1
99b3f2f83e
docs(schema): Document missing records and fields
2022-04-04 23:58:43 +02:00
Zaiming (Stone) Shi
067e553c84
Merge pull request #7513 from zmstone/0404-5.0-bump-app-emqtt-version-to-1.5.0-and-app-lc-to-0.2.1
...
chore: update dependency app versions
2022-04-04 22:35:27 +01:00
Zaiming (Stone) Shi
6fd902ebc8
chore: update dependency app versions
...
lc: 0.2.1
emqtt: 1.5.0
2022-04-04 21:07:02 +02:00
Thales Macedo Garitezi
1df850710e
Merge pull request #7457 from thalesmg/telemetry-revamp-part3
...
feat(telemetry): add authn and authz info to telemetry data
2022-04-04 09:12:37 -03:00
Zaiming (Stone) Shi
850a95a43e
style: avoid using function-like macros in catch clauses
2022-04-01 16:58:51 +02:00
Zaiming (Stone) Shi
67608f623f
perf: improve demonitor performance
...
demonitor(Ref, [flush]) often will not be be able to get optimised
by the compiler hence fallback to a full mailbox scan to drain
the DOWN message.
This commit tries to avoid the 'flush' when it's for sure
that there is no 'DOWN' message sent.
2022-04-01 16:58:51 +02:00
Thales Macedo Garitezi
1fa68a277e
docs: fix some typos
2022-04-01 09:23:41 -03:00
JianBo He
2dce43ac8e
chore: ignore 'if' expression checking
2022-03-31 17:41:43 +08:00
JianBo He
244b123742
style(emqx): reformat emqx application
2022-03-31 17:41:43 +08:00
JianBo He
6a4d823b24
fix(sys): compatible with binary type protocol
2022-03-31 09:54:56 +08:00
ieQu1
d23a88d0a9
docs(schema): Minor improvements to spelling and formatting.
2022-03-30 13:05:56 +02:00
ieQu1
edb91e2e4a
docs(schema): Add descriptions for authZ and connector
2022-03-30 13:01:01 +02:00
ieQu1
d8e16b37da
docs(schema): Add documentation for the fields and records
2022-03-30 11:53:53 +02:00
ieQu1
c0e5139e9f
docs(schema): Add description for clientinfo_override
2022-03-30 11:53:51 +02:00
ieQu1
abb4d42406
docs(schema): Document conn_congestion fields
2022-03-30 11:53:38 +02:00
Dmitrii
dd61f86c2f
Merge pull request #7436 from ieQu1/doc-schema-5
...
docs(schema): Add descriptions for the records
2022-03-30 11:35:19 +02:00
Dmitrii
fcc99b484f
docs(schema): Apply suggestions from code review
...
Co-authored-by: Thales Macedo Garitezi <thalesmg@gmail.com>
2022-03-30 10:12:04 +02:00
lafirest
694d3b1782
Merge pull request #7439 from lafirest/fix/empty_topic_5
...
fix(frame): forbidden empty topic in strict mode
2022-03-30 09:54:33 +08:00
ieQu1
465e0e418c
docs(schema): Document rate_limit fields
2022-03-29 14:09:32 +02:00
ieQu1
fff6bffa0c
docs(schema): Add descriptions of the records
2022-03-29 14:09:32 +02:00
ieQu1
aecfa77985
chore(hocon): Bump version
2022-03-29 14:09:32 +02:00
firest
ed7ce7078a
test(frame): add test case for empty topic check
2022-03-29 17:14:36 +08:00
EMQ-YangM
4c8deeb544
fix(emqx_access_control): reformat code
2022-03-29 14:11:45 +08:00
firest
978350b643
fix(frame): make elvis && erlfmt happy
2022-03-29 11:58:59 +08:00
EMQ-YangM
4791c64b73
feat: add rule event 'client.check_authz_complete'
2022-03-29 11:24:36 +08:00
firest
5febf480a2
fix(frame): forbidden empty topic in strict mode
2022-03-29 10:34:50 +08:00
ieQu1
32584650de
docs(schema): Fix definition
2022-03-25 16:12:32 +01:00
Zaiming (Stone) Shi
39d477e77c
Merge pull request #7413 from zmstone/docs-add-more-schema-desc
...
docs: add more schema desc
2022-03-25 16:10:00 +01:00
zhouzb
3b387cfd9e
chore: revert ee vsn bump
2022-03-25 19:49:13 +08:00
zhouzb
098ba91351
chore: bump release vsn
2022-03-25 19:43:22 +08:00
JimMoen
81243b43e8
fix(os_mon): fix wrongly high mem alarm
2022-03-25 19:21:03 +08:00
Zhongwen Deng
86f455fd3a
fix: cluster conf must be readonly; add dashboard listener update hook
2022-03-25 18:43:15 +08:00
Zaiming (Stone) Shi
036266769c
docs: add more schema desc
2022-03-25 10:52:58 +01:00
Zhongwen Deng
8d46332b30
chore: upgrade hocon to 0.26.4 to limit HOCON_MAP's key format
2022-03-25 15:00:51 +08:00
Zhongwen Deng
55f805bac0
fix: dashboard_monitor crash
2022-03-25 14:18:56 +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
DDDHuang
9037b807ae
fix: add api auth failed code def & fix bad spelling
2022-03-24 12:12:19 +08: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
ieQu1
8967e13eee
docs(schema): Move descriptions from emqx.conf.all
2022-03-23 13:52:54 +01:00
ieQu1
d1e8fefa1f
docs(schema): Add descriptions of events
2022-03-23 13:52:51 +01:00
Dmitrii
a0bec0d921
Merge pull request #7103 from ieQu1/doc-schema
...
docs: Add to the schema
2022-03-23 10:46:11 +01:00
ieQu1
503c7f00ae
docs(schema): Fix typos
2022-03-23 08:40:59 +01: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
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
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
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
DDDHuang
e86fd9c4cb
feat: release V5.0.0 beta4
2022-03-21 19:45:03 +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
bf6339ebf4
chore: upgrade hocon to 0.26.3 to fix dialyzer warning
2022-03-21 17:56:22 +08:00
Zhongwen Deng
267fd398a6
fix: elvis warning
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
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
firest
8e5c118562
fix(retainer): fix spellcheck in schema
2022-03-21 10:14:05 +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
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
firest
3fc4236565
fix(delayed): make it possible to lookup/delete other node's delayed message
2022-03-17 14:36:55 +08:00
Thales Macedo Garitezi
c45578c130
chore: bump gen_rpc
2022-03-16 15:20:13 -03: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
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
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
JimMoen
02ed2148d7
refactor: move api `top` -> `front`, `bottom` -> `rear`
2022-03-15 10:28:46 +08:00
JimMoen
e96bbf5c8b
refactor(authn_api): add 'after related' for move api
2022-03-15 10:28:46 +08:00
Thales Macedo Garitezi
2748c22b0c
fix(ekka): run cleanups on node down events
...
When using the RLOG DB Backend with Mria, replicant nodes do not
generate `mnesia down` events. Therefore, cleanup procedures that
some modules do when a node goes down do not work for replicants.
However, replicant do generate `node down` events, so that may be a
safer way to handle cleanup to take into account that type of node.
2022-03-14 15:55:58 -03:00
DDDHuang
e67138a6a7
fix: trace data dir suffix
2022-03-14 16:15:53 +08:00
Yang Miao
4c93a71446
Merge pull request #7290 from EMQ-YangM/add_metrics_and_status_to_authz
...
feat(emqx_authz): add metrics and status to authz
2022-03-14 09:34:11 +08:00
zhongwencool
f0f03d8a96
Merge pull request #6566 from zhongwencool/plugin-http-api
...
Plugin http api
2022-03-14 09:17:11 +08:00
EMQ-YangM
f287547251
feat(emqx_authz): add metrics and status to authz
2022-03-13 12:41:03 +08:00
Zhongwen Deng
704d1b20c6
fix: add bpapi.versions
2022-03-12 00:29:18 +08:00
Xinyu Liu
4025e79d1b
Merge pull request #7283 from terry-xiaoyu/default_value_for_rates
...
Fix HTTP APIs for getting rule events and testing rule SQLs
2022-03-11 20:17:58 +08:00
Xinyu Liu
3cf18a293d
Merge pull request #7271 from EMQ-YangM/add_metrics_and_status_to_authn
...
feat(emqx_authn_api): add metrics and status to authn
2022-03-11 19:21:44 +08:00
Shawn
590fa1b375
fix(rule): check request body for /rule_test crashes
2022-03-11 18:13:12 +08:00
EMQ-YangM
81f9482fac
fix(bpapi): add authn bpapi version
2022-03-11 17:41:39 +08:00
EMQ-YangM
b7a9f1e087
fix(emqx_map_lib): fix static checks errors
2022-03-11 15:56:14 +08:00
Zhongwen Deng
ab10163abf
chore: redefined qos
2022-03-11 15:27:40 +08:00
Zhongwen Deng
3938aa127b
feat: add /configs/global_zones API to aggregate emqx_zone_schema
2022-03-11 15:27:40 +08:00
EMQ-YangM
8af7131a49
fix(emqx_autn_api): wo do not need fixpoint
2022-03-11 14:18:50 +08:00
EMQ-YangM
7165fbc5ca
fix(emqx_authn_api): fix elvis error
2022-03-11 14:18:50 +08:00
EMQ-YangM
dce602c251
fix(emqx_authn_api): format metrics and status
2022-03-11 14:18:15 +08:00
JimMoen
f5caf66253
refactor(api): unified api name style
2022-03-11 11:07:55 +08:00
JimMoen
593e1a3efb
feat(authn): authn mnesia rows fuzzy searching by `clientid` or `username`
2022-03-10 10:01:40 +08:00
zhongwencool
f7ec74d367
Merge pull request #7248 from zhongwencool/improve-ct-coverage
...
test: Improve test coverage
2022-03-10 09:47:10 +08:00
Zhongwen Deng
7beaa91814
fix: schema mod error
2022-03-09 19:24:33 +08:00
JianBo He
857bd1e12a
test(exhook): remove helpless test case
2022-03-09 13:50:17 +08:00
JianBo He
0c8d739e2f
test: change assert condition
2022-03-09 13:50:17 +08:00
JianBo He
6dac422c93
chore: rename sys_topic to sys_topics
2022-03-09 13:50:17 +08:00
JianBo He
ecc8d92e6c
test(sys): refine prop_emqx_sys
2022-03-09 13:50:16 +08:00
JianBo He
ba6cfd595b
feat(sys): support client events notification
2022-03-09 13:50:16 +08:00
zhongwencool
514e374868
Merge pull request #7215 from thalesmg/fix-congestion-log
...
fix(congestion): fix congestion message formatting
2022-03-08 22:45:38 +08:00
zhongwencool
a5b2300ce4
Merge pull request #7236 from zhongwencool/config-api
...
feat(config): Filter unnecessary HTTP APIs
2022-03-08 22:33:45 +08:00
Zhongwen Deng
512a5c3b8e
fix: elvis warning
2022-03-08 14:50:10 +08:00
Zhongwen Deng
1244391cb7
fix: alarm crash when safe_publish not ready. Filter out unnecessary APIs
2022-03-08 14:14:54 +08:00
Xinyu Liu
c5f92ef856
Merge branch 'master' into improve_rule_bridge_apis
2022-03-08 11:12:30 +08:00
zhongwencool
2d9a086bbb
Merge pull request #7198 from zhongwencool/emqx-conf-ct-coverage
...
chore: add more test for emqx_config_handler
2022-03-08 10:04:02 +08:00
Zhongwen Deng
a7ba678463
fix: elvis warning
2022-03-08 09:05:23 +08:00
Zhongwen Deng
9b00f2756b
feat: Make sure that Specify Key and ?WKEY cannot be on the same level.
2022-03-07 21:48:31 +08:00
Shawn
9a9c92ae88
fix: update testcases for emqx_bridge
2022-03-07 16:48:36 +08:00
Thales Macedo Garitezi
3e08282ffb
chore: improve formatting
...
Without `~0p`, had some weird indentation while printing
2022-03-04 15:22:33 -03:00
Thales Macedo Garitezi
e76f67e985
style: please elvis checks
2022-03-04 11:14:13 -03:00
Thales Macedo Garitezi
0c76b6cf4d
fix(congestion): fix congestion message formatting
...
It seems that the `~ts` in the format string does not handle maps,
which results in a crash when trying to format the congestion message.
```erlang
28> io_lib:format("~ts", [#{}]).
** exception error: bad argument
in function io_lib:format/2
called as io_lib:format("~ts",[#{}])
```
Example:
```
2022-03-04T12:43:26.900609+00:00 [warning] '$kind': unclean_terminate, clientid: 192.168.2.116_bench_sub_11412_1782328074, context: badarg, exception: error, line: 582, mfa: emqx_connection:terminate/2, peername: 192.168.2.116:47358, stacktrace: [{io_lib,format,["connection congested: ~ts",[#{buffer => 4096,clientid => <<"192.168.2.116_bench_sub_11412_1782328074">>,conn_state => disconnected,connected_at => 1646397524470,high_msgq_watermark => 8192,high_watermark => 1048576,memory => 57064,message_queue_len => 20,peername => <<"192.168.2.116:47358">>,pid => <<"<0.259.28>">>,proto_name => <<"MQTT">>,proto_ver => 5,recbuf => 4096,recv_cnt => 2,recv_oct => 81,reductions => 267523,send_cnt => 333,send_oct => 149869,send_pend => 128,sndbuf => 332800,sockname => <<"10.10.1.13:1883">>,socktype => tcp,username => undefined}]],[{file,"io_lib.erl"},{line,187}]},{emqx_congestion,do_cancel_alarm_congestion,4,[{file,"/emqx/apps/emqx/src/emqx_congestion.erl"},{line,88}]},{lists,foreach,2,[{file,"lists.erl"},{line,1342}]},{emqx_connection,terminate,2,[{file,"/emqx/apps/emqx/src/emqx_connection.erl"},{line,576}]},{proc_lib,wake_up,3,[{file,"proc_lib.erl"},{line,236}]}]
```
2022-03-04 11:00:49 -03:00
Zhongwen Deng
6ff2db6180
fix: elvis warning
2022-03-04 15:10:10 +08:00
Zhongwen Deng
153e1bcb91
fix: pre_update_config is executed one more time than expected
2022-03-04 14:43:51 +08:00
JimMoen
fab9ad91de
fix(schema): nullable => required
2022-03-04 10:06:36 +08:00
Zhongwen Deng
e2f386383d
fix: replace local ref by remote ref
2022-03-04 09:13:56 +08:00
Zhongwen Deng
71d20d153b
fix: replace deep_merge with merge.
2022-03-03 22:52:46 +08:00
Zhongwen Deng
4dfcb90b16
fix: get_roots broken
2022-03-03 20:31:30 +08:00
Zhongwen Deng
a862eb0252
chore: add more test for emqx_config_handler
2022-03-03 17:39:32 +08:00
JianBo He
7ba1db759e
Merge pull request #7182 from HJianBo/mqttsn-replay-register
2022-03-03 10:55:45 +08:00
Zaiming (Stone) Shi
4e64010a3b
build: more structured build info
2022-03-02 21:22:03 +01:00
JianBo He
5b1ba335cb
chore(session): add obtain_next_pkt_id/1
...
In the current implement, mqtt-sn gateway is using the emqx_session as
its session structure. We need a method to get a pkt_id for sending like
REGISTER related messages
2022-03-02 14:58:43 +08:00
JianBo He
123b667eb0
Merge pull request #7128 from lafirest/refactor/retainer_flow_control
...
refactor(emqx_retainer): use hierarchical limiter for the flow control
2022-03-02 14:46:56 +08:00
lafirest
9bdebabdbc
fix(retainer): fix/add some comment
2022-03-02 11:34:19 +08:00
Dmitrii
b4439c6710
Merge pull request #7176 from ieQu1/fix-add-hook
...
test(emqx_hook): Fix flaky t_add_hook_order test
2022-03-01 15:52:22 +01:00
Zaiming (Stone) Shi
f39ae6dfa7
Merge pull request #7177 from zmstone/docs-add-more-detailed-desc-for-strict-mode
...
docs: add more details desc for strct_mode config
2022-03-01 14:58:14 +01:00
ieQu1
87d7698e1e
test(emqx_hook): Fix flaky t_add_hook_order test
2022-03-01 14:15:11 +01:00
Zaiming (Stone) Shi
be34b927ad
docs: add more detailed description for strict_mode config
2022-03-01 13:11:16 +01:00
JimMoen
0849a2d4c7
test(frame): malformed utf-8 packet
2022-03-01 18:55:31 +08:00
JimMoen
9a75004759
feat(frame): utf-8 string check in `strict_mode`
2022-03-01 18:51:56 +08:00
Zaiming (Stone) Shi
b3745715c4
build: support a default edition
2022-02-28 17:03:42 +01:00
Zaiming (Stone) Shi
d029a73b99
refactor: make release edition static info at compile time
2022-02-28 16:37:47 +01:00
Zaiming (Stone) Shi
7df2a4655a
chore: pin hocon 0.26.1
...
0.26.0 had a bug where 'mapping' field is encoded as a integerx- list
2022-02-28 12:54:49 +01:00
firest
ec17c4d63c
fix(emqx_limiter): fix schema error
2022-02-27 23:37:20 +08:00
Zaiming (Stone) Shi
edb16f902e
chore: pin hocon 0.16.0 for 'mappings' in generated config doc
2022-02-27 14:44:28 +01:00
Thales Macedo Garitezi
69e0f9c6cf
Merge pull request #7109 from thalesmg/elixir-plugin-test
...
Add Elixir Plugin Template Test
2022-02-25 11:31:41 -03:00
zhongwencool
8d26ba6e9f
Merge pull request #7108 from thalesmg/fix-sys-mon-portinfo
...
fix(sys_mon): guard before calling `erlang:port_info`
2022-02-25 17:38:24 +08:00
zhongwencool
13a0eff678
Merge pull request #7125 from zhongwencool/schema-json
...
feat: generate hot config's schema.json and remove nullable option.
2022-02-25 17:18:20 +08:00
JianBo He
f45a00f3c1
Merge pull request #7126 from HJianBo/force-kill-takeover-failure-proc-5.0
...
refactor(cm): force kill the proc that failed to response takeover call
2022-02-25 17:11:37 +08:00
Zhongwen Deng
3aa9afc5bf
fix: rpc get node info maybe crash when emqx_sys process is not start yet.
2022-02-25 14:20:19 +08:00
Zhongwen Deng
4eec83b0e5
fix: memsup's memory alway false.
2022-02-25 14:19:57 +08:00
Thales Macedo Garitezi
0e319d5e4e
fix: rm useless `catch`
2022-02-24 16:28:00 -03:00
Thales Macedo Garitezi
427866f8ad
test(sys_mon): add test for closed port
2022-02-24 15:13:18 -03:00
Thales Macedo Garitezi
b46af91e74
test: disable export warning during tests
2022-02-24 14:20:36 -03:00
Thales Macedo Garitezi
d89925ce7b
fix(sys_mon): guard before calling `erlang:port_info`
...
Sometimes, the `emqx_sys_mon:procinfo/1` might be called with
something that is not a port, like `[]`. Not sure on the conditions
for this to happen.
```
2022-02-18T20:05:02.671592+00:00 [error] Generic server emqx_sys_mon terminating. Reason: {badarg,[{erlang,port_info,[[]],[{error_info,#{module => erl_erts_errors}}]},{emqx_sys_mon,portinfo,1,[{file,"/emqx/apps/emqx/src/emqx_sys_mon.erl"},{line,205}]},{emqx_sys_mon,'-handle_info/2-fun-5-',2,[{file,"/emqx/apps/emqx/src/emqx_sys_mon.erl"},{line,150}]},{emqx_sys_mon,suppress,3,[{file,"/emqx/apps/emqx/src/emqx_sys_mon.erl"},{line,184}]},{gen_server,try_dispatch,4,[{file,"gen_server.erl"},{line,695}]},{gen_server,handle_msg,6,[{file,"gen_server.erl"},{line,771}]},{proc_lib,wake_up,3,[{file,"proc_lib.erl"},{line,236}]}]}. Last message: {monitor,<0.7796.0>,busy_dist_port,[]}. State: #{events => [{busy_dist_port,#Port<0.127>}],timer => #Ref<0.2758388682.1853620226.133920>}.
```
2022-02-24 14:07:09 -03:00
Zhongwen Deng
db584f79d6
feat: upgrade hocon to 0.25.0 to replace nullable with required.
2022-02-24 22:39:03 +08:00
JianBo He
ffafbfaaa6
test(cm): refine testcases
2022-02-24 21:00:54 +08:00
JianBo He
9c1fe4336b
refactor(cm): force kill the proc that failed to response takeover call
...
port from: #7026
2022-02-24 21:00:45 +08:00
firest
5bf1d77993
refactor(emqx_retainer): use hierarchical limiter for the flow control
2022-02-24 18:06:40 +08:00
JianBo He
fa921775e7
Merge pull request #6999 from lafirest/feat/esockd_limiter
...
feat(emqx_limiter): use hierarchical limiter for esockd
2022-02-24 17:33:51 +08:00
Thales Macedo Garitezi
278361e6b6
Merge pull request #7110 from thalesmg/fix-flaky-order-prop
...
test(fix): fix flaky prop
2022-02-23 09:09:23 -03:00
Zaiming (Stone) Shi
e6380a1911
Merge pull request #7104 from zmstone/fix-windows-build-5.0
...
[5.0] Fix windows build
2022-02-23 10:22:45 +01:00
zhongwencool
b7f808db9e
Merge pull request #7027 from DDDHuang/error_code
...
feat: support http error code & error code api
2022-02-23 16:12:20 +08:00
firest
511be52326
fix(emqx_limiter): fix dialyzer error
2022-02-23 10:29:25 +08:00
firest
e1875880bb
fix(emqx_limiter): rename emqx_htb_generic to emqx_esockd_htb_limiter
2022-02-23 09:56:26 +08:00
Zaiming (Stone) Shi
08d1b38bbe
chore: refine console printout about quic not started
2022-02-22 22:33:33 +01:00
Thales Macedo Garitezi
8141c38ce1
test(fix): fix flaky prop
...
Failing when duplicate elements were being generated.
```
An exception was raised: error:{assertEqual,
[{module,emqx_hooks_SUITE},
{line,65},
{expression,"Order"},
{expected,
[{5,'',''},
{5,'',''},
{4,'\223',''},
{2,'}Ijrµ\036',''}]},
{value,
[{5,'',''},
{4,'\223',''},
{2,'}Ijrµ\036',''}]}]}.
```
2022-02-22 17:57:00 -03:00
Thales Macedo Garitezi
3d19e77f00
Merge pull request #7090 from thalesmg/fix-use-tags-in-deps
...
fix(deps): use tags for dependencies
2022-02-22 09:09:37 -03:00
DDDHuang
a5d8f2ce3b
fix(api): banned api error code format
2022-02-22 17:14:35 +08:00
DDDHuang
98a11f3c15
fix(api): emqx_connector_api error code format
2022-02-22 17:14:35 +08:00
DDDHuang
90ee450a84
feat: support http error code & error code api
2022-02-22 17:14:35 +08:00
JimMoen
437feefdc0
fix(channel): server_keepalive only for MQTT v5.0
2022-02-22 10:50:49 +08:00
Thales Macedo Garitezi
16ad442bc3
fix(deps): use tags for dependencies
...
Some dependencies, like `bcrypt` and `quic`, have their references
declared as `branch`, yet there are no branches with those names, but
tags. Despite rebar3 managing somehow to handle that, if a project
managed by Mix tries to declare EMQX as its dependency, it's not able
to fetch those dependencies.
```
$ mix deps.get
* Updating emqx (https://github.com/emqx/emqx - v5.0-beta.3)
* Updating lc (https://github.com/qzhuyan/lc.git - 0.1.2)
* Updating gproc (https://github.com/uwiger/gproc - 0.8.0)
* Updating typerefl (https://github.com/k32/typerefl - 0.8.6)
* Updating jiffy (https://github.com/emqx/jiffy - 1.0.5)
* Updating cowboy (https://github.com/emqx/cowboy - 2.9.0)
* Updating esockd (https://github.com/emqx/esockd - 5.9.0)
* Updating ekka (https://github.com/emqx/ekka - 0.11.1)
* Updating gen_rpc (https://github.com/emqx/gen_rpc - 2.5.1)
* Updating hocon (https://github.com/emqx/hocon.git - 0.22.1)
* Updating pbkdf2 (https://github.com/emqx/erlang-pbkdf2.git - 2.0.4)
* Updating recon (https://github.com/ferd/recon - 2.5.1)
* Updating snabbkaffe (https://github.com/kafka4beam/snabbkaffe.git - 0.16.0)
* Updating bcrypt (https://github.com/emqx/erlang-bcrypt.git - origin/0.6.0)
error: pathspec 'origin/0.6.0' did not match any file(s) known to git
** (Mix) Command "git --git-dir=.git checkout --quiet origin/0.6.0" failed
```
Therefore, we change them to `tag`s.
2022-02-21 15:36:24 -03:00
JimMoen
e816e3e4a3
Merge pull request #7075 from JimMoen/refactor-authz-sources-api
...
refactor: authz_api_sources swagger spec
2022-02-22 01:24:42 +08:00
k32
d4458618b2
fix(hook): Executed hooks in deterministic order
2022-02-21 14:27:24 +01:00
k32
115c3f2d29
chore: Fix URLs
2022-02-21 10:13:09 +01:00
JimMoen
000020617c
refactor: authz_api_sources spec
2022-02-21 16:33:08 +08:00
lafirest
be2c36cfa0
feat(emqx_limiter): use hierarchical limiter for esockd
2022-02-21 11:37:38 +08:00
k32
9fb35a1d64
docs: Fix typo
...
Co-authored-by: Thales Macedo Garitezi <thalesmg@gmail.com>
2022-02-18 18:35:16 +01:00
k32
1c62c6e60b
docs: Add documentation for the sysmon roots
2022-02-18 16:26:18 +01:00
k32
8566d2e246
Merge pull request #7051 from k32/schema-typos
...
docs: Fix typos
2022-02-18 15:38:51 +01:00
Zaiming (Stone) Shi
e330f789af
fix(ekka): pin version 0.12.1
...
print lock owner status before killing it
2022-02-18 09:19:57 +01:00
zhongwencool
0b74373464
Merge pull request #7043 from lafirest/test/ratelimiter
...
test(emqx_limiter): improve the code coverage of RateLimit to 87%
2022-02-18 09:59:23 +08:00
k32
5638bcb92b
docs: Fix typos
2022-02-17 23:22:31 +01:00
Zaiming (Stone) Shi
2a6d11c7f1
Merge pull request #7038 from zmstone/chore-rename-emqx-no-space-source-code
...
chore: EMQ X -> EMQX in source code
2022-02-17 21:13:43 +01:00
Zaiming (Stone) Shi
6a354d910e
chore: rename EMQ_X to EMQX in hrl file macros
2022-02-17 15:55:46 +01:00
zhongwencool
c88504f918
Merge pull request #7023 from zhongwencool/license-alarm-support
...
License alarm support
2022-02-17 22:09:51 +08:00
lafirest
3c92906405
test(emqx_limiter): improve the code coverage of RateLimit to 87%
2022-02-17 14:50:27 +08:00
Zaiming (Stone) Shi
64db085163
chore: EMQ X -> EMQX in source code
2022-02-16 22:08:12 +01:00
Zaiming (Stone) Shi
0528262705
chore(app.src): EMQ X -> EMQX in .app.src files
2022-02-16 17:51:45 +01:00
Zaiming (Stone) Shi
b3d9605722
chore(conf): EMQ X -> EMQX in conf files
2022-02-16 17:50:41 +01:00
Zaiming (Stone) Shi
79d7832a07
Merge pull request #7020 from zmstone/docs-more-renames-in-descriptive-info
...
docs: More EMQ X -> EMQX rename in descriptive strings
2022-02-16 13:43:19 +01:00
zhongwencool
310a97305a
Merge pull request #6997 from zhongwencool/epoch-rfc3339-convert
...
feat(schema): schema support epoch_second, epoch_millisecond type.
2022-02-16 16:51:38 +08:00
zhongwencool
34fe5082c4
fix(schema): schema global validations not working
2022-02-16 14:20:15 +08:00
Zaiming (Stone) Shi
2e94880bb6
docs: More EMQ X -> EMQX rename in descriptive strings
2022-02-15 22:39:11 +01:00
zhongwencool
1413809b81
Merge pull request #6948 from zhongwencool/fix-watermark-master
...
fix(watermark): watermark should use > instead of >=
2022-02-14 16:11:47 +08:00
zhongwencool
80169ccb68
chore: add more eunit for emqx_datetime
2022-02-14 15:30:03 +08:00
JianBo He
229a62bcc9
Merge pull request #6988 from HJianBo/acl-metrics-add
...
feat(metrics): add acl metrics statistics
2022-02-14 15:06:04 +08:00
zhongwencool
498434826a
feat(schema): schema support epoch_second, epoch_millisecond type.
2022-02-14 11:35:32 +08:00
Zaiming (Stone) Shi
b9343891e4
Merge pull request #6946 from zmstone/refactor-license-simplify-parser-error
...
refactor: treat throw exception as `{error, Reason}` return
2022-02-11 19:09:40 +01:00
Zaiming (Stone) Shi
e2a67760b1
fix(emqx_authz_file): throw exception for catch
2022-02-11 17:16:00 +01:00
JianBo He
f471214956
feat(metrics): add acl metrics statistics
2022-02-11 15:20:18 +08:00
JianBo He
e895de2c5e
Merge branch 'master' into port/slow_subs
2022-02-11 14:37:10 +08:00
DDDHuang
fbefc92178
Merge pull request #6969 from DDDHuang/ws_client_metrics
...
feat(metrics): ws client support more send&recv metrics
2022-02-11 11:14:56 +08:00
DDDHuang
511060adb4
fix(test): ws conn metrics
2022-02-11 09:38:41 +08:00
DDDHuang
0826084ce9
feat(metrics): ws client support more send&recv metrics
2022-02-11 09:38:41 +08:00
Thales Macedo Garitezi
609d8a5efa
fix(channel): wrong case clause when alias is inexistent (5.0)
...
Fixes #6978 .
2022-02-10 16:23:54 -03:00
Zaiming (Stone) Shi
91366a71a4
fix: try Expr of only catches exceptions in Expr but not cases clauses
2022-02-10 13:12:22 +01:00
Zaiming (Stone) Shi
a86b684535
fix(emqx_config_handler): do not log throw exception
2022-02-10 12:40:46 +01:00
Chris
14630568d6
feat: create tests for connector pgsql module and refactoring
2022-02-10 10:40:46 +01:00
firest
361ca5be42
fix(emqx_slow_subs): change rpc call to bpapi
2022-02-10 17:40:19 +08:00
firest
b9884de1d0
fix: fix proper test error
2022-02-10 16:09:17 +08:00
firest
2fcc24dea6
fix(emqx_slow_subs): fix test case error
2022-02-10 15:16:37 +08:00
lafirest
b09683bfcd
fix(emqx_slow_subs): fix some errors and test cases
2022-02-10 14:55:19 +08:00
lafirest
0c48bd92db
feat: port slow subs from v4.4
2022-02-10 14:51:37 +08:00
DDDHuang
fbb8f46fcd
fix(api): qos shcema & code formate
2022-02-10 10:33:39 +08:00
Shawn
fd87bce8f7
Merge pull request #6950 from terry-xiaoyu/remove_extra_spaces
...
fix: format the code to remove extra spaces
2022-02-10 09:35:18 +08:00
Thales Macedo Garitezi
e861f3963e
Merge pull request #6947 from thalesmg/fix-mgmt-cluster-print
...
fix(ctl): fix formatting when printing messages without arguments
2022-02-09 11:50:59 -03:00
Shawn
8207090419
fix: format the code to remove extra spaces
2022-02-09 18:46:49 +08:00
Shawn
e6997dc1ce
Merge pull request #6942 from terry-xiaoyu/hook_delivery_drop
...
Hook delivery drop
2022-02-09 18:28:56 +08:00
zhongwencool
47b1dde7fd
Merge pull request #6949 from zhongwencool/add-qos-type
...
feat(schema): support qos type.
2022-02-09 16:13:11 +08:00
Shawn
9118cfb4ad
fix(connection): revert metric names for 'recv_msg.dropped.await_pubrel_timeout'
2022-02-09 15:41:28 +08:00
zhongwencool
36cf00108c
feat(schema): support qos type.
2022-02-09 15:16:43 +08:00
zhongwencool
b2d77cac39
fix(watermark): watermark should use greater than(>), not greater than or equal to(>=).
2022-02-09 11:17:45 +08:00
lafirest
de75edd176
Merge pull request #6925 from lafirest/fix/flaky-test
...
fix(emqx_ratelimiter): relax the rate bound of test cases
2022-02-09 10:01:38 +08:00
Thales Macedo Garitezi
152bbe6bb3
refactor: rm unused fn
2022-02-08 18:18:18 -03:00
Thales Macedo Garitezi
01794c2d2c
fix(ctl): fix formatting when printing messages without arguments
...
Without passing an empty argument list to `emqx_ctl:print`, formatting
instructions like `~n` are being printed literally.
```
Ignore.~nJoin the cluster successfully.~nCluster status: #{running_nodes =>
['emqx@emqx-0.int.thalesmg','emqx@emqx-1.int.thalesmg',
'emqx@emqx-2.int.thalesmg','emqx@emqx-3.int.thalesmg',
'emqx@emqx-4.int.thalesmg'],
stopped_nodes => []}
```
2022-02-08 17:48:19 -03:00
k32
5a1b18ae86
fix(system_monitor): Fix conditional start
2022-02-08 12:46:27 +01:00
Shawn
707284db31
fix(session): update calling to session APIs
2022-02-08 18:49:38 +08:00
Shawn
93092657b9
fix(session): update testcases
2022-02-08 18:33:06 +08:00
zhongwencool
3b4eade1ad
Merge pull request #6900 from zhongwencool/restricted-shell
...
feat(shell): add restricted shell and user_default
2022-02-08 17:25:28 +08:00
Shawn
2879001694
fix(metrics): rename metrics 'messages.dropped.expired' to 'messages.dropped.await_pubrel_timeout'
2022-02-08 17:14:59 +08:00
Shawn
06168f7080
refactor(session): pass ClientInfo as first params to APIs of emqx_session
2022-02-08 16:52:47 +08:00
zhongwencool
f3fa302d84
chore: print only the port number when bound on all interfaces.
2022-02-08 15:25:22 +08:00
zhongwencool
b50ceac9bb
chore(listener): change the listener binding format 0.0.0.0:port to :port.
2022-02-08 10:28:10 +08:00
Ilya Averyanov
17599432d1
feat(license): add license application
2022-02-07 19:05:47 +03:00
k32
9c5d35e0db
chore(ekka): Bump version to 0.12.0
2022-02-07 14:39:43 +01:00
k32
78c762479f
feat(router): Mark CM_SHARD and ROUTE_SHARD as dirty
2022-02-07 12:38:59 +01:00
k32
dbe1282d32
chore(mria): Bump version to 0.2.0
2022-02-07 12:37:13 +01:00
zhongwencool
6a701e098f
feat(shell): add restricted shell and user_default
2022-02-07 15:33:59 +08:00
lafirest
467bb830b1
fix(emqx_ratelimiter): relax the rate bound of test cases
2022-02-07 13:57:48 +08:00
k32
f699de9773
feat(system_monitor): Bump version to 3.0.0
2022-02-07 02:22:11 +01:00
Zaiming (Stone) Shi
507952c473
feat: dump schema json file to dashbarod static dir
2022-01-31 16:38:41 +01:00
Zaiming (Stone) Shi
fe24892b6d
fix(emqx_limiter): no white space in schema map name
2022-01-31 16:04:37 +01:00
Zaiming (Stone) Shi
f7703c906e
refactor: move plain_check impl to emqx_hocon
2022-01-29 10:16:55 +01:00
k32
052bd9081d
docs(schema): Fix typos in the schema files
2022-01-27 22:39:19 +01:00
Zaiming (Stone) Shi
0cde9e6ecf
Merge pull request #6878 from zmstone/slog-ftw
...
refactor: delete deprecated logging macros
2022-01-27 16:15:47 +01:00
Zaiming (Stone) Shi
d6f7ffec3c
Merge pull request #6881 from zmstone/refactor-upgrade-hocon-0.23.0
...
refactor: upgrade to hocon 0.23.0
2022-01-27 15:48:23 +01:00
zhongwencool
c049e296d4
Merge pull request #6852 from zhongwencool/fix-keepalive-init
...
fix(keepalive): keepalive desc improvement.
2022-01-27 22:41:10 +08:00
Zaiming (Stone) Shi
815c47e169
test: call logger apis directly
2022-01-27 15:19:50 +01:00
Thales Macedo Garitezi
bd0d331b64
Merge pull request #6636 from emqx/elixir-packages-mkII
...
ci(mix): build emqx packages with elixir
2022-01-27 11:10:30 -03:00
Kian-Meng Ang
fc92e4c8bf
docs: fix typos
2022-01-27 12:29:38 +01:00
zhongwencool
a7676d0163
fix(doc): Update the documentation/keepalive according to the review.
2022-01-27 18:57:35 +08:00
Zaiming (Stone) Shi
6bf5f2c426
test: fix old hocon API calls
2022-01-27 08:21:31 +01:00
zhongwencool
3ce3c5c805
fix(doc): Update the documentation according to the review
2022-01-27 10:54:11 +08:00
Zaiming (Stone) Shi
252d7e85d9
refactor: call new hocon apis
2022-01-27 00:23:08 +01:00
Zaiming (Stone) Shi
8c114db168
chore: pin hocon 0.23.0
2022-01-27 00:23:08 +01:00
Zaiming (Stone) Shi
1718360156
refactor: delete deprecated logging macros
2022-01-26 23:25:11 +01:00
Thales Macedo Garitezi
12f1757328
chore(mix): fix include path for mix
2022-01-26 16:59:50 -03:00
Thales Macedo Garitezi
f34e87daeb
chore(ekka): update ekka -> 0.11.3
...
This ekka tag contains the core node discovery callback feature.
2022-01-26 14:19:39 -03:00
Zaiming (Stone) Shi
b9e507110c
build: add EMQX_ENTERPRISE compile flag
2022-01-26 14:25:59 +01:00
Zaiming (Stone) Shi
391e480824
build: parameterise package version
...
so that community and enterprise edition can be built from the
same branch
2022-01-26 14:25:59 +01:00
k32
6f8aa016c3
test(bapapi): Print errors to the console
2022-01-26 11:59:32 +01:00
k32
bdc6d18589
feat(bpapi): Version negotiation
2022-01-26 11:59:21 +01:00
zhongwencool
abc0a3526e
fix(keepalive): keepalive init with right recv_oct
2022-01-26 18:27:15 +08:00
zhongwencool
e458d4790c
chore(docs): update mqtt schema desc
2022-01-26 16:38:24 +08:00
Zaiming (Stone) Shi
2105d1f22b
test: call ct helpers to load config
2022-01-25 11:50:18 +01:00
Zaiming (Stone) Shi
bf7ac80a83
feat: add api to delete override conf files
...
used in tests
2022-01-25 08:29:04 +01:00
Zaiming (Stone) Shi
f1937e261c
refactor(emqx_config): apply cluster|local overrides on top of base
2022-01-24 13:30:42 +01:00
k32
d90566be5c
ci(bpapi): Fail static check on BPAPI violations
2022-01-21 13:55:09 +01:00
k32
9fad296385
Merge pull request #6809 from k32/bpapi-resource
...
refactor(emqx_resource): Decorate RPCs
2022-01-20 12:54:46 +01:00
zhongwencool
5bbe2ec1c6
Merge pull request #6766 from zhongwencool/fix-trace-api-return
...
fix(trace): create_trace return new trace; delete_trace return 204
2022-01-20 10:41:45 +08:00
k32
c2e5dfae97
fix(bpapi): Ignore emqx_plugin_libs_rule:cluster_call/3 function
2022-01-19 22:00:34 +01:00
k32
177c9c7f77
fix(bpapi): Ignore pmap for now
2022-01-19 19:09:55 +01:00
k32
7061e6eefe
refactor(emqx_exhook): Decorate RPCs
2022-01-19 18:18:20 +01:00
k32
ded45b161a
test(emqx_cm_SUITE): Fix flaky test
2022-01-19 16:48:53 +01:00
k32
a469c466a6
test(emqx_mgmt): Exempt do_query function from BPAPI static check
2022-01-19 16:48:53 +01:00
k32
97078002f2
refactor(emqx_cm): Decorate RPCs
2022-01-19 16:48:53 +01:00
DDDHuang
e7dd401de9
Merge pull request #6776 from DDDHuang/client_metrics_5x
...
feat(metrics): client metrics with more detail
2022-01-19 13:36:57 +08:00
k32
4e9fb00a0e
refactor(mgmt_trace): Decorate RPCs
2022-01-18 16:46:32 +01:00
k32
39766d0ab4
refactor(emqx_bridge): Decorate remote procedure calls
2022-01-18 15:25:34 +01:00
k32
fbd7b132ca
docs(bpapi): Clarify deprecation procedure
2022-01-18 15:25:34 +01:00
k32
2ccf02cea9
refactor(emqx_mgmt): Decorate RPCs
2022-01-18 14:07:02 +01:00
DDDHuang
98e7ce7b7c
fix(test): for paho qos3
2022-01-18 18:06:47 +08:00
DDDHuang
f87f80f6e4
feat(metrics): client metrics with more detail
2022-01-18 11:28:41 +08:00
zhongwencool
75ad2ba65c
fix(trace): create_trace return new trace; delete_trace return 204
2022-01-18 09:34:36 +08:00
k32
52441c92fa
Merge pull request #6758 from k32/bpapi-mgmt
...
refactor(emqx_mgmt): Decorate RPCs
2022-01-17 11:12:02 +01:00
k32
428eeeffc0
refactor(emqx_cm): Move lookup_client/1 to emqx_cm
2022-01-14 16:45:14 +01:00
k32
288f9254ba
refactor(emqx_mgmt): Decorate RPCs
2022-01-14 15:41:10 +01:00
zhongwencool
8b31466538
chore(trace): replace trace_filter by is_trace
2022-01-14 15:33:43 +08:00
zhongwencool
681ab6b754
fix(review): refactor function name base on review sugguestion
2022-01-14 15:00:05 +08:00
zhongwencool
9727eb514d
feat(trace): improve debug msg format
2022-01-14 15:00:05 +08:00
zhongwencool
dc6c49d7f5
chore(trace): always ?SLOG when ?TRACE
2022-01-14 15:00:05 +08:00
JimMoen
d8f49f8a5f
Merge pull request #6732 from JimMoen/telemetry-api-refactor
...
refactor(api): telemetry api swagger spec
2022-01-14 09:36:54 +08:00
k32
aa54c6135b
fix(bpapi): Move static checks to test directory
2022-01-13 20:58:33 +01:00
JimMoen
8c9d98b583
chore: LICENSE Copyright reserved
2022-01-13 16:40:08 +08:00