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
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
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
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
4f396cceb8
style(emqx_license): erlfmt refomrat apps/emqx_license
2022-03-25 07:13:08 +01: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
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
c936706a1f
refactor(emqx_license): log a different msg when license is not loaded
2022-02-08 17:28:40 +01:00
Ilya Averyanov
17599432d1
feat(license): add license application
2022-02-07 19:05:47 +03:00