-
Notifications
You must be signed in to change notification settings - Fork 13k
fix: incoming webhooks improperly post in public channels under private teams #35782
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
fix: incoming webhooks improperly post in public channels under private teams #35782
Conversation
|
Looks like this PR is ready to merge! 🎉 |
🦋 Changeset detectedLatest commit: c0cc4da The changes in this PR will be included in the next version bump. This PR includes changesets to release 36 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 ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #35782 +/- ##
===========================================
+ Coverage 61.17% 61.23% +0.05%
===========================================
Files 2971 2971
Lines 70839 70839
Branches 16185 16185
===========================================
+ Hits 43335 43375 +40
+ Misses 24556 24502 -54
- Partials 2948 2962 +14
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
apps/meteor/app/lib/server/functions/getRoomByNameOrIdWithOptionToJoin.ts
Show resolved
Hide resolved
pierre-lehnen-rc
left a comment
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.
A few comments but nothing that prevents merging this.
apps/meteor/app/lib/server/functions/getRoomByNameOrIdWithOptionToJoin.ts
Show resolved
Hide resolved
6e815f9
2a29d59 to
6e815f9
Compare
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
1 similar comment
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
Kody Review CompleteGreat news! 🎉 Keep up the excellent work! 🚀 Kody Guide: Usage and ConfigurationInteracting with Kody
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
|
/backport 7.4.3 |
|
Sorry, I couldn't do that backport because of conflicts. Could you please solve them? you can do so by running the following commands: after that just run |
|
/backport 7.4.3 |
|
Pull request #35896 added to Project: "Patch 7.4.3" |
|
/backport 7.3.5 |
|
Sorry, I couldn't do that backport because of conflicts. Could you please solve them? you can do so by running the following commands: after that just run |
|
/backport 7.3.5 |
|
Pull request #35897 added to Project: "Patch 7.3.5" |
|
/backport 7.2.6 |
|
Sorry, I couldn't do that backport because of conflicts. Could you please solve them? you can do so by running the following commands: after that just run |
|
/backport 7.2.6 |
|
Pull request #35898 added to Project: "Patch 7.2.6" |
|
/backport 7.1.6 |
|
Sorry, I couldn't do that backport because of conflicts. Could you please solve them? you can do so by running the following commands: after that just run |
|
/backport 7.1.6 |
|
Pull request #35899 added to Project: "Patch 7.1.6" |
|
/backport 7.0.10 |
|
Sorry, I couldn't do that backport because of conflicts. Could you please solve them? you can do so by running the following commands: after that just run |
|
/backport 7.0.10 |
|
Pull request #35900 added to Project: "Patch 7.0.10" |
Proposed changes (including videos or screenshots)
This PR fixes a permission issue where incoming webhooks could send messages to public channels under private teams even when the webhook user was not a team member.
Issue(s)
Steps to test or reproduce
Further comments
CORE-1086
VLN-114
This pull request addresses a specific issue in the Rocket.Chat repository where incoming webhooks were improperly posting messages in public channels under private teams. The fix involves updating the
@rocket.chat/meteorpackage to ensure that team membership checks are enforced for incoming webhooks. Additionally, the PR refactors the room joining logic in thegetRoomByNameOrIdWithOptionToJoinfunction by replacing the localaddUserToRoomfunction with the centralizedRoom.joinmethod from@rocket.chat/core-serviceswhen thejoinChanneloption is enabled. This change aims to streamline the process and ensure consistency in how users are added to channel rooms.