zhongwencool
489fb7f806
fix(trace): copy binary:encode_hex/2 from binary.erl
2021-12-30 21:38:23 +08:00
zhongwencool
43141dffee
Merge branch 'release-5.0-beta.3' into trace-formatter
2021-12-29 22:37:59 +08:00
zhongwencool
121d906992
chore(log): add SLOG/3 to add meta info
2021-12-29 14:48:48 +08:00
zhouzb
d26042703e
chore: provide prepared_query and equery
2021-12-28 09:52:31 +08:00
zhouzb
9769ddeb14
fix(authn): attempt to convert certificate content only when TLS is enabled
2021-12-24 13:40:13 +08:00
Ilya Averyanov
b8a68d7a9f
Merge pull request #6384 from savonarola/refactor-password-hashing
...
refactor(authn): unify password hashing
2021-12-14 16:21:02 +03:00
Ilya Averyanov
708d9cfc6c
refactor(authn): restore pbkdf2 password hashing functionality
2021-12-13 21:40:09 +03:00
Zaiming (Stone) Shi
41aa958ac9
refactor(authn): root type as array of union
...
Deleted the wrapping union.
i.e. previously it's
union([union([...]), array(union([...]))]).
not it's
array(union([...]))
It is after-all a lazy type, and the dynamic check allows
single-elemented arrays not to have `[]` around it.
the old union of array of union schema was just adding confusion
2021-12-11 22:20:53 +01:00
Ilya Averyanov
2b0a3e8ba3
refactor(authn): unify password hashing
2021-12-07 23:38:26 +03:00
Zaiming (Stone) Shi
68a7c096b0
Merge pull request #6362 from zmstone/emqx-config-put-raw-with-env-vars
...
fix: config put raw with env vars
2021-12-06 09:22:32 +01:00
Zaiming (Stone) Shi
89614245f6
test: use macro for authentication root name
2021-12-06 08:00:42 +01:00
Zaiming (Stone) Shi
5d3cb6ae1c
refactor(authn): align authn config root name
...
authn configs are checked independently per-auth provider,
this was to make authn providers more plugable.
in order to make environment variable overrides work for authn,
we need to have a unified view of the config layout,
no matter from root level, or partially checking per-provider
config independently, i.e. we try to use the same config envelop.
2021-12-04 09:33:14 +01:00
zhouzb
1dfc37cd18
test(authn): fix test cases
2021-12-03 15:55:34 +08:00
zhouzb
e1bcbd012c
feat(authn): support sync configuration in the cluster
2021-12-03 14:14:40 +08:00
JimMoen
68af284570
fix(authz): http source create and update
2021-12-02 10:12:10 +08:00
zhouzb
b983a18cdf
fix(auth): replace query with cmd
2021-12-01 20:24:43 +08:00
zhouzb
6b8997cbda
fix(authn): fix superuser when missing is_superuser_field
2021-12-01 09:23:36 +08:00
Ilya Averyanov
6b65151f69
Merge pull request #6325 from savonarola/test-authn-resources-scram
...
chore(authn): add SCRAM mechanism tests
2021-11-30 12:16:20 +03:00
Ilya Averyanov
e6d7e59c18
Merge pull request #6278 from savonarola/test-authn-resources-mongo
...
chore(authn): add MongoDB backend tests
2021-11-29 22:27:52 +03:00
Ilya Averyanov
390575eafb
chore(authn): add MongoDB backend tests
2021-11-29 21:17:56 +03:00
Ilya Averyanov
4580c03ebc
chore(authn): add SCRAM mechanism tests
2021-11-29 20:49:45 +03:00
Ilya Averyanov
726e25d6ae
chore(authn): add JWKS backend tests
2021-11-26 18:40:21 +03:00
zhongwencool
f697028b70
Fix ping not return pong ( #6285 )
...
* fix: ./bin/emqx ping return pong
* chore: waiting longer for logger flush log to disk
* fix: change swagger page's limit from 100 to 1000
* chore: type wrong
* fix: sync log to disk by logger_disk_log_h:filesync
2021-11-26 17:02:45 +08:00
tigercl
124ba7a071
Merge pull request #6311 from emqx/release-5.0-beta.2
...
Sync bug fixes
2021-11-26 14:24:19 +08:00
zhouzb
349fd1608b
style(authn): improve code formatting
2021-11-26 10:29:57 +08:00
Ilya Averyanov
e6c2600718
chore(authn): add HTTP backend tests
2021-11-25 15:09:13 +03:00
zhouzb
ecd3c9f85c
test(authn): add test cases for jwt authn
2021-11-25 19:03:11 +08:00
zhouzb
15654b5b28
fix(authn): add handling of invalid secret
2021-11-25 17:17:44 +08:00
zhouzb
d88bfdfe14
fix(authn): verify claims type is wrong
2021-11-25 16:42:08 +08:00
Ilya Averyanov
ac3707e4a9
fix(authn): handle authn backends own validations
2021-11-24 14:05:46 +03:00
Ilya Averyanov
8cc0b43de7
chore(authn): add MySQL & PostgreSQL backend tests
2021-11-23 11:52:51 +03:00
DDDHuang
21bd9bba55
fix: generate palce holder ( #6250 )
...
* fix: generate place holder
* style: whitespace cleanup
* refactor(authz): placeholder for athuz
* test: authz test suite for placeholder
* fix: lw place holder suite
* fix: auth n redis suite
Co-authored-by: JimMoen <LnJimMoen@outlook.com>
2021-11-23 10:56:43 +08:00
Shawn
6fb464fc05
Merge pull request #6059 from tigercl/fix/ssl
...
fix(ssl): fix API returns the certificate file name instead of the certificate content
2021-11-23 10:38:12 +08:00
JianBo He
50542ec441
Merge pull request #6248 from HJianBo/gw-improve-apis-1
...
Add authentication data management APIs for gateway
2021-11-23 09:12:04 +08:00
zhouzb
2b282b9666
fix(ssl): Return the content of certificates in HTTP response
2021-11-22 23:30:05 +01:00
Ilya Averyanov
071c2c99e8
refactor(authn resources): add `emqx_resource` and `emqx_authn` tests
2021-11-22 21:08:04 +03:00
JianBo He
1e2eac0fce
test(gw): add tests for authm data-mgmt
2021-11-22 17:38:59 +08:00
JianBo He
4f752fb5ab
chore(gw): fix elvis warnings
2021-11-22 17:38:59 +08:00
JianBo He
f033fad7b3
refactor(gw): deps on emqx_dasboard_swagger
2021-11-22 17:38:59 +08:00
Shawn
f0c61068e8
fix(authn): test cases issues
2021-11-22 17:35:33 +08:00
tigercl
6da039cf4f
Merge pull request #6231 from tigercl/fix/http-authn
...
fix(authn): fix pick worker error and match more http response
2021-11-22 09:10:44 +08:00
Ilya Averyanov
c86887491c
fix(authn): transfer chain tab to emqx_authentication_sup
...
To preserve configuration after emqx_authentication crashes.
2021-11-19 16:41:22 +03:00
zhouzb
980a6ceae9
fix(authn): fix pick worker error and match more http response
2021-11-19 11:19:52 +08:00
DDDHuang
7c48bcabed
fixt: generate api ( #6124 )
...
* fix: generate api
* fix: banned suite
* fix: generate api bad rpc
* fix: bad message suite
* fix: create banned with check existed
2021-11-17 10:55:48 +08:00
JimMoen
c05ecdbcb8
fix(api): DELETE success wrongly returned code 200 ( #6135 )
2021-11-16 09:28:57 +08:00
Zaiming (Stone) Shi
9761fe2f6d
Merge pull request #6009 from tigercl/fix/authn
...
fix(authn): fix handling of query result
2021-11-15 13:32:56 +01:00
JimMoen
106aa559e0
fix(api): DELETE success wrongly returned code 200
2021-11-15 16:30:44 +08:00
Ilya Averyanov
4f0311b6f8
Merge pull request #6093 from savonarola/add-authn-tests
...
chore(authn mnesia): reimplement emqx_authn_mnesia provider tests
2021-11-10 21:20:46 +03:00
Ilya Averyanov
a0a88e23b0
chore(authn mnesia): reimplement emqx_authn_mnesia provider tests
2021-11-10 17:13:04 +03:00
Ilya Averyanov
a84b84aac9
refactor(authn api): reformat for elvis compliance
2021-11-05 19:36:26 +03:00