Commit Graph

165 Commits

Author SHA1 Message Date
Shawn 39b1b20506 feat: fix the hook priorities 2022-06-15 19:03:40 +08:00
Zhongwen Deng c7cc2e85b2 fix: add default&example for schema 2022-06-06 09:52:10 +08:00
JianBo He 6e203496c9 chore: rename the exhook server status names 2022-05-16 16:08:54 +08:00
JimMoen 4d73fe83be fix(exhook): ExHook name limit with regular expression 2022-05-13 16:56:29 +08:00
JimMoen f25dd4b571 fix(exhook): use `lists:filter/2` to delete exhook server conf 2022-05-13 10:15:00 +08:00
JimMoen 40188c140b fix(exhook): show file paths for SSL certs in dashboard 2022-05-13 10:15:00 +08:00
JimMoen ef8ed3202e fix(exhook): refine exhook and exhook api
Refine status code.
Fix ssl ciphers raw list.
Make sure config update error be thrown.
2022-05-05 16:03:53 +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
Shawn 9080b19440 fix: update exhook schema for user_lookup_fun 2022-04-24 09:54:35 +08:00
JimMoen bbd843c68b feat(exhook): provide meta data in `RequestMeta` 2022-04-23 19:45:34 +08:00
firest 0d0080908c fix(exhook): fix reload error 2022-04-21 15:04:22 +08:00
firest 8e62ae5ebf feat(exhook): add i18n support 2022-04-20 15:47:43 +08:00
firest af3519698c fix(exhook): use error code to replace exception in the URL parse
we should return 400 and why to the API caller, not crash and return 500
2022-04-18 11:54:41 +08:00
firest f20af91ba0 refactor(exhook): refine the status of the exhook callback server 2022-04-18 11:45:52 +08:00
firest ed73001901 fix(exhook): ignore the exhook server load error when config update 2022-04-18 10:20:47 +08:00
DDDHuang c777759707 chore: some code format 2022-04-16 16:37:10 +08:00
DDDHuang e22d01d25f fix: page & limit & pool_size pos_integer; some bad spelling 2022-04-16 16:37:10 +08:00
firest 1a4afabe9f chore(exhook): reformat exhook codes 2022-04-14 14:12:34 +08:00
JianBo He 7954f32858 chore: remove scram authenticator for all gateway 2022-04-12 16:13:55 +08:00
Thales Macedo Garitezi 72b87a6a7e
feat(exhook): export basic usage info for telemetry 2022-04-07 13:52:28 -03: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
lafirest 9ffc58071d
Merge pull request #7467 from lafirest/test/exhook_metrics
test(exhook): add test case for exhook metrics
2022-03-31 20:05:32 +08:00
firest 57cdf86977 fix(exhook): fix elvis error 2022-03-31 16:04:40 +08:00
firest 877db375ed test(exhook): add test case for exhook metrics 2022-03-31 15:29:52 +08:00
ieQu1 c0e5139e9f docs(schema): Add description for clientinfo_override 2022-03-30 11:53:51 +02:00
ieQu1 866a0b2687 docs(schema): Document exhook records 2022-03-30 11:53:38 +02:00
Zaiming (Stone) Shi 036266769c docs: add more schema desc 2022-03-25 10:52:58 +01:00
ieQu1 077ef073e5 docs(schema): Add descriptions to the schema 2022-03-23 19:05:25 +01:00
ieQu1 8967e13eee docs(schema): Move descriptions from emqx.conf.all 2022-03-23 13:52:54 +01:00
firest 49fc1ab1c0 fix(exhook): use emqx_hook_metrics to count hook call information 2022-03-22 16:59:49 +08:00
DDDHuang e517b41a4d fix(api): desc & remove useless api 2022-03-21 15:03:37 +08:00
DDDHuang 4d4348759d fix: generate connector & exhook & retainer api response code 2022-03-21 14:12:19 +08:00
DDDHuang 74e6fa5a94 fix: generate bridge api response code
fix: generate connector api response code SUITE

