firest
d4df2ddf25
feat(banned): session will be kicked when client is banned by `clientid`
2023-02-03 15:32:42 +08:00
firest
3973fff23f
fix: the exclusive topics aren't removed when the session has already been cleaned
2023-02-01 17:23:53 +08:00
Thales Macedo Garitezi
cac3f44cdc
Merge pull request #9744 from thalesmg/test-crl-revoke-then-refresh-v44
...
test(crl): add test case for revoke-then-refresh (v4.4)
2023-01-13 18:14:55 -03:00
Thales Macedo Garitezi
f08aa9f5f5
test(crl): add test case for revoke-then-refresh (v4.4)
...
Investigation for https://github.com/emqx/emqx/issues/9732 .
Apparently, there is no problem if a CRL is cached without
revocations, a client cert is revoked, and later the CRL is refreshed.
The test case indicates that the same client can at first connect to
the server and later is denied connection because the CRL was
refreshed.
Also, we take the opportunity in this PR to refresh the test
certificate and CRL files which would expire in June 2023.
2023-01-12 11:12:22 -03:00
JimMoen
7b76982be9
test: fix a disturbed test environment `$mqtt_sub_caps`
2023-01-12 11:12:49 +08:00
Thales Macedo Garitezi
4b8d4b3583
test: fix hang when calling `ct_slave:stop` on a `slave` started node
...
Some tests use the `slave` module for better readability. But, when
shutting those nodes down, if one uses `ct_slave` on them, they will
hang. This'll make CT wait until the timetrap (default 30 min) before
failing `end_per_testcase`.
2023-01-05 15:51:54 -03:00
Zaiming (Stone) Shi
14ba75502f
chore: update copyright year
2023-01-02 14:54:38 +01:00
Zaiming (Stone) Shi
1f9b2a7e69
Merge remote-tracking branch 'origin/release-v44' into main-v4.4
2022-12-29 11:21:26 +01:00
Zaiming (Stone) Shi
2662c52a88
chore: sync test/emqx_client_SUITE.erl from ee to ce
2022-12-28 14:37:23 +01:00
Zaiming (Stone) Shi
351b1ce1a1
test: restore boot_modules to all in all SUITEs which change it
2022-12-22 12:03:03 +01:00
Zaiming (Stone) Shi
2f23f2708e
test: ensure all listeners started
2022-12-22 11:57:31 +01:00
Zaiming (Stone) Shi
d891197256
feat: add emqx_misc:safe_io_device/0
2022-12-21 19:59:34 +01:00
Thales Macedo Garitezi
8d20c5a00c
test(flaky): fix flaky test
...
```
%%% emqx_crl_cache_SUITE ==> t_empty_cache: FAILED
%%% emqx_crl_cache_SUITE ==> {{badmatch,{error,econnrefused}},
[{emqx_crl_cache_SUITE,t_empty_cache,1,
[{file,"/home/thales/dev/emqx/emqx2/test/emqx_crl_cache_SUITE.erl"},
{line,450}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1783}]},
{test_server,run_test_case_eval1,6,[{file,"test_server.erl"},{line,1292}]},
{test_server,run_test_case_eval,9,[{file,"test_server.erl"},{line,1224}]}]}
```
2022-12-07 11:32:54 -03:00
JimMoen
97bfe359d1
chore: fix typo
2022-12-07 16:01:33 +08:00
JimMoen
fe0f2bc4e7
test(session): ensure 'message.dropped' hook ran with named reason
2022-12-07 16:01:33 +08:00
Zaiming (Stone) Shi
71299a2bcf
Merge remote-tracking branch 'origin/main-v4.3' into main-v4.4
2022-11-28 10:02:29 +01:00
Zaiming (Stone) Shi
027c05af99
test(emqx_channel): fix two flaky tests
2022-11-27 13:15:06 +01:00
Thales Macedo Garitezi
5df513f277
refactor: flatten crl_cache config namespace into root
2022-11-14 09:57:04 -03:00
Thales Macedo Garitezi
0ca7492515
feat(crl): add refresh config API
2022-11-11 12:21:03 -03:00
Thales Macedo Garitezi
c9e05acb4c
fix(crl): make http timeout global for all listeners
...
We make the CRL HTTP timeout the same for all listeners for simplicity
of understanding and implementation.
2022-11-11 10:50:47 -03:00
Thales Macedo Garitezi
445e176898
refactor(crl): rename `s/enable_crl_cache/enable_crl_check/g`
2022-11-10 16:26:06 -03:00
Zaiming (Stone) Shi
fb81c35cd7
refactor: introduce emqx_const_v1 for immutable anonymous funs
2022-11-08 17:00:57 -03:00
Thales Macedo Garitezi
2b30f95dee
test(ocsp): another fix for macos openssl versions
...
Co-authored-by: Ivan Dyachkov <dev@dyachkov.org>
2022-11-08 16:45:03 -03:00
Thales Macedo Garitezi
2dcecafce6
test(fix): account for non-openssl programs
2022-11-08 15:54:41 -03:00
Thales Macedo Garitezi
bb249834f7
test(ocsp): add more tests
2022-11-08 15:46:16 -03:00
Thales Macedo Garitezi
b0e8e9dc28
refactor(crl): use cast for refreshing crls
2022-11-08 13:53:27 -03:00
Thales Macedo Garitezi
2713af507a
refactor: move OCSP options into its own section
2022-11-08 13:19:14 -03:00
Thales Macedo Garitezi
c23c534525
refactor: fix typo, add more detail, rename option to be more clear
2022-11-08 10:42:38 -03:00
Thales Macedo Garitezi
11175b55f8
fix(ocsp): allow disabling ocsp without touching url
2022-11-07 17:50:02 -03:00
Thales Macedo Garitezi
26d2ed3d31
fix(crl): allow specifying CRL URLs per listener
2022-11-07 16:42:51 -03:00
Zaiming (Stone) Shi
51a959c3b4
Merge remote-tracking branch 'origin/release-v44' into ocsp-rv44
2022-11-07 10:18:15 +01:00
Zaiming (Stone) Shi
3346f2a26c
Merge remote-tracking branch 'origin/release-v44' into 1104-ci-split-ct-runs
2022-11-04 14:34:24 +01:00
Thales Macedo Garitezi
7f4ffee7b5
feat: add jwt worker for rule actions
...
Will be used in GCP PubSub resource for EE.
2022-11-04 09:38:11 -03:00
Zaiming (Stone) Shi
2062911e3b
Merge remote-tracking branch 'origin/release-v43' into release-v44
2022-11-04 13:28:12 +01:00
Zaiming (Stone) Shi
7dfa83f3c6
Merge pull request #9223 from emqx/av/parallelCTruns
...
ci(test): test parallel CT runs on self-hosted runners
2022-11-04 12:11:54 +01:00
Zaiming (Stone) Shi
c2bc6b56ec
test: ensure all modules are loaded for takeover_SUITE
2022-11-03 20:33:00 +01:00
JianBo He
a73eb29196
chore: avoid side effects from boot modules
2022-11-04 00:41:05 +08:00
Thales Macedo Garitezi
af4141bef4
chore(oscp_crl): port OCSP and CRL features to CE repo (re4.4)
2022-11-03 10:10:16 -03:00
Zaiming (Stone) Shi
d25b614a93
Merge remote-tracking branch 'origin/release-v43' into release-v44
2022-11-03 11:43:50 +01:00
Zaiming (Stone) Shi
0ab5ac95bb
test: refactor emqx_takeover_SUITE
2022-11-02 21:09:24 +01:00
Zaiming (Stone) Shi
f4621d3c71
test: connect MQTT client with a retry
2022-11-02 20:06:26 +01:00
Zaiming (Stone) Shi
3d7dd4f738
test: ensure $mqtt_pub_caps is cleared after test run
2022-11-02 19:20:39 +01:00
Zaiming (Stone) Shi
e0db524a10
refactor: change the format of auth_order and acl_order configs
2022-11-02 11:49:55 +01:00
Ilya Averyanov
52652f6c96
feat(hooks): add config options to set explicit callback order
2022-11-01 19:39:52 +01:00
Zaiming (Stone) Shi
fd7a8064f4
Merge remote-tracking branch 'origin/release-v43' into release-v44
2022-10-19 19:25:43 +02:00
Zaiming (Stone) Shi
a163ffce7c
test: assert message receive pid is in the expected pids list
2022-10-19 18:16:38 +02:00
Zaiming (Stone) Shi
73a5462cba
fix(shared): do not redispatch shared messages for certain shutdown
...
For takeover, there should be no message re-dispatch because
the messages will be retried by the new session.
For kick, messages should not be re-dispatched for security reason.
i.e. if admin has identified that there are malicious messages
stored in persisted sessions, killing the session should not
cause messages to be re-dispatched
2022-10-19 17:21:56 +02:00
JianBo He
85aa120b06
Merge branch 'release-v43' into release-v44
2022-10-11 10:24:22 +08:00
JianBo He
2f178fa8f1
Merge branch 'release-v43' into enhance-flapping-detect
2022-10-10 09:40:49 +08:00
Zaiming (Stone) Shi
cf5f1fd78c
Merge pull request #9094 from emqx/1004-fix-wildcard-redispatch-for-shared-subs
...
chore: fix shared subscription redispatch
2022-10-09 10:32:02 +02:00