Zaiming (Stone) Shi
7b601bf970
chore: delete bad parse_bridge function clause
2022-09-23 11:53:02 +02:00
Kjell Winblad
adc67b165b
test: test cases for Kafka bridge REST API
2022-09-23 10:09:07 +02:00
JimMoen
6788881642
fix: hide influxdb udp config
2022-09-20 14:46:59 +08:00
JimMoen
03495d8d36
fix: influxdb server string support scheme prefix
2022-09-20 14:46:59 +08:00
Kjell Winblad
ac2922fc4c
test: Kafka bridge cases for all combinations of SASL and SSL
2022-09-16 16:44:12 +02:00
JimMoen
0336b935a0
Merge pull request #8901 from JimMoen/fix-bridge-api
...
- for connectors using ecpool, parse connect error `Reason` when start pool failed.
- Refine InfluxDB bridge desc.
2022-09-16 10:22:06 +08:00
Kjell Winblad
be7a8c11a8
test: make bridge name unique in tests
2022-09-15 16:21:32 +02:00
Kjell Winblad
4dc26eeba7
fix: use different instance id in Kafka auth test
2022-09-15 07:33:07 +02:00
JimMoen
54a9c8d201
chore: refine influxdb bridge description
2022-09-15 09:36:52 +08:00
Thales Macedo Garitezi
deff429579
chore: unify default license references in fn
2022-09-14 17:26:48 -03:00
Thales Macedo Garitezi
741eb4ff51
docs: apply suggestions from code review
...
Co-authored-by: Zaiming (Stone) Shi <zmstone@gmail.com>
2022-09-14 17:08:45 -03:00
Thales Macedo Garitezi
21f89fd83e
chore(license): delete default config and add info to i18n
2022-09-14 17:00:21 -03:00
Kjell Winblad
5820b028cb
feat: add test case for Kerberos Kafka authentication
2022-09-14 17:03:37 +02:00
Thales Macedo Garitezi
8cefdb00b8
chore(license): add default key as default value in schema
2022-09-14 09:45:01 -03:00
Thales Macedo Garitezi
d4416dc581
chore: drop support for license files (ee5.0)
...
Related issue: EMQX-7247
EMQX ee5.0 is to drop support for both the old license format (x509)
and for files containing the new format.
2022-09-14 09:44:59 -03:00
Shawn
f41adb0997
refactor: change some default values of resource_opts
2022-09-14 15:18:07 +08:00
Zaiming (Stone) Shi
e45c99bf79
fix: kafka bridge schema
2022-09-13 20:02:48 +02:00
Kjell Winblad
f0e03086a6
test: add test cases for Kafka SASL auth mechanisms plain and scram
2022-09-13 19:46:56 +02:00
Zaiming (Stone) Shi
0c1595be02
feat: Add Kafka connector
2022-09-13 19:46:56 +02: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
Xinyu Liu
23b6ff399d
Merge pull request #8844 from thalesmg/mongodb-bridge
...
feat: add mongodb bridge (e5.0)
2022-09-03 12:27:01 +08:00
Xinyu Liu
7fed4faac3
Merge pull request #8859 from terry-xiaoyu/refactor_counters_for_resources
...
Some improvements and bug fixes to emqx_resources
2022-09-03 12:16:49 +08:00
Thales Macedo Garitezi
f1048babd8
test: refactor to use hocon and schema
2022-09-02 12:04:37 -03:00
Shawn
b45f3de8db
refactor(resource): rename metrics batched,queued -> batching,queuing
2022-09-02 12:41:14 +08:00
Thales Macedo Garitezi
3d4afd65df
feat: add mongodb bridge (e5.0)
2022-09-01 14:47:14 -03:00
Zaiming (Stone) Shi
5a3fb4a011
Merge remote-tracking branch 'origin/master' into dev/ee5.0
2022-08-31 17:11:15 +02:00
Shawn
ba1f5eecd3
fix: update the swagger for new resource metrics
2022-08-31 11:14:36 +08:00
Shawn
e0a6a61d73
fix: return error on start hstreamdb crash
2022-08-30 10:19:40 +08:00
Zaiming (Stone) Shi
2eb078ff3b
chore: bump changed app versions
2022-08-26 14:32:28 +02:00
Shawn
6b0ccfbc43
refactor: rename the error return resource_down -> recoverable_error
2022-08-26 17:11:12 +08:00
Shawn
a896aa8b27
fix: incorrect replayq dir for the emqx_resource
2022-08-25 16:06:18 +08:00
Shawn
9327c0f51b
fix(mysql_bridge): export the query_mode option to the APIs
2022-08-25 11:38:50 +08:00
JimMoen
a481e8e2ee
fix(influxdb): refine influxdb bridge example
2022-08-24 14:44:53 +08:00
JimMoen
eb21a37145
Merge pull request #8785 from JimMoen/feat-influxdb-config
...
Remove influxdb connector config layer. See #8773
2022-08-24 10:56:26 +08:00
Shawn
4ac6f12252
refactor: configs and APIs for mysql bridge
2022-08-24 10:08:03 +08:00
JimMoen
ca6533395c
feat: influxdb bridge structure fits new style
2022-08-24 09:59:22 +08:00
Shawn
aea8c77b49
refactor: new config structure for mqtt bridge
2022-08-22 18:24:59 +08:00
lafirest
4ad04b646f
Merge pull request #8759 from lafirest/feat/mysql_batch_query
...
feat(bridge): add `on_batch_query` on emqx_connector_mysql
2022-08-22 17:22:39 +08:00
firest
2471580c47
fix(bridge): make spellcheck happy
2022-08-22 15:58:11 +08:00
JimMoen
2648362c62
fix(bridge): password for bridge/db format as `password` for dashboard
2022-08-19 15:54:19 +08:00
JimMoen
06363e63d9
fix(influxdb): connector use a fallbacke `pool_size` for influxdb client
2022-08-19 15:54:19 +08:00
firest
dce47aac17
fix(bridge): don't export internal fields
2022-08-19 15:31:37 +08:00
firest
8d8afd1688
feat(bridge): add `on_batch_query` on emqx_connector_mysql
2022-08-19 13:16:22 +08:00
Shawn
de3a325953
fix: revert the changes in connector mysql
2022-08-16 09:06:13 +08:00
Thales Macedo Garitezi
7a31897f8e
docs: add manual newlines
2022-08-15 16:55:53 -03:00
Thales Macedo Garitezi
34c1c61343
docs: apply suggestions from code review
...
Co-authored-by: Zaiming (Stone) Shi <zmstone@gmail.com>
2022-08-15 16:37:50 -03:00
Thales Macedo Garitezi
900c6ec43e
docs: add missing descriptions for license schema fields
2022-08-15 14:20:39 -03:00
Xinyu Liu
2898966439
Merge branch 'dev/ee5.0' into resource_opts
2022-08-15 21:43:22 +08:00
Shawn
19d85d485b
refactor(resource): add resource_opts level into config structure
2022-08-15 21:40:10 +08:00
JimMoen
d0e923590e
fix: write influxdb line with undefined value
2022-08-15 14:02:17 +08:00
JimMoen
68946f1f6c
feat: influxdb support `async`/`batch_async` query
2022-08-15 14:02:17 +08:00
JimMoen
b01ae8ece6
chore: refine influxdb bridge/connector i18n
2022-08-15 14:00:14 +08:00
Shawn
b3162fe5ff
fix: conflicts between master and ee5.0
2022-08-14 22:24:09 +08:00
JimMoen
594d071c05
feat(influxdb): add async callback
2022-08-12 18:26:47 +08:00
JimMoen
441d8c9d57
chore: bump `influxdb-client-erl` vsn
2022-08-12 18:26:42 +08:00
JimMoen
fa5e8f1422
chore: refine i18n label
2022-08-12 16:39:03 +08:00
lafirest
404e79b7d7
Merge pull request #8687 from lafirest/fix/bridge_mysql
...
fix(bridge): replace prepare_statement by sql_template
2022-08-12 10:12:34 +08:00
JimMoen
0c1285cdab
fix: bridge creation opts refs
2022-08-12 10:07:54 +08:00
JimMoen
db3e4f0b90
fix: flatten Points list
2022-08-11 20:58:56 +08:00
JimMoen
3a76a50382
fix: syntax error and compile error
2022-08-11 20:58:43 +08:00
Shawn
2872f0b668
fix(bridges): support create resources with options
2022-08-11 19:11:44 +08:00
JimMoen
0f6c371760
feat(influxdb): influxdb connector add `on_batch_query/3` callback
2022-08-11 18:12:41 +08:00
firest
dc80499399
fix(bridge): add sql_template field format
2022-08-11 15:58:48 +08:00
firest
7581082fcb
fix(bridge): replace prepare_statement by sql_template
2022-08-11 13:22:16 +08:00
JimMoen
223b84017e
fix(influxdb): api schema `write_syntax` using raw type `string()`
2022-08-11 11:36:08 +08:00
JimMoen
0090a3ee93
fix(influxdb): fix illegal `wirte_syntax` example
2022-08-11 11:26:53 +08:00
Shawn
145ff66a9a
fix: issues found by dialyzer and elvis
2022-08-10 00:45:26 +08:00
JimMoen
9d17bf31f8
fix: InfluxDB api v1 not support uint type
2022-08-09 14:28:54 +08:00
JimMoen
d51ca2672a
fix: spellcheck and update checker repo version
2022-08-09 11:50:05 +08:00
JimMoen
7305c3c04c
fix(influxdb): parsed boolean type match
2022-08-08 18:22:46 +08:00
JimMoen
35e347aec8
feat: refine influxdb bridge conf
...
Consistent influxdb line protocol config to raw syntax format.
See also
[InfluxDB 2.3 Line Protocol](https://docs.influxdata.com/influxdb/v2.3/reference/syntax/line-protocol/ ) and
[InfluxDB 1.8 Line Protocol](https://docs.influxdata.com/influxdb/v1.8/write_protocols/line_protocol_tutorial/ )
2022-08-08 18:06:49 +08:00
JimMoen
06f246a896
fix: prevent unexcepted square brackets in influxdb line protocol
2022-08-08 10:45:18 +08:00
JimMoen
33a604dcaa
fix: refine influxdb connector api type name
2022-08-07 19:37:44 +08:00
JimMoen
2e336fbc01
fix: bridge and connector namespace contains DB name
...
Contains Detailed DB name for identifier hocon schema refs.
2022-08-07 19:37:44 +08:00
JimMoen
4d0516c6e9
chore: use HStreamDB for module name
2022-08-07 19:37:44 +08:00
Thales Macedo Garitezi
e76682d368
test: apply review comments
2022-08-04 15:27:45 -03:00
Thales Macedo Garitezi
68592373e3
test: add a couple more tests
2022-08-04 14:01:27 -03:00
Thales Macedo Garitezi
7e6b94fc12
test: avoid stopping cover and using meck
2022-08-04 10:23:49 -03:00
firest
aa6077bdea
fix(bridge): remove emqx_ee_connector_mysql
2022-08-04 14:52:16 +08:00
firest
88fd7e14dc
feat(bridge): add mysql sink
2022-08-03 15:56:31 +08:00
Thales Macedo Garitezi
69ec76f586
chore(license): treat license file API as an upload (5.0)
...
Improving the HTTP API for license after PR feedback.
2022-08-02 17:25:33 -03:00
Thales Macedo Garitezi
889829e47d
docs: use better translation
2022-08-02 09:31:59 -03:00
Thales Macedo Garitezi
1a66e53c49
chore(license): change api responses after review
2022-08-02 09:31:59 -03:00
Thales Macedo Garitezi
b19e8fb3cd
feat(license): add HTTP API for license
2022-08-02 09:31:59 -03:00
JimMoen
10b19acd35
chore: module and fun call rename
2022-08-02 16:59:56 +08:00
JimMoen
d778a71d3b
chore: unifined lib-ee name style
2022-08-02 16:47:09 +08:00
DDDHuang
4663e354bf
fix: update influxdb sdk version to 1.1.3. Adapted master deps version
2022-08-01 10:34:57 +08:00
DDDHuang
c1542e7a77
fix: influxdb connector bad encode message
2022-08-01 10:28:15 +08:00
DDDHuang
55b9684541
fix: influxdb bridge api available
2022-08-01 10:28:07 +08:00
DDDHuang
fa54bf5612
fix: influxdb connector api available
2022-08-01 10:27:58 +08:00
DDDHuang
4c7ca2217c
fix: add influxdb udp api_v1 api_v2 connector
2022-08-01 10:27:42 +08:00
DDDHuang
01e9e8a0eb
feat: add ee influxdb connector & bridge
2022-08-01 10:27:35 +08:00
DDDHuang
3fe76446bc
Merge branch 'master' into dev/ee5.0
2022-08-01 10:14:21 +08:00
Thales Macedo Garitezi
7c34011c12
chore: bump app vsns
2022-07-28 17:45:44 -03:00
Thales Macedo Garitezi
f8a1bd0715
feat(license): copy license file to cluster when updating it
2022-07-28 17:29:59 -03:00
Thales Macedo Garitezi
80d35feb33
fix(license): change schema to allow updating license to different type
...
Before this change, if a license in `emqx.conf` was of type
`key`/`file` and then changed to the opposite type, such change would
be saved to `{cluster,local}-overrides.conf`. When the node restarts
after that, the configs are merged naively and becomes invalid, as it
contains both the `key` and `file` keys, and crashes.
2022-07-28 17:29:59 -03:00
DDDHuang
b7c245c5b0
fix: hstreamdb zh docs
2022-07-28 16:50:34 +08:00
DDDHuang
a4992ef1b5
fix: hstreamdb connector conf & api
2022-07-28 16:47:30 +08:00
DDDHuang
9ae7c62656
fix: exs deps & bad suites
2022-07-27 16:24:13 +08:00
DDDHuang
be6de4aad0
fix: ee bridge & connector remove app mod
2022-07-27 11:38:45 +08:00
DDDHuang
fa4bc921ac
fix: hstream db connector & bridge, TODO: SUITE
2022-07-27 11:38:45 +08:00
DDDHuang
98b36c4681
fix: hstream db connector , TODO: start apps
2022-07-27 11:38:45 +08:00
DDDHuang
f00a7417bb
feat: hstream bridge & connector
2022-07-27 11:38:45 +08:00
DDDHuang
e4eba157c3
feat: add emqx enterprise app connector & bridge
2022-07-25 09:36:45 +08:00
Zhongwen Deng
92019e4d4c
chore: don't copy i18n.conf
2022-07-01 09:33:35 +08: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
Zaiming (Stone) Shi
c355c40ea8
refactor: call emqx_alarm:ensure_deactivated everywhere
2022-05-13 16:02:55 +02: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
Zhongwen Deng
a77bb994e1
fix: add timeout for schema json gen test
2022-04-24 12:05:07 +08:00
Zaiming (Stone) Shi
c32fc33c1a
style: cosmetic fix for code style
2022-04-23 09:48:58 +02:00
Zaiming (Stone) Shi
1c74c83f5e
fix(license): print warning at start
2022-04-22 17:44:18 +02:00
Zaiming (Stone) Shi
123e456287
feat: change default trial license
...
* Changed number of connections limit from 10 to 1000
* Added a 'deployment' field, so we know which is which when
a customer has multiple licenses
* Default expiration is 5 years
2022-04-21 08:48:37 +02:00
Zhongwen Deng
164754b182
test: dashboard ct failed with lack i18n_lang
2022-04-15 12:04:01 +08:00
Thales Macedo Garitezi
d12229700a
feat(license): port 4.4 parser to 5.0
2022-04-11 09:25:06 -03:00
ieQu1
43aa2ea481
docs(schema): Add documentation for license application
2022-04-05 10:32:24 +02:00
JianBo He
4e3fd9febd
style(license): reformat emqx_license application
2022-03-31 17:41:43 +08:00
Zaiming (Stone) Shi
93cb86d3d2
chore: make Elvis happy
2022-03-25 20:06:11 +01:00
Zaiming (Stone) Shi
1aa8299261
style: erlfmt lib-ee/emqx_enterprise_conf
2022-03-25 16:54:23 +01:00
Zaiming (Stone) Shi
793add0219
style: use a macro for 'catch'
2022-03-25 08:21:50 +01:00
Zaiming (Stone) Shi
7923f017be
style(elvis): avoid using if
2022-03-25 07:25:02 +01:00
Zaiming (Stone) Shi
4f396cceb8
style(emqx_license): erlfmt refomrat apps/emqx_license
2022-03-25 07:13:08 +01:00
Zaiming (Stone) Shi
4e64010a3b
build: more structured build info
2022-03-02 21:22:03 +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
4a336b6b4e
test: add eunit test for schema dump
2022-02-28 10:47:10 +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
zhongwencool
c88504f918
Merge pull request #7023 from zhongwencool/license-alarm-support
...
License alarm support
2022-02-17 22:09:51 +08:00
Zhongwen Deng
001b209811
fix(license): don't do not lose watermark fields.
2022-02-17 15:49:41 +08:00
Zhongwen Deng
7853eb75df
fix(license): fix crash update license.watermark.
2022-02-17 15:05:22 +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
ea1bf58a2d
Merge pull request #7033 from zmstone/feat-emqx-license-allow-comma-in-numbers
...
feat(emqx_license): allow comma in integer numbers in license body
2022-02-16 17:31:34 +01:00
Zaiming (Stone) Shi
fa9300e875
feat(emqx_license): allow comma in integer numbers in license body
2022-02-16 15:37:24 +01:00
zhongwencool
d900418ce2
fix(license): fix maps:get/2 crash
2022-02-16 18:15:47 +08:00
zhongwencool
98b2cd683b
fix: dialyzer warning
2022-02-16 17:41:51 +08:00
zhongwencool
34fe5082c4
fix(schema): schema global validations not working
2022-02-16 14:20:15 +08:00
zhongwencool
ea558b2bc5
feat(license): license expriy early alarm.
2022-02-16 12:31:25 +08:00
Zaiming (Stone) Shi
2e94880bb6
docs: More EMQ X -> EMQX rename in descriptive strings
2022-02-15 22:39:11 +01:00
Zaiming (Stone) Shi
667d66eb1e
docs(README): EMQ X -> EMQX
2022-02-15 16:19:26 +01:00
Zaiming (Stone) Shi
bc67ede384
chore: update to use official pub key for 5.0 license
2022-02-15 14:22:14 +01:00
Zaiming (Stone) Shi
7494c47919
test: change to use ec keys for testing
2022-02-15 13:51:56 +01:00
Zaiming (Stone) Shi
c8c7ad896e
refactor(emqx_license): test with pem format input
...
no need to perform der encode/decode for pub key
2022-02-15 10:39:30 +01:00
Zaiming (Stone) Shi
0f09e7bbd2
test(emqx_license): no need to meck public key for tests
2022-02-15 00:39:10 +01:00
Ilya Averyanov
b7aac96282
Merge pull request #6975 from savonarola/emqx-license-early-check
...
feature(license): check license before node start
2022-02-14 15:02:48 +03:00
Ilya Averyanov
64c59b5469
feat(license): check license before node start
2022-02-11 11:49:29 +03:00
Zaiming (Stone) Shi
fc8eeb8819
fix(emqx_license): raise throw exception instead of error
2022-02-10 12:40:46 +01:00
Zaiming (Stone) Shi
cd3565d357
refactor(emqx_license): simplify parser errors
...
prior to this change, badmatch exception may cause the license key
to be dumped in logs
2022-02-10 12:40:46 +01:00
Zaiming (Stone) Shi
4cee12614b
fix: mark license key sensitive
...
so it's not logged to console when environment variable is used
2022-02-08 17:28:40 +01:00
Zaiming (Stone) Shi
ae9c8098ba
test: ensure coverage for the `no_license` case
2022-02-08 17:28:40 +01:00
Zaiming (Stone) Shi
c936706a1f
refactor(emqx_license): log a different msg when license is not loaded
2022-02-08 17:28:40 +01:00
Zaiming (Stone) Shi
319d08678e
chore: update license year
2022-02-08 17:28:40 +01:00
Ilya Averyanov
17599432d1
feat(license): add license application
2022-02-07 19:05:47 +03:00
Zaiming (Stone) Shi
7f49934216
chore: add BSL.txt
2021-12-29 13:35:49 +01:00
Zaiming Shi
6edd862dd5
refactor: no more EMQX_ENTERPRISE compile flag
...
The compile flag was introduced in EQM X 4.3 series
where CE and EE code was diverged large enough which made
non-practicle to determin edition at runtime.
such approach made testing quite challenging as we'll have to
build with different compile flags inorder to run per-edition
test cases
In this commit, we try to retrieve edition info from EMQX's
description text, (put to PT for fast access) at runtime
so we can test ALL editions from a super-set edition (EE).
2021-11-20 20:41:06 +01:00