esl / MongooseIM

MongooseIM is Erlang Solutions' robust, scalable and efficient XMPP server, aimed at large installations. Specifically designed for enterprise purposes, it is fault-tolerant and can utilise the resources of multiple clustered machines.
Other
1.64k stars 421 forks source link

Feature/sasl2 #4131

Closed NelsonVides closed 8 months ago

NelsonVides commented 8 months ago

This adds SASL2 to master, together with BIND2, and inline features for carbons, csi, and stream-management.

mongoose-im commented 8 months ago

elasticsearch_and_cassandra_25 / elasticsearch_and_cassandra_mnesia / aa5425aae0ef30f3a8312549027913e4ac6a8c8e Reports root/ big OK: 369 / Failed: 0 / User-skipped: 38 / Auto-skipped: 0


small_tests_24 / small_tests / aa5425aae0ef30f3a8312549027913e4ac6a8c8e Reports root / small


small_tests_25 / small_tests / aa5425aae0ef30f3a8312549027913e4ac6a8c8e Reports root / small


small_tests_25_arm64 / small_tests / aa5425aae0ef30f3a8312549027913e4ac6a8c8e Reports root / small


ldap_mnesia_24 / ldap_mnesia / aa5425aae0ef30f3a8312549027913e4ac6a8c8e Reports root/ big OK: 2301 / Failed: 0 / User-skipped: 837 / Auto-skipped: 0


ldap_mnesia_25 / ldap_mnesia / aa5425aae0ef30f3a8312549027913e4ac6a8c8e Reports root/ big OK: 2301 / Failed: 0 / User-skipped: 837 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / aa5425aae0ef30f3a8312549027913e4ac6a8c8e Reports root/ big OK: 4266 / Failed: 0 / User-skipped: 84 / Auto-skipped: 0


dynamic_domains_mysql_redis_25 / mysql_redis / aa5425aae0ef30f3a8312549027913e4ac6a8c8e Reports root/ big OK: 4234 / Failed: 0 / User-skipped: 116 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / aa5425aae0ef30f3a8312549027913e4ac6a8c8e Reports root/ big OK: 4266 / Failed: 0 / User-skipped: 84 / Auto-skipped: 0


dynamic_domains_mssql_mnesia_25 / odbc_mssql_mnesia / aa5425aae0ef30f3a8312549027913e4ac6a8c8e Reports root/ big OK: 4263 / Failed: 0 / User-skipped: 87 / Auto-skipped: 0


internal_mnesia_25 / internal_mnesia / aa5425aae0ef30f3a8312549027913e4ac6a8c8e Reports root/ big OK: 2451 / Failed: 0 / User-skipped: 687 / Auto-skipped: 0


pgsql_mnesia_25 / pgsql_mnesia / aa5425aae0ef30f3a8312549027913e4ac6a8c8e Reports root/ big OK: 4655 / Failed: 0 / User-skipped: 91 / Auto-skipped: 0


pgsql_cets_25 / pgsql_cets / aa5425aae0ef30f3a8312549027913e4ac6a8c8e Reports root/ big OK: 4625 / Failed: 0 / User-skipped: 121 / Auto-skipped: 0


mysql_redis_25 / mysql_redis / aa5425aae0ef30f3a8312549027913e4ac6a8c8e Reports root/ big OK: 4635 / Failed: 0 / User-skipped: 111 / Auto-skipped: 0


mssql_mnesia_25 / odbc_mssql_mnesia / aa5425aae0ef30f3a8312549027913e4ac6a8c8e Reports root/ big OK: 4652 / Failed: 0 / User-skipped: 94 / Auto-skipped: 0

mongoose-im commented 8 months ago

elasticsearch_and_cassandra_25 / elasticsearch_and_cassandra_mnesia / 8c6e64a3d2adf8f896dea2bbffd575e0696722e9 Reports root/ big OK: 369 / Failed: 0 / User-skipped: 38 / Auto-skipped: 0


