Commit Graph

18024 Commits

Author SHA1 Message Date
Thales Macedo Garitezi bbff1d6ae9 fix(bridge_api): return 400 for all ecpool start errors
Fixes https://emqx.atlassian.net/browse/EMQX-10460
(https://emqx.atlassian.net/browse/EMQX-10460?focusedCommentId=30126)
2023-07-12 15:32:34 -03:00
Thales Macedo Garitezi bffef386c1 fix(rule_maps): avoid losing data when using `emqx_rule_maps:nested_put`
Fixes https://emqx.atlassian.net/browse/EMQX-10541
2023-07-12 14:28:18 -03:00
Ivan Dyachkov 8ebe099653
Merge pull request #11253 from id/kjell/refactor/http_bridge/EMQX-9568
refactor: HTTP bridge into the emqx_bridge_http application
2023-07-12 15:58:02 +02:00
Thales Macedo Garitezi 84890a416d
Merge pull request #11241 from thalesmg/refactor-schema-registry-master
refactor(schema_registry): refactor schema registry app and modules
2023-07-12 10:44:00 -03:00
Ivan Dyachkov 6180e775f4 test: fix mocking and application start 2023-07-12 14:47:52 +02:00
Ivan Dyachkov 8815e58149 chore: remove docker-ct from emqx_bridge_http since toxiproxy is not used in CT 2023-07-12 14:47:46 +02:00
Ivan Dyachkov 45f94df7b1 fix: add ehttpc as emqx_bridge_http dependency 2023-07-12 14:47:39 +02:00
Ivan Dyachkov ab81d844b3 docs: update PR reference in change log 2023-07-12 14:47:34 +02:00
Thales Macedo Garitezi c94dc2e63f fix: add emqx_dashboard as a dependency of emqx_machine
```
===> Compiling emqx_machine
===> Compiling src/user_default.erl failed
src/user_default.erl:{24,14}: can't find include lib "emqx_dashboard/include/emqx_dashboard.hrl"; Make sure emqx_dashboard is in your app file's 'applications' list

==> emqx_mix
** (Mix) Could not compile dependency :emqx_machine, "/github/home/.mix/elixir/1-14/rebar3 bare compile --paths /__w/emqx/emqx/_build/emqx/lib/*/ebin" command failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile emqx_machine", update it with "mix deps.update emqx_machine" or clean it with "mix deps.clean emqx_machine"
make: *** [Makefile:276: emqx-elixir] Error 1
```
2023-07-12 14:47:28 +02:00
Kjell Winblad 41e9e55ecb docs: add changelog entry for HTTP bridge refactoring 2023-07-12 14:47:09 +02:00
Kjell Winblad 6ce47614d2 refactor: HTTP bridge into the emqx_bridge_http app
Fixes:
https://emqx.atlassian.net/browse/EMQX-9568
2023-07-12 14:47:02 +02:00
Kjell Winblad f28510b3ad refactor: HTTP connector into emqx_bridge_http app 2023-07-12 14:46:43 +02:00
Thales Macedo Garitezi 541d03a0ba refactor(schema_registry): refactor schema registry app and modules
Fixes https://emqx.atlassian.net/browse/EMQX-10361

- Moves `lib-ee/emqx_ee_schema_registry` to `apps/emqx_schema_registry`.
- Removes the `_ee_` segment from module names.
  - Exceptions are the table names which are kept to avoid backwards incompatibilities.
2023-07-12 09:24:15 -03:00
Serge Tupchii cacfb51280 fix(emqx_machine): add emqx_ee_schema_registry to the reboot apps list
As emqx_ee_schema_registry uses Mria tables (schema_registry_shard),
a node joining a cluster needs to restart this application in order to
restart relevant Mria shard processes.
2023-07-12 09:23:28 -03:00
zhongwencool 5b0695ca19
Merge pull request #11249 from zhongwencool/license-setting-api
feat: add license setting get/put api
2023-07-12 18:34:23 +08:00
zhongwencool 8b73a50ca1 chore: delete watermark from /license post api 2023-07-12 17:48:30 +08:00
Ivan Dyachkov e43619b5c8
Merge pull request #11255 from id/0712-add-security-policy
docs: add security policy
2023-07-12 10:53:56 +02:00
zhongwencool 4a07106aa5 fix: don't include emqx_enterprise in community version 2023-07-12 16:48:56 +08:00
Ivan Dyachkov ce65abefc3 docs: add security policy 2023-07-12 10:45:53 +02:00
zhongwencool a8b9b6f27f chore: use put instead of post to update setting 2023-07-12 14:56:24 +08:00
zhongwencool f40d8318b7 fix: license validations is not working 2023-07-12 14:40:38 +08:00
zhongwencool 43866b8e55 test(license): test setting HTTP API 2023-07-12 14:21:51 +08:00
Ivan Dyachkov 3fcfacbaa1
Merge pull request #11252 from id/0711-ci-fix-rerun-apps-check-permissions
ci: fix rerun apps check token scope and improve logging
2023-07-11 18:11:28 +02:00
SergeTupchiy fce3060634
Merge pull request #11251 from SergeTupchiy/EMQX-10392-cluster-topology-api
Add cluster topology HTTP API endpoint
2023-07-11 17:45:00 +03:00
Serge Tupchii 19de10be7c feat(emqx_management): add /cluster/topology HTTP API endpoint
The endpoint shows Mria RLOG cluster topology info:
connections between core and replicant nodes.

Closes: EMQX-10392
2023-07-11 16:25:36 +03:00
Ivan Dyachkov 088ff8b17c ci: fix rerun apps check token scope and improve logging 2023-07-11 14:36:48 +02:00
lafirest 903d81b532
Merge pull request #11250 from lafirest/fix/ws_order
fix(ws): fix MQTT packets may be reversed in the WS
2023-07-11 20:09:55 +08:00
Thales Macedo Garitezi 0fc4a9291b
Merge pull request #11247 from thalesmg/fix-dev-ekka-epmd-switch
ci(dev): fix `--ekka-epmd` flag for elixir
2023-07-11 08:58:17 -03:00
JianBo He 515b414d99
Merge pull request #11236 from HJianBo/perf-speedup-the-empty-conds-query
perf(http): improve the speed of clients querying in default parameters
2023-07-11 19:30:41 +08:00
firest 74f2b3e137 chore: update changes 2023-07-11 18:50:12 +08:00
firest 211486a946 fix(ws): fix MQTT packets may be reversed in the WS
Fix when a WS packet contains many MQTT packets, the order of MQTT packets will be reversed
2023-07-11 18:40:06 +08:00
JianBo He a7d7cd6414
Merge pull request #11248 from Kinplemelon/kinple/for-upgrade-dashboard
chore: upgrade dashboard to e1.1.1-beta.3 for ee
2023-07-11 14:35:05 +08:00
zhongwencool f03d4d090e feat: add license setting get/put api 2023-07-11 11:53:41 +08:00
JianBo He e51a4ae81e chore: avoid dialyzer warnings 2023-07-11 10:41:10 +08:00
JianBo He 964e3cc7e4 chore: update changes 2023-07-11 10:41:10 +08:00
JianBo He 15c91373fe perf(http): improve the speed of clients querying in default parameters
In https://github.com//emqx/emqx/pull/9749 we fixed the problem of
incorrect total calculation. In this PR we added an option to improve
the query speed when the query condition is empty
2023-07-11 10:41:10 +08:00
Kinplemelon 2817dea4d1 chore: upgrade dashboard to e1.1.1-beta.3 for ee 2023-07-11 09:57:38 +08:00
Thales Macedo Garitezi 3fa8853271 ci(dev): fix `--ekka-epmd` flag for elixir 2023-07-10 18:00:01 -03:00
Ivan Dyachkov 4258e54e8f
Merge pull request #11246 from id/0710-fix-macos-signing
fix: add ezstd_nif.so to macos signing
2023-07-10 21:15:58 +02:00
Ivan Dyachkov 1ca2f413c4 fix: add ezstd_nif.so to macos signing 2023-07-10 21:11:26 +02:00
Andrew Mayorov 21fbf79c29
Merge pull request #11191 from keynslug/ft/EMQX-9591/msg-persistence-minimal
feat(ds): hardwire emqx_durable_storage message persistence
2023-07-10 21:05:04 +02:00
Andrew Mayorov 29f2e7c96b
Merge pull request #11245 from keynslug/chore/emqx-ds-codeowners
chore(ds): add review-board as `emqx_durable_storage` codeowners
2023-07-10 21:04:44 +02:00
Andrew Mayorov 5f731d1e29
chore: add @keynslug as `emqx_durable_storage` codeowner
Co-authored-by: Thales Macedo Garitezi <thalesmg@gmail.com>
2023-07-10 20:57:07 +02:00
Thales Macedo Garitezi beb5be4de2
Merge pull request #11244 from thalesmg/ci-sorted-reboot-apps-check-master
ci(machine_boot): add ci check for missing reboot apps
2023-07-10 15:56:10 -03:00
Andrew Mayorov ec47be912d
chore(ds): add review-board as `emqx_durable_storage` codeowners 2023-07-10 20:53:22 +02:00
Ivan Dyachkov 90455c2548
Merge pull request #11124 from id/0622-amazonlinux-2023-packages
ci: release Amazon Linux 2023 packages
2023-07-10 20:42:22 +02:00
Ivan Dyachkov 4d1c7652ae
Merge pull request #11243 from id/0710-prep-e5.1.1-alpha.1
prepare for e5.1.1 alpha.1
2023-07-10 20:30:48 +02:00
Thales Macedo Garitezi a53768c1d4 fix(machine_boot): add `emqx_durable_storage` to reboot apps list 2023-07-10 14:39:44 -03:00
Thales Macedo Garitezi d97d5b8af7 ci(machine_boot): add ci check for missing reboot apps
In order to avoid forgetting to add an application to
`emqx_machine_boot:sorted_reboot_apps`, this script checks for any calls to
`mria:create_table` in all EMQX applications and checks it against said function in
`emqx_machine_boot`.

Example run:

```
ͳ scripts/check_missing_reboot_apps.exs --profile emqx-enterprise
Some applications are missing from `emqx_machine_boot:sorted_reboot_apps/0`!
Missing applications:
  * emqx_durable_storage
  * emqx_ee_schema_registry

Hint: maybe add them to `emqx_machine_boot:basic_reboot_apps_edition/1`

Applications that call `mria:create_table` need to be added to that list;
 otherwise, when a node joins a cluster, it might lose tables.
```

Example problem: https://github.com/emqx/emqx/pull/11242
2023-07-10 14:38:58 -03:00
SergeTupchiy 721dbad300
Merge pull request #11242 from SergeTupchiy/add-schema_registry-app-to-reboot-list
fix(emqx_machine): add emqx_ee_schema_registry to the reboot apps list
2023-07-10 20:17:59 +03:00