Commit Graph

20033 Commits

Author SHA1 Message Date
Zaiming (Stone) Shi 0656b6be3c refactor(emqx_config): use dynamic callback to upgrade raw config 2023-10-30 14:49:08 +01:00
Kjell Winblad 9dc3a169b3 feat: split bridges into a connector part and a bridge part
Co-authored-by: Thales Macedo Garitezi <thalesmg@gmail.com>
Co-authored-by: Stefan Strigler <stefan.strigler@emqx.io>
Co-authored-by: Zaiming (Stone) Shi <zmstone@gmail.com>

Several bridges should be able to share a connector pool defined by a
single connector. The connectors should be possible to enable and
disable similar to how one can disable and enable bridges. There should
also be an API for checking the status of a connector and for
add/edit/delete connectors similar to the current bridge API.

Issues:
https://emqx.atlassian.net/browse/EMQX-10805
2023-10-30 14:48:47 +01:00
zhongwencool e896957803
Merge pull request #11824 from zhongwencool/audit-log-reviewed
refactor: audit log review refactor
2023-10-30 17:51:15 +08:00
Ivan Dyachkov 045875d18d ci: make CI a little faster and less flaky
- use latest ubuntu22.04 emqx-builder image in compose files
- use xl runners for compiling and for emqx app tests
- make helm tests less flaky
2023-10-30 10:32:27 +01:00
JimMoen 3a09fdc495
refactor: check match topic before do subscriptions query 2023-10-30 16:45:29 +08:00
SergeTupchiy 45fdf8da1b
Merge pull request #11819 from SergeTupchiy/fix-opentelemetry-metrics-timestamp
chore: upgrade opentelemtry to v1.3.1-emqx
2023-10-30 09:07:24 +02:00
JimMoen e9de7316b6
test: shared-sub topics/subscription api 2023-10-30 14:42:59 +08:00
JimMoen 814e22feb3
fix: topics/subscripton mgmt api searching 2023-10-30 14:42:47 +08:00
zhongwencool 0634ff61c0 fix: dialyzer warning 2023-10-30 09:57:30 +08:00
Zaiming (Stone) Shi e4414b9cb7
Merge pull request #11831 from zmstone/1028-only-enable-cover-compile-by-default-in-ci
ci: only enable cover-compile by default in CI
2023-10-28 22:28:48 +02:00
Zaiming (Stone) Shi 3aebe4a289 ci: only enable cover-compile by default in CI
so the ad-hoc make apps/appname-ct run can be faster
2023-10-28 00:39:55 +02:00
Zaiming (Stone) Shi 3e7ce6531d
Merge pull request #11827 from zmstone/1027-remove-unused-vars-from-Makefile
refactor: OTP_VSN and ELIXIR_VSN are no longer needed in Makefile
2023-10-27 15:58:29 +02:00
JimMoen a2015f37ae
Merge pull request #10976 from JimMoen/fix-shared-sub-unsub 2023-10-27 21:22:27 +08:00
Zaiming (Stone) Shi 61c1c72061 refactor: OTP_VSN and ELIXIR_VSN are no longer needed in Makefile 2023-10-27 12:21:47 +02:00
lafirest e63602c4b0
Merge pull request #11811 from lafirest/fix/api_rbac
fix(rbac): for compatibility with old data schema, extend the existing field as an extra
2023-10-27 17:56:54 +08:00
JimMoen d563121284
refactor: move ?REDISPATCH_TO macro to emqx_mqtt.hrl 2023-10-27 17:54:14 +08:00
Zaiming (Stone) Shi eddd2c2a99
Merge pull request #11825 from zmstone/1027-build-refactor-ct-Makefile-targets
build: refactor Makefile -ct and -prop target generation
2023-10-27 11:50:44 +02:00
firest 4ba34f8f3e chore(rbac): fix CI errors & update change 2023-10-27 17:17:04 +08:00
Zaiming (Stone) Shi 5c14ac2e50 build: refactor Makefile -ct and -prop target generation
Do not pre-generate all the -ct and -prop targets,
rather generate only the one that is in the specified build target
2023-10-27 10:22:15 +02:00
JimMoen 3b5cc912e7
fix: add `redispatch_to` header to all msgs when deliver shared-sub
- to find correct SubOpts for shared-sub dispatch
- use previous key `redispatch_to` to ensure rolling upgrade compatibility
2023-10-27 16:15:23 +08:00
zhongwencool 22223dc536 fix: return 400 when audit log is disabled 2023-10-27 16:11:30 +08:00
zhongwencool 995948f0e8 refactor: remove seq from audit record 2023-10-27 14:07:19 +08:00
zhongwencool 9bb22507df fix: dont use transation on audit log 2023-10-27 11:41:12 +08:00
JimMoen 53383991d9
fix: rewrite #share{} and return #share{}, not formated $share/group/topic 2023-10-27 09:23:44 +08:00
JimMoen afec6fa2f6
fix: TopicFilter may modified by `client.subscribe` hook 2023-10-27 09:23:44 +08:00
JimMoen 802a36c670
fix: find SubOpts by shared_record, not deliver topic 2023-10-27 09:23:44 +08:00
JimMoen 9732e31395
chore: highlight breaking changes 2023-10-27 09:23:44 +08:00
JimMoen eaa5459509
chore: bump apps vsn 2023-10-27 09:23:43 +08:00
JimMoen 0ca725ff25
fix: deprecated `share` in `subopts` 2023-10-27 09:23:43 +08:00
JimMoen b5411da770
refactor: subscribe process to fix shared-sub 2023-10-27 09:23:43 +08:00
lafirest efd0cfbda9
Merge pull request #11817 from lafirest/refactor/ldap_bind
refactor(ldap): in authn, refactor the `ldap-bind` as a type in the `ldap` backend
2023-10-26 22:10:14 +08:00
Andrew Mayorov 44b4205561
fix(secret): do not treat missing file secrets as config error
They are intended to be used mostly in the context of resources, which
have their own feedback mechanism: statuses, retries, etc.