small_tests_24 / small_tests / 8c6e64a3d2adf8f896dea2bbffd575e0696722e9 Reports root / small


small_tests_25 / small_tests / 8c6e64a3d2adf8f896dea2bbffd575e0696722e9 Reports root / small


small_tests_25_arm64 / small_tests / 8c6e64a3d2adf8f896dea2bbffd575e0696722e9 Reports root / small


ldap_mnesia_24 / ldap_mnesia / 8c6e64a3d2adf8f896dea2bbffd575e0696722e9 Reports root/ big OK: 2301 / Failed: 0 / User-skipped: 837 / Auto-skipped: 0


ldap_mnesia_25 / ldap_mnesia / 8c6e64a3d2adf8f896dea2bbffd575e0696722e9 Reports root/ big OK: 2301 / Failed: 0 / User-skipped: 837 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / 8c6e64a3d2adf8f896dea2bbffd575e0696722e9 Reports root/ big OK: 4266 / Failed: 0 / User-skipped: 84 / Auto-skipped: 0


dynamic_domains_mysql_redis_25 / mysql_redis / 8c6e64a3d2adf8f896dea2bbffd575e0696722e9 Reports root/ big OK: 4234 / Failed: 0 / User-skipped: 116 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / 8c6e64a3d2adf8f896dea2bbffd575e0696722e9 Reports root/ big OK: 4266 / Failed: 0 / User-skipped: 84 / Auto-skipped: 0


dynamic_domains_mssql_mnesia_25 / odbc_mssql_mnesia / 8c6e64a3d2adf8f896dea2bbffd575e0696722e9 Reports root/ big OK: 4263 / Failed: 0 / User-skipped: 87 / Auto-skipped: 0


internal_mnesia_25 / internal_mnesia / 8c6e64a3d2adf8f896dea2bbffd575e0696722e9 Reports root/ big OK: 2451 / Failed: 0 / User-skipped: 687 / Auto-skipped: 0


pgsql_mnesia_24 / pgsql_mnesia / 8c6e64a3d2adf8f896dea2bbffd575e0696722e9 Reports root/ big OK: 4655 / Failed: 0 / User-skipped: 91 / Auto-skipped: 0


pgsql_cets_25 / pgsql_cets / 8c6e64a3d2adf8f896dea2bbffd575e0696722e9 Reports root/ big OK: 4625 / Failed: 0 / User-skipped: 121 / Auto-skipped: 0


mysql_redis_25 / mysql_redis / 8c6e64a3d2adf8f896dea2bbffd575e0696722e9 Reports root/ big OK: 4634 / Failed: 1 / User-skipped: 111 / Auto-skipped: 0

