JimMoen
c5241670e0
refactor(paginate): use exported fun call `{M,F}`
2021-10-27 21:47:59 -07:00
JimMoen
2b46e16d74
fix(authz): add license headers
2021-10-27 21:47:59 -07:00
JimMoen
7a4edc0104
chore(authz): fix test suite page params
2021-10-27 21:47:59 -07:00
JimMoen
c1b737a9b2
fix(authz): authz rules page query
2021-10-27 21:47:59 -07:00
Zaiming (Stone) Shi
4eb966549e
fix: typo in apps/emqx_authz/src/emqx_authz.erl
...
Co-authored-by: Rory Z <Rory-Z@outlook.com>
2021-10-27 21:47:59 -07:00
Zaiming Shi
70491aee07
fix(authn): save certificates to certs dir
2021-10-27 21:47:59 -07:00
Zaiming Shi
bc99d5c1a6
refactor(authz): call emqx_tls_lib to save & read SSL files
2021-10-27 21:47:59 -07:00
zhanghongtong
d796f815d7
chore(authz): add more test case
2021-10-27 21:47:59 -07:00
zhanghongtong
b8de05891e
chore(authz): implement create_dry_run in other function clause
...
Signed-off-by: zhanghongtong <rory-z@outlook.com>
2021-10-27 21:47:59 -07:00
zhanghongtong
2def7e4ac2
fix(authz): fix configuration could be updated with incorrect values
...
when updating the configuration, first check with emqx_resouce:create_dry_run/2
Signed-off-by: zhanghongtong <rory-z@outlook.com>
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
6ef68f8e2c
fix(mria): Replace mnesia calls with mria
2021-10-27 21:47:59 -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
814623edae
chore(mria): ekka_mnesia:create_table -> mria:create_table
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
x1001100011
dbe45d9d6f
Merge branch 'master' into EMQX-782
2021-10-20 00:01:07 -07:00
Zaiming (Stone) Shi
e2f9b111b6
Merge pull request #5944 from Spycsh/slog
...
chore: change to structured logging under apps/emqx/authz and authn
2021-10-20 07:25:40 +02:00
Spycsh
ac51ed81b7
chore: change to structured logging under apps/emqx/authz and authn
2021-10-20 10:00:13 +08:00
Zaiming Shi
9c414096c7
test(authz): test HTTP apis for built-in-database
2021-10-20 09:17:21 +08:00
Zaiming Shi
ae854db02d
test: fix match pattern of returned rules
2021-10-20 09:17:21 +08:00
Zaiming Shi
891a185eda
test: enable emqx_authz_api_mnesia_SUITE tests
2021-10-20 09:17:21 +08:00
zhongwencool
c73205a589
Ct helpers migrate ( #5943 )
...
* chore: common test
* chore: delete emqx_ct_helpers deps
2021-10-18 13:45:52 +08:00
x1001100011
0312f07b11
Merge branch 'master' into EMQX-782
2021-10-17 20:57:01 -07:00
Tobias Lindahl
aa19c2a908
chore: Remove emqx_ct_helpers as dependency
2021-10-15 10:40:57 +02:00
zhanghongtong
674106ffa7
fix(authz api): fix error for update file type
2021-10-12 18:19:18 +08:00
zhanghongtong
084668bdd9
fix(authz): fix error in type determination when updating sources
2021-10-12 17:37:37 +08:00
lafirest
3524942766
fix: change all ~s in io format to ~ts
...
we should use unicode to replace latin1
2021-10-12 15:09:24 +08:00
x1001100011
f20d5b5395
Merge branch 'master' into EMQX-782
2021-10-11 23:44:44 -07:00
zhanghongtong
585c4892ce
fix(authz api): fix error for read cert file
2021-10-12 09:44:52 +08:00
zhanghongtong
5d1772a6b4
fix(authz api): fix error for move source when disable source
2021-10-11 14:07:10 +08:00
zhanghongtong
24b0fccba9
fix(authz): Fix no match error after deleting a source
2021-10-11 14:04:10 +08:00
zhanghongtong
7c28a3f6c1
fix(authz api): fix 404 error when no have "all" rules
2021-10-11 14:03:48 +08:00
zhanghongtong
4044fd8122
chore(authz mnesia api): update schema
...
Signed-off-by: zhanghongtong <rory-z@outlook.com>
2021-09-29 18:28:55 +08:00
zhanghongtong
dd3b91e13f
fix(authz api): fix update config error
...
Signed-off-by: zhanghongtong <rory-z@outlook.com>
2021-09-29 13:46:49 +08:00
zhanghongtong
8915f61382
fix(authz api): fix badarg error
...
Signed-off-by: zhanghongtong <rory-z@outlook.com>
2021-09-28 09:13:17 +08:00
zhanghongtong
c4e0eff772
fix(authz api): fix schema error
2021-09-28 09:13:17 +08:00
Spycsh
c3b980fde9
chore: fix Windows compilation process
2021-09-27 21:24:10 +08:00
zhanghongtong
c5494d5c90
chore(authz mnesia api): ensure built-in-database type source is disabled before purge.
2021-09-26 16:38:08 +08:00
Zaiming Shi
8b6eeef7fc
refactor(authz): use macro for cmd names
2021-09-26 16:19:47 +08:00
Zaiming Shi
65d0b70ff6
refactor(authz): simplify config update impl
2021-09-26 16:19:47 +08:00
Zaiming Shi
f18d0c7167
fix(authz): delete unused config field
...
path is not used for built-in-database type
2021-09-26 16:19:47 +08:00
zhanghongtong
7d18250a1d
chore(authz mnesia): fix dialyzer error
2021-09-26 16:19:47 +08:00
zhanghongtong
673b12a46d
chore(authz mnesia): in the mnesia table, replace atom with int
2021-09-26 16:19:47 +08:00
zhanghongtong
9b3917e0d3
chore(authz mnesia api): get method supports paging
...
Signed-off-by: zhanghongtong <rory-z@outlook.com>
2021-09-26 16:19:47 +08:00
zhanghongtong
1a02e0cfd1
feat(authz mnesia api): post accept array data
2021-09-26 16:19:47 +08:00
zhanghongtong
2dc3b51675
chore(authz): use ekka_mnesia instead of mnesia
2021-09-26 16:19:47 +08:00
zhanghongtong
b583509976
feat(authz): add authorize for mnesia
2021-09-26 16:19:47 +08:00
zhanghongtong
ed6f4895e2
feat(authz mnesia): add api
...
Signed-off-by: zhanghongtong <rory-z@outlook.com>
2021-09-26 16:19:47 +08:00