-
Notifications
You must be signed in to change notification settings - Fork 10.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: verify federation configuration before processing any events #32535
Conversation
Looks like this PR is ready to merge! 🎉 |
🦋 Changeset detectedLatest commit: 72e606d The changes in this PR will be included in the next version bump. This PR includes changesets to release 32 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #32535 +/- ##
===========================================
- Coverage 59.44% 59.43% -0.01%
===========================================
Files 2544 2546 +2
Lines 63239 63255 +16
Branches 14235 14235
===========================================
+ Hits 37590 37594 +4
- Misses 22930 22941 +11
- Partials 2719 2720 +1
Flags with carried forward coverage won't be shown. Click here to find out more. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know the PR is still in draft, but ideally, we should disable all the federation actions until the configuration is working properly.
b64dc2c
to
77ded52
Compare
apps/meteor/app/lib/server/methods/checkFederationConfiguration.ts
Outdated
Show resolved
Hide resolved
apps/meteor/server/services/federation/domain/IFederationBridge.ts
Outdated
Show resolved
Hide resolved
apps/meteor/server/services/federation/infrastructure/matrix/Bridge.ts
Outdated
Show resolved
Hide resolved
apps/meteor/server/services/federation/infrastructure/matrix/Bridge.ts
Outdated
Show resolved
Hide resolved
apps/meteor/server/services/federation/infrastructure/matrix/Bridge.ts
Outdated
Show resolved
Hide resolved
…s invalid or it is disabled (#32838) * i think i covered all * .. * ... * remove lines * fix and move methods * ee hooks * ? * typescript hiya thanks * wrong params * typescript and linter * lint * mock right you stupid me * ??? * hehe * prettier? * don't run if fed not enabled * fix unit tests * rename function * rememver to remove callback * federation tests * type federation utils functions' returns * type room service methods * rename function * review * change how blocks * stupidity * review * no breaking changes * review * review * oh conflict resolution * types * tests changed * new tests * consistent naming * review * ops
1e58bc4
to
1fdc2c9
Compare
https://rocketchat.atlassian.net/browse/CORE-479
https://rocketchat.atlassian.net/browse/CORE-518
Proposed changes (including videos or screenshots)
We need to verify homeserver <> appservice connection, which is achieved by https://spec.matrix.org/v1.10/application-service-api/#pinging
Also if rocketchat itself is ready for federation or not, using https://federationtester.matrix.org/
Issue(s)
Steps to test or reproduce
Further comments