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