zhanghongtong
11c90cfce4
fix(authz api): fix file type error
2021-09-26 12:35:35 +08:00
zhanghongtong
d1e85e8d00
feat(authz): acl.conf is compatible with the 4.x syntax
2021-09-24 09:59:45 +08:00
zhanghongtong
4f0684e887
chore(authz api): delete healthy status for get method
2021-09-24 09:20:54 +08:00
zhanghongtong
9ac1e9fcd9
chore(authz api): use raw config for get method
2021-09-23 16:33:06 +08:00
zhanghongtong
00d7d66871
chore(authz): rename mongo to mongodb
2021-09-22 11:28:31 +08:00
JimMoen
6edc9f4221
fix(emqx_types): spec refs `emqx_types.erl` instead directly.
2021-09-17 19:28:22 +08:00
tigercl
fdbde321cd
Merge pull request #5742 from tigercl/chore/gen_id
...
chore(gen_id): using emqx_misc:gen_id/0, /1
2021-09-17 09:24:42 +08:00
zhanghongtong
fa467d0741
chore(authz): rename pgsql to postgresql
...
Signed-off-by: zhanghongtong <rory-z@outlook.com>
2021-09-17 09:16:38 +08:00
zhouzb
9df842eeb8
fix(test): fix test case of authz
2021-09-16 16:51:52 +08:00
zhouzb
43ce727632
chore(gen_id): using emqx_misc:gen_id/0, /1
2021-09-16 16:51:46 +08:00
JimMoen
deac54c847
chore(for editor): Add comments for Emacs major mode.
2021-09-16 15:43:30 +08:00
zhanghongtong
129a171de2
chore(authz): api returns the original content of the file
...
Signed-off-by: zhanghongtong <rory-z@outlook.com>
2021-09-16 13:40:16 +08:00
zhanghongtong
ca4b1ca3b5
fix(auth mnesia api): fix the issue of missing line breaks in multi-line rules
2021-09-16 13:40:16 +08:00
Shawn
304c5613ac
refactor(resource): rename the emqx_resource:update/4 to recreate/4
2021-09-15 17:46:42 +08:00
zhanghongtong
c322957257
chore(authz): fix spelling errors
2021-09-14 11:16:47 +08:00
zhanghongtong
4fa816fa97
fix(auth mnesia api): fix api error when delete sources
2021-09-13 19:55:39 +08:00
zhanghongtong
d443d26fce
fix(auth mnesia api): fix api error for file type
2021-09-13 17:13:30 +08:00
tigercl
09c376c1e5
Merge pull request #5707 from terry-xiaoyu/bridge_apis
...
feat(bridges): avoid clientid competition between bridges on differen…
2021-09-10 19:32:20 +08:00
zhanghongtong
6095253126
chore(emqx_authz): delete put for http type
2021-09-10 19:27:10 +08:00
zhanghongtong
ef0f94025a
chore(emqx_authz): rename config item
...
rename sql to query for mysql and pgsql
rename find to selector for mongo
Signed-off-by: zhanghongtong <rory-z@outlook.com>
2021-09-10 19:27:10 +08:00
tigercl
78397329e8
Merge pull request #5684 from tigercl/chore/authn
...
chore(authn): provide easy-to-read hints for more errors
2021-09-10 19:04:11 +08:00
zhanghongtong
75b77b77b6
chore(emqx_authz api): change rules type from list to string in http api
2021-09-10 19:03:33 +08:00
zhouzb
6b521acd6f
fix(authn): fix type error for http headers
2021-09-10 17:31:16 +08:00
Shawn
d46241fe2f
feat(bridges): avoid clientid competition between bridges on different nodes
2021-09-10 14:21:17 +08:00
zhanghongtong
718dd80b48
fix(auth mnesia api): fix write file error
2021-09-09 15:03:17 +08:00
zhanghongtong
0813a81517
fix(auth mnesia api): fix put file type error
2021-09-09 15:03:17 +08:00
zhanghongtong
3be6374f91
fix(auth mnesia api): fix get file type error
2021-09-09 15:03:17 +08:00
zhanghongtong
1699a8dc63
chore(authz): rename authorization_rules.conf to acl.conf
2021-09-07 14:42:05 +08:00
Zaiming Shi
19aff7bfdd
fix(authz): schema fields used directly.
2021-09-03 14:58:49 +02:00
Zaiming Shi
ec13463f4a
refactor(schema): prepare for hocon schema doc generation
2021-09-03 11:02:31 +02:00
zhanghongtong
ffbf9b0fab
feat(authz): check for duplicate source types
...
Signed-off-by: zhanghongtong <rory-z@outlook.com>
2021-09-03 15:49:42 +08:00
Shawn
daca99f0f6
feat(config): add option 'persistent => boolean()' to emqx:update_config/3
2021-09-03 10:42:12 +08:00
zhanghongtong
c6ed72df3e
chore(authz api): update swagger json
...
Signed-off-by: zhanghongtong <rory-z@outlook.com>
2021-09-02 18:06:10 +08:00
zhanghongtong
0fd18a2795
chore(emqx_authz): compression configuration items
...
Signed-off-by: zhanghongtong <rory-z@outlook.com>
2021-09-02 15:28:17 +08:00
Rory Z
5669ea4034
chore(authz api): fix dialyzer error
2021-09-02 11:31:21 +08:00
zhanghongtong
b8ee977d9d
feat(authz api): support read cert file for api
2021-09-02 11:31:21 +08:00
zhanghongtong
07dcd9e705
feat(authz api): support file type for sources
2021-09-02 11:31:21 +08:00
zhanghongtong
8252771306
feat(authz api): support upload ssl cert file for api
2021-09-02 11:31:21 +08:00
zhanghongtong
ef1b617624
feat(authz api): support '/authorization/settings' api and update swagger schema
...
Signed-off-by: zhanghongtong <rory-z@outlook.com>
2021-09-01 13:34:02 +08:00
Rory Z
c0eaa30064
chore(emqx_authz): change api path
2021-08-31 17:39:32 +08:00
zhanghongtong
6b313a60d4
refactor: refactor emqx_authz
...
Signed-off-by: zhanghongtong <rory-z@outlook.com>
2021-08-31 17:39:32 +08:00
Zaiming Shi
77aca28d87
fix(emqx_authz): call matches with rules input
2021-08-30 09:56:03 +08:00
Zaiming Shi
84ed368d41
refactor(emqx_authz): use module name builder functions
2021-08-30 09:56:03 +08:00
Zaiming Shi
ce1772c2b5
fix(emqx_authz): fix typo in authz annotation key
...
rule -> rules
2021-08-30 09:56:03 +08:00
Zaiming Shi
5165fd6b30
refactor(schema): implement new hocon_schema callbacks
2021-08-30 09:56:03 +08:00
zhanghongtong
46fb99d44e
chore(emqx_authz): rename rules to sources in emqx_authz
2021-08-27 17:51:11 +08:00
Zaiming (Stone) Shi
c64af6a78c
Merge pull request #5532 from zhongwencool/master
...
feat(emqx_cluster_call): ensure the consistency of resources
2021-08-27 09:40:31 +02:00
zhanghongtong
f03fc88161
chore(emqx_authz): fix test cases error
...
Signed-off-by: zhanghongtong <rory-z@outlook.com>
2021-08-27 15:08:56 +08:00
zhanghongtong
f2e29184de
chore(emqx_authz): use new config path
2021-08-27 15:08:56 +08:00
zhanghongtong
6f8c87001f
chore(authz): add default config
...
Signed-off-by: zhanghongtong <rory-z@outlook.com>
2021-08-27 15:08:56 +08:00
zhanghongtong
4594d2d42b
chore(authorization): merge authorization in emqx and emqx_authz
2021-08-27 15:08:56 +08:00
DDDHuang
86231f795d
refactor: close managment http 8081 ( #5564 )
2021-08-27 13:46:39 +08:00
zhongwencool
c1c24af002
fix: dialyzer warning
2021-08-27 10:09:26 +08:00
Shawn
436dba83b8
feat(logger): update configs for logger at runtime
2021-08-26 18:31:44 +08:00
zhongwencool
73238ed81f
feat: emqx_resource support cluster_call
2021-08-26 17:23:39 +08:00
Shawn
cc56c74964
refactor(emqx): update the tests for the new zone,listener config
2021-08-26 09:11:30 +08:00
Rory Z
7e8dde7e26
chore: fix dialyzer error
...
Signed-off-by: zhanghongtong <rory-z@outlook.com>
2021-08-25 10:15:00 +08:00
zhanghongtong
a2bafd1a18
feat(authz): support authorization config file part 2
2021-08-25 10:15:00 +08:00
zhanghongtong
a7fac1a7a3
feat(authz): support authorization config file part 1.
2021-08-25 10:15:00 +08:00
zhanghongtong
bfb363bc61
chore(emqx_authz): rename authorization to authorization_rules in emqx_authz.conf
2021-08-25 10:15:00 +08:00
Turtle
bc325e55fc
fix(authn-authz-api): fix authn/authz test cases fail
2021-08-24 18:19:21 +08:00
Turtle
e0c05242a7
refactor(minirest-callback): refactor minirest callback function
2021-08-24 18:19:21 +08:00
Shawn
f3efc89192
refactor(config): replace all ':' with '=' in the *.conf ( #5531 )
2021-08-19 19:57:42 +08:00
Shawn
e8e95d39ef
refactor(config): move emqx_config:get/get_raw to emqx:get_config/get_raw_config ( #5517 )
2021-08-18 14:52:57 +08:00
Shawn
bf6251e20f
refactor(config): update the return values of config handlers
2021-08-18 09:42:06 +08:00
Shawn
bd8263e324
refactor(config): move APIs for config update,remove,reset to emqx
...
Move the emqx_config:update,remove,reset APIs to emqx, to remove
the circular dependency between the modules emqx_config and
emqx_config_handler.
After this change the dependency among these modules will be:
```
emqx ---> emqx_config
| ^
| |
+ ---> emqx_conifg_handler
```
2021-08-18 09:42:06 +08:00
Shawn
988d620421
fix(test): mock emqx_resource:remove/1 in emqx_authz_http_SUITE
2021-08-16 17:41:53 +08:00
Shawn
7f03cd0e8b
fix(config): update the calls to emqx_config:update/2,3
2021-08-16 17:41:53 +08:00
Shawn
b381b5d2b9
feat(emqx_config): return config maps when emqx_config:update/2,3
2021-08-16 17:41:53 +08:00
Shawn
4bf1e83449
fix(test): variable 'Id' shadowed in 'fun'
2021-08-12 17:20:05 +08:00
zhanghongtong
a94bfaf28b
feat(authz api): support move rule position
...
Signed-off-by: zhanghongtong <rory-z@outlook.com>
2021-08-11 18:23:22 +08:00
zhanghongtong
632cc895d5
chore(authz): formatting error returned
...
Signed-off-by: zhanghongtong <rory-z@outlook.com>
2021-08-11 11:06:58 +08:00
zhanghongtong
69a0fafd6b
feat(authz api): get api support paging
...
Signed-off-by: zhanghongtong <rory-z@outlook.com>
2021-08-11 11:06:58 +08:00
zhanghongtong
c821528af9
feat(authz api): full CURD api
2021-08-11 11:06:58 +08:00
zhanghongtong
4bb1e9c964
feat(authz): more better update function
...
Signed-off-by: zhanghongtong <rory-z@outlook.com>
2021-08-11 11:06:58 +08:00
zhanghongtong
c26ec5c0dd
feat(authz): support api
...
Signed-off-by: zhanghongtong <rory-z@outlook.com>
2021-08-11 11:06:58 +08:00
Zaiming Shi
781de7f2a7
test(authz): ensure config cleaned up after test
2021-08-04 08:40:09 +02:00
Zaiming Shi
5d59ac1f02
refactor(logging): delete log headers from all modules
2021-08-01 09:36:59 +02:00
Zaiming Shi
40faa31241
test(authz): no need to mock emqx_config
2021-07-30 16:53:21 +08:00
Shawn
054623bd56
fix(authz): update the post_config_update callback
2021-07-30 15:37:09 +08:00
Zaiming Shi
9dcb725898
fix(emqx_authz): update config with own schema module
2021-07-30 09:18:43 +08:00
Zaiming Shi
c0ffbd68c8
test(emqx_authz): adjust meck and app start order
2021-07-29 13:32:57 +02:00
zhanghongtong
4c6739161d
chore(emqx authz): rename root name for authz conf
...
Signed-off-by: zhanghongtong <rory-z@outlook.com>
2021-07-29 16:44:40 +08:00
zhanghongtong
4ef00072b9
chore(authz): add annotations for rules
...
Signed-off-by: zhanghongtong <rory-z@outlook.com>
2021-07-29 16:44:40 +08:00
Turtle
4afae79be9
chore(statsd): update statsd conf root
2021-07-29 10:08:07 +08:00
zhanghongtong
c1cbd8ece4
feat(authz): add enable config for connectot in config file
...
Signed-off-by: zhanghongtong <rory-z@outlook.com>
2021-07-27 13:39:28 +08:00
zhanghongtong
8ba0890ce5
feat(authz): add id for every rule
2021-07-27 13:39:28 +08:00
zhanghongtong
4c5b75f281
chore: rename acl to authz
...
Signed-off-by: zhanghongtong <rory-z@outlook.com>
2021-07-26 16:10:33 +08:00
Shawn
935ef0db20
fix(config): rename callback functions for emqx_config_handler
2021-07-23 18:56:30 +08:00
Shawn
bbf40a85bf
fix(config): merge conflicts
2021-07-23 18:49:09 +08:00
Shawn
2ddcfdf365
refactor(config): rename emqx_config:update_config/2 to emqx_config:update/2
2021-07-23 17:25:39 +08:00
Shawn
f2e62def1b
refactor(config): remove emqx:get_env/1,2 from testcases
2021-07-23 10:56:20 +08:00
zhanghongtong
32eabf041e
chore(authz): update url type for authz schema
2021-07-21 13:47:35 +08:00
zhanghongtong
358db0320b
fix(authz): fix a re:replace error when username is undefined
2021-07-19 15:31:07 +08:00
Shawn
6915d9abeb
fix(authz): update testcases for emqx_authz
2021-07-17 16:59:31 +08:00
Shawn
1d2cb6cb81
Merge branch 'master' into emqx_config
2021-07-17 15:53:12 +08:00
zhanghongtong
bb417e4498
feat(authz): support http
...
Signed-off-by: zhanghongtong <rory-z@outlook.com>
2021-07-17 15:48:29 +08:00
Turtle
89f10d3902
fix(test): fix check emqx management test cases fail
2021-07-17 15:40:18 +08:00
Shawn
f7f2523030
fix(dialyzer): handle undefined conf in post_update_config/2
2021-07-17 10:38:30 +08:00
Shawn
7a77f4f54e
fix(emqx_schema): start emqx as standalone app failed
2021-07-17 10:19:06 +08:00