fix: generate exhook api response code
2022-03-21 14:12:19 +08:00
JimMoen e83357895c refactor(exhook): move command use macro 2022-03-15 11:14:49 +08:00
JimMoen 02ed2148d7 refactor: move api `top` -> `front`, `bottom` -> `rear` 2022-03-15 10:28:46 +08:00
JimMoen 7f595f3988 refactor(exhook_api): unified move position style 2022-03-15 10:28:46 +08:00
Zaiming (Stone) Shi 0528262705 chore(app.src): EMQ X -> EMQX in .app.src files 2022-02-16 17:51:45 +01:00
lafirest 28bf20a366 fix(emqx_exhook): replace ssl-config schema with emqx_schema:client_ssl_opts_schema 2022-02-15 16:25:23 +08:00
firest 4063bcea9f fix(emqx_exhook): add verify field in the ssl conf 2022-02-11 06:24:05 +08: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
Kian-Meng Ang fc92e4c8bf docs: fix typos 2022-01-27 12:29:38 +01:00
Zaiming (Stone) Shi 586ecaf031 refactor(exhook): log with ?SLOG macro 2022-01-26 22:29:06 +01:00
firest 1d832c3026 fix(emqx_exhook): improve test coverage of the emqx_exhook_metrics 2022-01-21 18:05:01 +08:00
firest a28d1efd39 fix(emqx_exhook): improve test coverage of the emqx_exhook_mgr 2022-01-21 16:12:21 +08:00
k32 7061e6eefe refactor(emqx_exhook): Decorate RPCs 2022-01-19 18:18:20 +01:00
lafirest 6d87db80c1
Merge pull request #6772 from lafirest/fix/exhook_lint
fix(exhook): fix some lint error
2022-01-18 11:41:43 +08:00
lafirest 967772c7fc fix(emqx_exhook): remove obsolete code 2022-01-18 10:56:45 +08:00
lafirest d4fb98f347 fix(exhook): fix some lint error 2022-01-18 10:47:55 +08:00
lafirest 86af3a9b8f fix(emqx_exhook): fix some error of indent and dialyzer 2022-01-17 17:16:58 +08:00
lafirest 9a6a8a778b feat(emqx_exhook): add metrics 2022-01-17 16:04:15 +08:00
JianBo He b1959086d9 chore: fix elvis warnings 2022-01-12 13:51:37 +08:00
JianBo He 10b110447c chore(exhook): change root name emqx_exhook > exhook 2022-01-12 13:51:37 +08:00
Thales Macedo Garitezi 80a06c7201
Merge pull request #6654 from emqx/fix-unknown-calls
fix: rm unknown call (`ct:pal`)
2022-01-06 14:12:53 -03:00
Zaiming (Stone) Shi 63167cea70 chore: update copyright 2022-01-05 20:55:00 +01:00
Thales Macedo Garitezi c882b08b08
fix: rm unknown call (`ct:pal`) 2022-01-05 10:37:45 -03:00
lafirest 7c9c7b6a60 refactor(emqx_exhook): refactore exhook and add api module 2021-12-23 17:51:13 +08:00
JianBo He 5d4604701c chore: fix elvis warnings 2021-12-09 15:06:18 +08:00
JianBo He 34cc8cc7f5 chore: put the pool_size default value to avoid hot upgrade failure 2021-12-09 15:06:18 +08:00
JianBo He e7ccd88719 test(props): cover messages headers 2021-12-09 15:06:18 +08:00
JianBo He f132d09483 chore(exhook): parse pool_size 2021-12-09 15:06:18 +08:00
JianBo He 143c685452 feat(exhook): expose process pool_size for grpc client 2021-12-09 15:06:18 +08:00
JianBo He 262fb13a71 chore(exhook): fix diaylzer warnings 2021-12-09 15:06:17 +08:00
JianBo He 20ba9d285f feat(exhook): expose headers for on_messages_publish hook 2021-12-09 15:06:17 +08:00
Zaiming (Stone) Shi 5440b431a1 fix: typo takeovered -> takenover 2021-12-07 16:06:23 +01:00
Spycsh c89a663b53 chore: refactor slog under emqx, conf and exhook 2021-11-22 23:12:17 +01:00
zhongwencool d784e63b9f
emqx_conf (#5939)
* feat(emqx_conf): move conf manager for emqx_machine to emqx_conf

* chore(emqx_conf): change emqx:get_config/2 to emqx_conf:get/2

* fix: common test failed

* fix: badmatch by typo wrong key

* fix(emqx_conf): get the wrong core nodes

* fix(emqx_conf): get core node's tnx_id not latest tnx_id

* fix: add ro_transation when copy conf file

* fix: delete debug info

* fix: change ekka_rlog to mria_rlog

* fix: remove cluster_rpc from emqx_machine.

* fix: don't call ekka:start/0 explicitly

* fix: ekka should be start in emqx_machine
2021-10-21 18:08:51 +08:00
zhongwencool d80f20aca3
feat(swagger): define mgmt config_api by hocon schema (#5814)
* feat(swagger): define mgmt config_api by hocon schema

* fix: enum can't defined by integer, use union.

* fix: hocon schema union to enum
2021-10-13 14:04:43 +08:00
lafirest 3524942766 fix: change all ~s in io format to ~ts
we should use unicode to replace latin1
2021-10-12 15:09:24 +08:00
DDDHuang f9adecedef fix: exhook code spelling 2021-09-29 17:23:51 +08:00
JimMoen deac54c847 chore(for editor): Add comments for Emacs major mode. 2021-09-16 15:43:30 +08:00
Zaiming Shi ec13463f4a refactor(schema): prepare for hocon schema doc generation 2021-09-03 11:02:31 +02:00
Zaiming Shi 5165fd6b30 refactor(schema): implement new hocon_schema callbacks 2021-08-30 09:56:03 +08:00
Shawn e8e95d39ef
refactor(config): move emqx_config:get/get_raw to emqx:get_config/get_raw_config (#5517) 2021-08-18 14:52:57 +08:00
JianBo He a4d29ec8de chore(exhook): fix diaylzer warnings 2021-08-12 16:34:10 +08:00
JianBo He 4921c00a19 chore(exhook): change the name to binary type 2021-08-12 16:34:10 +08:00
JianBo He 3cef377b33 feat(exhook): make request_failed_action working 2021-08-12 16:34:10 +08:00
JianBo He 6574fc4f14 fix(exhook): set trap_exit flag 2021-08-12 16:34:10 +08:00
JianBo He f5acf5fd0b refactor(exhook): move all manager code into mngr module 2021-08-12 16:34:10 +08:00
JianBo He 7e5be6ed6c refactor(exhook): add mechanism to reload the failure server 2021-08-12 16:34:10 +08:00
JianBo He ade69c1e18 fix(exhook): more safe type convertion 2021-08-07 08:48:34 +08:00
JianBo He 6dd33907f1 fix(exhook): fix the server name type 2021-08-07 08:48:34 +08:00
JianBo He 183a65d263 fix(exhook): fix the server config format 2021-08-07 08:48:34 +08:00
JianBo He 31d4f72d16 fix(exhook): correct the broker-info 2021-08-07 08:48:34 +08:00
Zaiming Shi e6232665a3 refactor(emqx): ensure app shutdown and reboot order
make use of application dependency to ensure start order.
also the same dependency top-sorted for shutdown and reboot order
2021-08-04 08:40:03 +02:00
JianBo He 82321da7ad chore(exhook): bump version 2021-08-03 14:06:58 +08:00
JianBo He d7322aff19 chore(exhook): empty appup.src 2021-08-03 14:06:58 +08:00
JianBo He 604e282978 chore(exhook): fix dialyzer warnings 2021-08-03 14:06:58 +08:00
JianBo He aa019b34ad test(exhook): refine tests 2021-08-03 14:06:58 +08:00
JianBo He 879c191e41 refactor(exhook): adapt to the hocon schmea 2021-08-03 14:06:58 +08:00
Turtle ed1cf33b9d chore: merge coap/lwm2m/exhook/exproto to emqx_gateway dir 2021-07-16 23:24:36 +08:00
JianBo He 56cdd469ff
feat(gateway): The prototype for emqx-gateway application
* feat(gateway): add gateway application

* chore(gateway): add normalize confs function

* refactor: move emqx-stomp to emqx-gateway subdir

* chore(gateway): fix some bad function defination

* chore(gateway): rename type to gwid

* chore(gw-stomp): upgrade the implementation to suppport gateway instance

* feat(gw-stomp): add reconnect mechanism

* refactor(stomp): upgrade connection&channel module to latest

* refactor(stomp): more details for handle_in/out

* refactor(stomp): get it up and running

* chore(gw): load some modules by default

* refactor: upgrade the emqx-gateway schema module

* test(stomp): fix testcases for stomp gateway

* chore(gw): remove needless lines

* chore(gateway): correct a lot of specs

* chore(gw): add a draft for metrics

* chore(gw): add metrics process

* fix(gw): fix cm process monitor

* test(gw): add test cases for gateway-regitry

* feat(gw): add metrics/cli for gateway

* fix(gw): fix xref errors

* chore(gw): pretty gateway metrics print format

* chore(gw-stomp): generate clientid by default

* chore(gw): more reliable

* chore(gw): rename gwid -> type

* chore(gw): impl the update logic

* chore(gw): some format improvement

* chore(gw): adapts the hocon configs

* fix(gw): fix xref errors

* test(gw): update configurations for tests

* chore(gw): ignore diaylzer warnings

* fix(gw): fix bad function call

* chore(gw): remove needless comments
2021-07-02 20:17:40 +08:00
zhanghongtong e1b0f44a8a chore: rename check_authz to authorize 2021-06-29 10:09:15 +08:00
zhanghongtong c63bdc355a chore: rename check_acl to check_authz
update emqx_coap vsn

rename OnClientCheckAcl to OnClientCheckAuthz in exhook
2021-06-29 10:09:15 +08:00
JianBo He 56ac459b7f fix(modules): fix start/stop exhook module failure 2021-06-28 11:40:44 +08:00
JianBo He 3a89b1f00b
chore(action): fix syntax error (#4885) 2021-05-31 15:08:52 +08:00
Ertan Deniz 07d5c0f9df feat(exhook): add ssl cert info to ClientInfo 2021-04-27 09:20:38 +08:00
Zaiming Shi 6354e75626 chore: update copyrights 2021-04-23 20:43:00 +02:00
JianBo He 6710a508df fix(exhook): correct the exhook server anme 2021-04-15 21:48:32 +08:00
JianBo He 373532f9e4 fix(exhook): fix the match pattern 2021-04-15 21:48:32 +08:00
JianBo He b7a8884d4a chore(exhook): add a comment to bool type 2021-04-15 11:07:55 +08:00