Commit Graph

9 Commits

Author SHA1 Message Date
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 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
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
Thales Macedo Garitezi d12229700a
feat(license): port 4.4 parser to 5.0 2022-04-11 09:25:06 -03:00
Zaiming (Stone) Shi 4f396cceb8 style(emqx_license): erlfmt refomrat apps/emqx_license 2022-03-25 07:13:08 +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
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 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
Ilya Averyanov 17599432d1 feat(license): add license application 2022-02-07 19:05:47 +03:00