Commit Graph

7893 Commits

Author SHA1 Message Date
Zaiming Shi 92d5f4b3b2 test: fix emqx_config_SUITE 2021-10-27 21:47:59 -07:00
Zaiming Shi 54223e4fe6 fix(schema): add roots for emqx_zone_schema
emqx_zone_schema is never used at root level, but for config doc
generation, it needs the roots.
2021-10-27 21:47:59 -07:00
Zaiming Shi 0531a1925c docs: authenticator_config ref link to the struct 2021-10-27 21:47:59 -07:00
Zaiming Shi 1b56fba471 chore: pin hocon 0.20.5
for two changes:
default string values are filled with binary() instead of [integer()]
better reference links in config document
2021-10-27 21:47:59 -07:00
JimMoen 147e2e911f chore(dashboard): update version for dashboard 2021-10-27 21:47:59 -07:00
zhongwencool 1d24e46ece Rewrite http api with hocon schema (#5980)
* feat: rewrite http api with hocon

* fix: crash when default_username is empty

* chore: udpate rewrite api with emqx_conf's cluster_rpc

* fix: spec wrong
2021-10-27 21:47:59 -07:00
zhanghongtong d78fbc5a8a chore(CI): rename image 2021-10-27 21:47:59 -07:00
zhanghongtong 595598916f chore(CI): fix build docker error 2021-10-27 21:47:59 -07:00
zhanghongtong cde614aad8 build(docker): use ghcr image for build docker 2021-10-27 21:47:59 -07:00
zhanghongtong 7364e821b8 chore(CI): change otp version for docker compose file
Signed-off-by: zhanghongtong <rory-z@outlook.com>
2021-10-27 21:47:59 -07:00
zhanghongtong 2b7e93f55f chore(CI): use concurrency to cancel in-progress workflows 2021-10-27 21:47:59 -07:00
zhanghongtong b0e579fcd8 chore(CI): change otp version for workflows 2021-10-27 21:47:59 -07:00
k32 15205942e0 chore(xref): Extend the list of forbidden Mnesia APIs 2021-10-27 21:47:59 -07:00
Ilya Averyanov c9a0c37dbb style(behaviour attrs): unify behaviour declarations 2021-10-27 21:47:59 -07:00
zhongwencool d2fc66f436 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-27 21:47:59 -07:00
k32 6697b9fa42 fix(emqx_machine): Fix start/stop callbacks (#5969)
* fix(emqx_machine): Fix start/stop callbacks

* chore(ekka): Bump version to 0.11.1

* fix(router): Wait for the tables

* fix(emqx_cluster_rpc): Stop cluster RPC when joining a cluster

* fix(emqx_app): Fix a deadlock when joining the cluster

* fix(emqx_telemetry): Wait for mnesia tables

* test(ct_helper): Start ekka before emqx
2021-10-27 21:47:59 -07:00
Zaiming Shi 2f2a093150 refactor(authn): make schema doc generation work 2021-10-27 21:47:59 -07:00
Zaiming Shi efca545d3d fix(authn): allow single authenticator instance from config 2021-10-27 21:47:59 -07:00
Zaiming Shi 1c22c0d596 fix(authn): rename config key http-server to http 2021-10-27 21:47:59 -07:00
Zaiming Shi c0364ad5a2 refactor(emqx_config_handler): async remove 2021-10-27 21:47:59 -07:00
Zaiming Shi 6d9b3ed341 feat: support check_config callback for authenticator provider 2021-10-27 21:47:59 -07:00
Zaiming Shi 494bac419d fix: fill string fields' default value with binary 2021-10-27 21:47:59 -07:00
Zaiming Shi 835539364e refactor(authn): check authenticator config with provider module
mainly two changes:

1. the schema is simplified at root level, per-authenticator checks
   are done after the type can be identified
2. the config handling part is split out from emqx_authentication
   module to emqx_authentication_config module
2021-10-27 21:47:59 -07:00
zhouzb 4b8bd8e562 chore(deps): unify version of hocon 2021-10-27 21:47:59 -07:00
zhouzb fc1e4893a8 chore(deps): update version of hocon 2021-10-27 21:47:59 -07:00
zhouzb 257bc353a4 fix(authn): fix placeholders are not replaced correctly 2021-10-27 21:47:59 -07:00
William Yang 0d38b75bb2 feat(olp): bump to 0.1.2
remove noop logging
2021-10-27 21:47:59 -07:00
k32 6ef68f8e2c fix(mria): Replace mnesia calls with mria 2021-10-27 21:47:59 -07:00
k32 fca7fd755d fix(emqx_alarm): Wait for tables 2021-10-27 21:47:59 -07:00
k32 760d896d9d fix(dialyzer): Fix problems found by dialyzer 2021-10-27 21:47:59 -07:00
k32 69126fede6 fix(mria): Fix startup sequence 2021-10-27 21:47:59 -07:00
k32 887544c3c1 chore(ct): ekka_mnesia -> mria_mnesia 2021-10-27 21:47:59 -07:00
k32 d224687de2 fix(mria): Hook up mria to emqx_machine 2021-10-27 21:47:58 -07:00
k32 e182a5f38c chore(mria): Remove the obsolete annotiation 2021-10-27 21:47:58 -07:00
k32 1a473bb73b chore(mria): ekka_rlog -> mria_rlog 2021-10-27 21:47:58 -07:00
k32 3e8b9ff76a chore(mria): Get rid of copy_mnesia callback 2021-10-27 21:47:58 -07:00
k32 22858eb845 chore(mria): ekka_mnesia:start/stop -> mria:start/stop 2021-10-27 21:47:58 -07:00
k32 814623edae chore(mria): ekka_mnesia:create_table -> mria:create_table 2021-10-27 21:47:58 -07:00
k32 75c9267473 chore(mria): Fix clear_table and ro_transaction calls 2021-10-27 21:47:58 -07:00
k32 ae71bdc0fe chore(mria): ekka_mnesia:running_nodes -> mria:running_nodes 2021-10-27 21:47:58 -07:00
k32 fd482e2ec0 chore(mria): Rename module: ekka_mnesia -> mria 2021-10-27 21:47:58 -07:00
zhanghongtong 591b704f65 chore(CI): better build docker image 2021-10-27 21:47:58 -07:00
zhanghongtong 4fb303e4aa ci: change emqx-ci-helper version for build workflows 2021-10-28 09:22:53 +08:00
Tobias Lindahl 48c7788d6f
Merge pull request #5875 from emqx/extend-persistent-sessions
Extend persistent sessions
2021-10-27 09:12:13 +02:00
zhouzb a712daaebc fix(authn): fix bad list comprehension 2021-10-27 15:08:02 +08:00
William Yang 5e6dab435a perf(pool): authz http example pool_type to hash 2021-10-27 08:48:41 +02:00
William Yang 9c8cd6c437 perf(pool): change emqx_connector default pool type to hash 2021-10-27 08:47:02 +02:00
William Yang 34979c51d7 perf(config): emqx_bridge default hash pool 2021-10-27 08:45:13 +02:00
William Yang 1c93331e34 perf(pool): emqx_authn_http pool type hash 2021-10-27 08:43:34 +02:00
William Yang edc1581b4b perf(pool): change emqx_retainer_pool type to hash 2021-10-27 08:26:02 +02:00