vcard_SUITE:ro_full:retrieve_own_card ```erlang {error,{test_case_failed,"Expected <<\"alice\">> got undefined\n"}} ``` [Report log](https://circleci-mim-results.s3.eu-central-1.amazonaws.com/PR/4131/192427/mysql_redis.25.3-amd64/big/ct_run.test%40feafb2c784bd.2023-09-26_11.29.27/big_tests.tests.vcard_SUITE.logs/run.2023-09-26_11.47.31/vcard_suite.retrieve_own_card.html)

pgsql_mnesia_25 / pgsql_mnesia / 8c6e64a3d2adf8f896dea2bbffd575e0696722e9 Reports root/ big OK: 4655 / Failed: 0 / User-skipped: 91 / Auto-skipped: 0


mssql_mnesia_25 / odbc_mssql_mnesia / 8c6e64a3d2adf8f896dea2bbffd575e0696722e9 Reports root/ big OK: 4652 / Failed: 0 / User-skipped: 94 / Auto-skipped: 0


mysql_redis_25 / mysql_redis / 8c6e64a3d2adf8f896dea2bbffd575e0696722e9 Reports root/ big OK: 4634 / Failed: 1 / User-skipped: 111 / Auto-skipped: 0

vcard_SUITE:ro_full:retrieve_own_card ```erlang {error,{test_case_failed,"Expected <<\"alice\">> got undefined\n"}} ``` [Report log](https://circleci-mim-results.s3.eu-central-1.amazonaws.com/PR/4131/192441/mysql_redis.25.3-amd64/big/ct_run.test%40bbdbcef399b7.2023-09-26_11.53.57/big_tests.tests.vcard_SUITE.logs/run.2023-09-26_12.10.51/vcard_suite.retrieve_own_card.html)
codecov[bot] commented 8 months ago

Codecov Report

Attention: 25 lines in your changes are missing coverage. Please review.

Comparison is base (0bbe037) 83.92% compared to head (14e3bcb) 84.07%. Report is 28 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #4131 +/- ## ========================================== + Coverage 83.92% 84.07% +0.14% ========================================== Files 552 557 +5 Lines 33630 33985 +355 ========================================== + Hits 28225 28572 +347 - Misses 5405 5413 +8 ``` | [Files](https://app.codecov.io/gh/esl/MongooseIM/pull/4131?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=esl) | Coverage Δ | | |---|---|---| | [src/c2s/mongoose\_c2s\_stanzas.erl](https://app.codecov.io/gh/esl/MongooseIM/pull/4131?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=esl#diff-c3JjL2Mycy9tb25nb29zZV9jMnNfc3Rhbnphcy5lcmw=) | `100.00% <100.00%> (+3.63%)` | :arrow_up: | | [src/hooks/mongoose\_hooks.erl](https://app.codecov.io/gh/esl/MongooseIM/pull/4131?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=esl#diff-c3JjL2hvb2tzL21vbmdvb3NlX2hvb2tzLmVybA==) | `95.11% <100.00%> (+0.19%)` | :arrow_up: | | [src/mod\_carboncopy.erl](https://app.codecov.io/gh/esl/MongooseIM/pull/4131?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=esl#diff-c3JjL21vZF9jYXJib25jb3B5LmVybA==) | `91.09% <100.00%> (+0.87%)` | :arrow_up: | | [src/mod\_csi.erl](https://app.codecov.io/gh/esl/MongooseIM/pull/4131?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=esl#diff-c3JjL21vZF9jc2kuZXJs) | `100.00% <100.00%> (+1.66%)` | :arrow_up: | | [...tream\_management/mod\_stream\_management\_stanzas.erl](https://app.codecov.io/gh/esl/MongooseIM/pull/4131?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=esl#diff-c3JjL3N0cmVhbV9tYW5hZ2VtZW50L21vZF9zdHJlYW1fbWFuYWdlbWVudF9zdGFuemFzLmVybA==) | `100.00% <100.00%> (ø)` | | | [src/c2s/mongoose\_c2s\_acc.erl](https://app.codecov.io/gh/esl/MongooseIM/pull/4131?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=esl#diff-c3JjL2Mycy9tb25nb29zZV9jMnNfYWNjLmVybA==) | `85.41% <50.00%> (+0.63%)` | :arrow_up: | | [.../mongoose\_admin\_api/mongoose\_admin\_api\_metrics.erl](https://app.codecov.io/gh/esl/MongooseIM/pull/4131?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=esl#diff-c3JjL21vbmdvb3NlX2FkbWluX2FwaS9tb25nb29zZV9hZG1pbl9hcGlfbWV0cmljcy5lcmw=) | `98.03% <83.33%> (-1.97%)` | :arrow_down: | | [src/c2s/mongoose\_c2s\_sasl.erl](https://app.codecov.io/gh/esl/MongooseIM/pull/4131?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=esl#diff-c3JjL2Mycy9tb25nb29zZV9jMnNfc2FzbC5lcmw=) | `95.45% <95.45%> (ø)` | | | [.../stream\_management/mod\_stream\_management\_sasl2.erl](https://app.codecov.io/gh/esl/MongooseIM/pull/4131?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=esl#diff-c3JjL3N0cmVhbV9tYW5hZ2VtZW50L21vZF9zdHJlYW1fbWFuYWdlbWVudF9zYXNsMi5lcmw=) | `94.73% <94.73%> (ø)` | | | [src/mod\_bind2.erl](https://app.codecov.io/gh/esl/MongooseIM/pull/4131?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=esl#diff-c3JjL21vZF9iaW5kMi5lcmw=) | `93.75% <93.75%> (ø)` | | | ... and [3 more](https://app.codecov.io/gh/esl/MongooseIM/pull/4131?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=esl) | | ... and [11 files with indirect coverage changes](https://app.codecov.io/gh/esl/MongooseIM/pull/4131/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=esl)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

mongoose-im commented 8 months ago

small_tests_24 / small_tests / 14e3bcba95865d073647b12846ff9a87605d5278 Reports root / small


elasticsearch_and_cassandra_25 / elasticsearch_and_cassandra_mnesia / 14e3bcba95865d073647b12846ff9a87605d5278 Reports root/ big OK: 369 / Failed: 0 / User-skipped: 38 / Auto-skipped: 0


small_tests_25 / small_tests / 14e3bcba95865d073647b12846ff9a87605d5278 Reports root / small


small_tests_25_arm64 / small_tests / 14e3bcba95865d073647b12846ff9a87605d5278 Reports root / small


ldap_mnesia_24 / ldap_mnesia / 14e3bcba95865d073647b12846ff9a87605d5278 Reports root/ big OK: 2303 / Failed: 0 / User-skipped: 837 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / 14e3bcba95865d073647b12846ff9a87605d5278 Reports root/ big OK: 4268 / Failed: 0 / User-skipped: 84 / Auto-skipped: 0


dynamic_domains_mysql_redis_25 / mysql_redis / 14e3bcba95865d073647b12846ff9a87605d5278 Reports root/ big OK: 4236 / Failed: 0 / User-skipped: 116 / Auto-skipped: 0


ldap_mnesia_25 / ldap_mnesia / 14e3bcba95865d073647b12846ff9a87605d5278 Reports root/ big OK: 2303 / Failed: 0 / User-skipped: 837 / Auto-skipped: 0


dynamic_domains_mssql_mnesia_25 / odbc_mssql_mnesia / 14e3bcba95865d073647b12846ff9a87605d5278 Reports root/ big OK: 4265 / Failed: 0 / User-skipped: 87 / Auto-skipped: 0


dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / 14e3bcba95865d073647b12846ff9a87605d5278 Reports root/ big OK: 4268 / Failed: 0 / User-skipped: 84 / Auto-skipped: 0


pgsql_cets_25 / pgsql_cets / 14e3bcba95865d073647b12846ff9a87605d5278 Reports root/ big OK: 4627 / Failed: 0 / User-skipped: 121 / Auto-skipped: 0


mysql_redis_25 / mysql_redis / 14e3bcba95865d073647b12846ff9a87605d5278 Reports root/ big OK: 4637 / Failed: 0 / User-skipped: 111 / Auto-skipped: 0


pgsql_mnesia_25 / pgsql_mnesia / 14e3bcba95865d073647b12846ff9a87605d5278 Reports root/ big OK: 4657 / Failed: 0 / User-skipped: 91 / Auto-skipped: 0


pgsql_mnesia_24 / pgsql_mnesia / 14e3bcba95865d073647b12846ff9a87605d5278 Reports root/ big OK: 4657 / Failed: 0 / User-skipped: 91 / Auto-skipped: 0


internal_mnesia_25 / internal_mnesia / 14e3bcba95865d073647b12846ff9a87605d5278 Reports root/ big OK: 2453 / Failed: 0 / User-skipped: 687 / Auto-skipped: 0


mssql_mnesia_25 / odbc_mssql_mnesia / 14e3bcba95865d073647b12846ff9a87605d5278 Reports root/ big OK: 4654 / Failed: 0 / User-skipped: 94 / Auto-skipped: 0