JianBo He
dfc6e34680
fix(exproto): avoid udp client process leaking
...
porting from v4.x:
- https://github.com/emqx/emqx/pull/8575
- https://github.com/emqx/emqx/pull/8628
- https://github.com/emqx/emqx/pull/8725
2022-09-13 09:15:28 +08:00
JianBo He
0caaccaa0f
test: add tests for `/` leading topic
2022-09-06 15:38:32 +08:00
JianBo He
d6b222d1ff
test: fix coap authz suite failures
2022-09-06 15:38:32 +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
1233d3c8df
fix(gateway): compatible with the old "/gateway" form API
2022-08-31 10:53:13 +08:00
firest
bc12899ef8
fix(gateway): fix coap test case error
2022-08-31 09:27:37 +08:00
firest
81a86e3202
fix(gateway): fix test case error
2022-08-31 09:27:37 +08:00
firest
527ea23ec8
fix(gateway): change the `/gateway` API path to plural form
2022-08-31 09:27:37 +08:00
Zaiming (Stone) Shi
9a5dda010e
docs: update CHNAGES-5.0.md
2022-08-24 21:02:21 +02:00
Shawn
b3162fe5ff
fix: conflicts between master and ee5.0
2022-08-14 22:24:09 +08:00
JianBo He
907d9a166a
test(gw): fix gateway flaky tests
2022-08-12 10:20:15 +08:00
Zaiming (Stone) Shi
13f5c0b6b1
fix(lwm2m): better logging for unknown object IDs
...
Prior to this change, unknown object IDs would result in a tuple
{error, no_xml_definition}, and this tuple is passed down to xmerl
lib to get XML node data and eventually crash with function_clause.
With this fix, the unknown object ID exception is caught and logged
properly.
2022-08-09 11:26:12 +02:00
Thales Macedo Garitezi
d2e146aeff
test: fix flaky gateway tests
2022-08-04 13:16:17 -03:00
Thales Macedo Garitezi
4a1ede7e7e
test: fix flaky gateway tests
2022-08-01 10:57:34 -03:00
JianBo He
38b5882dc8
test(gw): using ip_port in listener tests
2022-07-26 11:40:52 +08:00
zhouzb
1b211434d0
Merge pull request #8381 from HJianBo/fix-content-type
...
chore: treat 200 and no body as ACL nomatch
2022-07-01 21:56:40 +08:00
JianBo He
2d8231c638
chore: fix gateway authz cases
2022-07-01 21:08:58 +08:00
JimMoen
f0c783b260
test(authn): emqx_authn and gateway_athn http `content-type`
2022-07-01 20:55:39 +08:00
JianBo He
ad698834df
test(gw): fix test cases
2022-06-16 22:55:44 +08:00
JianBo He
df2c17ccc4
fix(gw): enhance the authn resources managing logic
2022-06-16 17:48:19 +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
Ilya Averyanov
e381e3698f
feat(authn): add enable_authn flag for listeners
2022-06-15 22:26:08 +03: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
JianBo He
77d4faa632
fix(gw): not updating the authenticator using re-creation
2022-06-15 13:48:15 +08:00
Zhongwen Deng
02872fb8c2
feat: rename gateway's tcp/ssl/udp/dtls to *_options
2022-06-07 22:23:02 +08:00
Ilya Averyanov
2d53c21d45
chore(authn api): replace user import api with upload api
2022-06-01 19:56:23 +03:00
Ilya Averyanov
3be617cf40
feat(authn api): add method for user file upload
2022-05-31 00:40:10 +03:00
JianBo He
13fb973018
test(gw): clean up exproto confs
2022-05-30 14:44:07 +08:00
Shawn
b846220ffd
fix(test): discard already_started error for gpc test server
2022-05-28 17:15:56 +08:00
Ilya Averyanov
5dba01b8fa
fix(authn): fix user search API
2022-05-25 15:50:20 +03:00
JianBo He
61b1731e5c
fix(gw): merge the listener and authn confs
2022-05-17 15:16:03 +08:00
JianBo He
a6c15967d2
test(gw): ensure coap client kicked
2022-05-16 21:42:16 +08:00
Zaiming (Stone) Shi
7207b2fa70
test: ensure emqx app stoped for emqx_ctl_SUITE run
2022-05-13 11:52:41 +02:00
JianBo He
3f84600401
test(gw): remove enable option from server ssl conf
2022-05-12 20:27:25 +08:00
JimMoen
c181efd0ae
test(gateway): fix authz callback rename
2022-05-12 14:39:12 +08:00
Thales Macedo Garitezi
0925f2104c
test: fix flaky tests
2022-05-11 13:42:47 -03:00
JianBo He
725c96dc2f
Merge pull request #7814 from HJianBo/fix-gw-bad-ssl
...
fix(gw): return BAD_REQUEST if request's ssl files is bad
2022-04-29 11:52:57 +08:00
JianBo He
23c6047163
fix(gw): return BAD_REQUEST if request's ssl files is bad
2022-04-28 16:12:32 +08:00
JianBo He
ff31a5a6a4
feat(gw-exproto): save ssl files for server&handler option
2022-04-28 15:34:57 +08:00
firest
fd0f32418e
fix(gateway): Add support for query by is_superuser
2022-04-27 15:41:14 +08:00
JianBo He
d2ba2a64f4
test(gw): fix lookup_cmd -> lookup
2022-04-22 09:19:31 +08:00
firest
1a3641e286
test(gateway): temporarily remove flaky case
2022-04-19 15:58:05 +08:00
firest
e5c062582f
test(gateway): increase timeout in stomp test case
2022-04-18 17:17:34 +08:00
firest
4368c69a82
test(gateway): increase gen_tcp:recv wait time in stomp test case
2022-04-18 15:28:46 +08:00
JianBo He
56191d42e7
Merge pull request #7586 from lafirest/test/gateway_authz
...
test(gateway): integration gateway test with http authz
2022-04-14 16:52:33 +08:00
JianBo He
587fbf07ba
Merge pull request #7601 from lafirest/fix/coap_disconnected
...
fix(coap): fix CoAP incorrect disconnected event
2022-04-13 13:43:58 +08:00
firest
62fa500f85
fix(coap): fix CoAP incorrect disconnected event
2022-04-13 11:15:44 +08:00
JianBo He
7954f32858
chore: remove scram authenticator for all gateway
2022-04-12 16:13:55 +08:00
firest
7afc5626ed
test(gateway): integration gateway test with http authz
2022-04-12 13:51:14 +08:00
JianBo He
0fb758916f
Merge pull request #7492 from lafirest/test/gateway_authn
...
test(gateway): integration gateway test with authn
2022-04-08 16:05:36 +08:00
firest
7f1bec5d78
test(gateway): fix meck unload error and reformat some codes
2022-04-08 13:44:23 +08:00
firest
786be82d07
test(gateway): optimize test codes organization
2022-04-07 16:53:10 +08:00
Thales Macedo Garitezi
7d807ce6bb
feat(gateway): export basic gateway info for telemetry
2022-04-04 15:20:48 -03:00
firest
0db6b8d47e
test(gateway): integration stomp && exproto test with http authn
2022-04-02 14:06:36 +08:00
firest
25ebe2535e
test(gateway): integration MQTT-SN test with http authn
2022-04-02 14:00:37 +08:00
firest
ec243d8946
test(gateway): integration CoAP && LwM2M test with http authn
2022-04-02 14:00:33 +08:00
JianBo He
3f6d78dda0
style(gateway): format gateway application
2022-03-31 17:41:32 +08:00
firest
ab2f5b9bb7
fix(coap): fix system topic case
2022-03-23 17:25:52 +08:00
firest
ab51d8ab8e
fix(coap): trigger disconnect logic when the client manually disconnected
2022-03-23 14:19:00 +08:00
firest
0c3d02b02d
test(coap): add a observe test case
2022-03-22 11:57:49 +08:00
JianBo He
fbc0240f26
feat(sn): introduce subs_resume option
...
As the mqtt-sn v1.2 spec metioned, the gateway will be able to sync the
subscriptions topic-name registry to client when the client resume
it's session
port from: https://github.com/emqx/emqx/pull/7300
2022-03-17 18:38:54 +08:00
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
JimMoen
f5caf66253
refactor(api): unified api name style
2022-03-11 11:07:55 +08:00
JianBo He
724d51a024
fix(mqttsn): fix flaky test
2022-03-09 17:11:09 +08:00
JianBo He
6ab993c3e8
test(mqttsn): uncomment asleep testcases
2022-03-09 12:57:51 +08:00
JianBo He
63ef00a208
fix(gw): add takeover_session/3 for cm_proto_v1
2022-03-02 16:43:53 +08:00
JianBo He
7ade24b344
feat(mqttsn): support to register unknown topic-name to the client
2022-03-02 14:58:43 +08:00
JianBo He
ddf3585b22
refactor(gw): support session takeover
2022-03-02 14:58:43 +08:00
JianBo He
e2b330e8be
fix(stomp): fix unexpected_linefeed error if the packet truncated on headers
2022-02-10 12:26:13 +08:00
Thales Macedo Garitezi
152bbe6bb3
refactor: rm unused fn
2022-02-08 18:18:18 -03:00
Kian-Meng Ang
fc92e4c8bf
docs: fix typos
2022-01-27 12:29:38 +01:00
Zaiming (Stone) Shi
2105d1f22b
test: call ct helpers to load config
2022-01-25 11:50:18 +01:00
k32
c4cb9973a6
fix(emqx_gateway): Apply remarks
2022-01-21 10:42:55 +01:00
k32
925654978e
refactor(emqx_gateway): Reuse emqx_gateway_cm APIs
2022-01-20 19:16:30 +01:00
JimMoen
31edd49f76
fix(topic_metrics): `POST` `PUT` need response
2022-01-20 10:15:06 +08:00
k32
36f10e929d
test(lwm2m): Fix flaky test
2022-01-18 17:36:10 +01:00
JianBo He
43284768d0
chore(gw): more code coverage for emqx_gateway_conn module
2022-01-14 10:48:56 +08:00
JianBo He
44ea853059
test(gw): more coverage for emqx_gateway_cm
2022-01-14 10:48:56 +08:00
JianBo He
e9e559ccd0
test: more code coverage for emqx_gateway_api_clients
2022-01-14 10:48:56 +08:00
JianBo He
3caf0822c4
test(gw): more testcases for emqx_gateway_metrics
2022-01-14 10:48:56 +08:00
JianBo He
a829b0b9d0
test(gw): more testcases for emqx_gateway module
2022-01-14 10:48:56 +08:00
JianBo He
056e284bc2
test(gw): more testcases for emqx_gateway_cm_registry
2022-01-14 10:48:56 +08:00
JianBo He
0e011ec4b8
test(gw): more testcases for emqx_gateway_cli module
2022-01-14 10:48:56 +08:00
JianBo He
79a653e2b4
refactor(gw): more readable CLI print
2022-01-14 10:48:56 +08:00
JimMoen
8c9d98b583
chore: LICENSE Copyright reserved
2022-01-13 16:40:08 +08:00
Zaiming (Stone) Shi
63167cea70
chore: update copyright
2022-01-05 20:55:00 +01:00
Zaiming (Stone) Shi
211b8e1b06
Merge remote-tracking branch 'origin/release-5.0-beta.3' into merge-5.0-beta.3-to-master
2022-01-04 22:48:25 +01:00
Zaiming (Stone) Shi
2898fa76e1
Merge remote-tracking branch 'origin/release-5.0-beta.3' into merge-5.0-beta.3-to-master
2022-01-03 11:39:06 +01:00
JianBo He
2411c22b42
fix(gw): fix bad listners field on http response
2021-12-31 14:59:17 +08:00
Thales Macedo Garitezi
8f4453fedb
fix(gateway): undo move headers to root `include`
...
Keeping headers in the src directory makes sense for the interfaces we
don't want to expose outside, but the `include_lib` directive fails to
compile under Mix. Changing `include_lib("emqx_gateway/src/...")` to
`-include("src/...")` pleases both Mix and Rebar.
2021-12-28 17:34:47 -03:00
Thales Macedo Garitezi
0020cf592f
Merge remote-tracking branch 'origin/master' into build-with-mix-mkII
2021-12-28 11:28:40 -03:00
JianBo He
fca5a3bc21
chore(gw): add cli testcases
2021-12-27 16:03:31 +08:00
Thales Macedo Garitezi
e137555052
fix(tests): fix include paths that were moved
2021-12-22 15:15:19 -03:00
JianBo He
6d4aac1600
chore(gw): improve http error messages
2021-12-22 16:49:33 +08:00
Thales Macedo Garitezi
917575de5a
chore(mix): minimal elixir mix release build
...
This commit enables a minimal working build of EMQX release using
Mix. However, to properly start the release, several configuration
steps are still missing. A `mix_release.sh` script does a few hacks
to get the release built with Mix to start properly, by first assuming
that `make emqx` has been run prior to the release, ran once to
generate the `app.*.config` files, and then it copies that and some
other files to the expected places.
Also, `emqx_telemetry` hangs the start procedure because it thinks
it's in an official release and tries to make a request. We disable
it temporarily via config just to get a working build for now.
2021-12-21 13:51:22 -03:00
JianBo He
92fd9c1eca
chore(gw): fix adding subscription
2021-12-17 15:31:07 +08:00
JianBo He
5224da57dc
Merge pull request #6411 from HJianBo/gw-improve-apis-3
...
More precise gateway http-api examples
2021-12-10 16:52:49 +08:00
firest
8493b61cb5
refactor(eqmx_limiter): use the new hierarchical token bucket to replace the old ratelimit code
2021-12-10 14:37:23 +08:00
JianBo He
fa11c6df9c
test(gw): fix bad test cases
2021-12-10 10:41:38 +08:00
JianBo He
0eff5358ca
chore(gw): add examples for gw&client api
2021-12-08 10:52:27 +08:00