Also turn the error into a throw exception, so that it can be
interpreted as a regular error condition, for example by the resource
manager.
2023-10-26 14:37:14 +07:00
Serge Tupchii 9b0a7b9c63 chore: upgrade opentelemtry to v1.3.1-emqx
v1.3.1-emqx fixes metrics timestamp issue #11802.
2023-10-26 10:17:29 +03:00
firest cbfd02d1b0 refactor(ldap): merge the `ldap-bind` backend as a type for the `ldap` backend 2023-10-26 11:04:44 +08:00
Zaiming (Stone) Shi 97601171a5
Merge pull request #11818 from zmstone/1025-fix-flaky-test
test: fix a flaky test case emqx_crl_cache_SUITE:t_revoked
2023-10-25 20:46:31 +02:00
Zaiming (Stone) Shi 76a8b0efd4 test: fix a flaky test case emqx_crl_cache_SUITE:t_revoked 2023-10-25 16:08:31 +02:00
William Yang ae49750b3e
Merge pull request #11816 from qzhuyan/fix/william/genrpc-tcp-port-align
fix: gen_rpc tcp client port align with server port
2023-10-25 14:19:56 +02:00
William Yang f52b4a9e32 fix: gen_rpc tcp client port align with server port 2023-10-25 12:11:35 +02:00
William Yang 37dd44c3d7
Merge pull request #11813 from qzhuyan/fix/william/genrpc-ssl-port-align
Fix/william/genrpc ssl port align
2023-10-25 09:04:19 +02:00
JimMoen a4ab744d4e
Merge pull request #11805 from HJianBo/typo-fixes
chore: typo fixes
2023-10-25 09:16:23 +08:00
William Yang 6346e0d28a fix(gen_rpc): ssl client port align with server port 2023-10-24 22:33:52 +02:00
William Yang 2a7d73e62c ci: fix helm chart test 2023-10-24 21:19:37 +02:00
firest ec41479633 feat(rbac): supports setting role in API bootstrap file 2023-10-24 23:03:18 +08:00
firest e175c213a1 fix(rbac): for compatibility with old data schema, extend the existing field as extra 2023-10-24 22:28:53 +08:00
Zaiming (Stone) Shi 33db5f5054
Merge pull request #11810 from zmstone/1024-fix-otel-schema-default-value
fix: use binary string for raw default values
2023-10-24 16:20:01 +02:00
Zaiming (Stone) Shi abcb3166f6 fix: use binary string for raw default values 2023-10-24 14:46:01 +02:00
firest 7a8a5926ab fix(rbac): adjust the role names 2023-10-24 19:01:12 +08:00
Stefan Strigler 6e12569260
Merge pull request #11797 from sstrigler/EMQX-1057-fix-authz-api-donot-return-200
fix: return 404 if built_in_database not configured as auth source
2023-10-24 12:08:53 +02:00
Andrew Mayorov 52f4519eeb
feat(mqttbridge): support file-sourced secrets as passwords 2023-10-24 16:24:52 +07:00
Andrew Mayorov 1c2f9321d1
feat(emqx): add file-sourced generic secrets
These secrets follow the same `emqx_secret` convention of 0-arity
functions. Also provide a simple HOCON schema module for use in
application schemas.
2023-10-24 16:24:51 +07:00