fix: remove visitor token from visitors.info endpoint#40501
fix: remove visitor token from visitors.info endpoint#40501julio-rocketchat wants to merge 1 commit into
Conversation
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
🦋 Changeset detectedLatest commit: 3f8f389 The changes in this PR will be included in the next version bump. This PR includes changesets to release 42 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 |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📜 Recent review details🧰 Additional context used📓 Path-based instructions (1)**/*.{ts,tsx,js}📄 CodeRabbit inference engine (.cursor/rules/playwright.mdc)
Files:
🧠 Learnings (4)📚 Learning: 2026-03-16T21:50:37.589ZApplied to files:
📚 Learning: 2026-02-26T19:25:44.063ZApplied to files:
📚 Learning: 2026-02-26T19:25:44.063ZApplied to files:
📚 Learning: 2026-05-06T12:21:44.083ZApplied to files:
🔇 Additional comments (3)
WalkthroughThe pull request adds a security fix that prevents the visitor authentication token from being exposed in the ChangesExclude Visitor Token from API Response
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Suggested labels
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Warning Review ran into problems🔥 ProblemsErrors were encountered while retrieving linked issues. Errors (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #40501 +/- ##
===========================================
- Coverage 69.60% 69.59% -0.01%
===========================================
Files 3320 3320
Lines 122512 122512
Branches 21840 21811 -29
===========================================
- Hits 85273 85262 -11
- Misses 33910 33926 +16
+ Partials 3329 3324 -5
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Proposed changes (including videos or screenshots)
As seen here, https://developer.rocket.chat/apidocs/get-visitor-information-by-id-1,
tokenis returned in the response. It looks like there's no use case for the token to be present in the response and it would be a good security practice to remove it altogether.Issue(s)
https://rocketchat.atlassian.net/browse/VLN-367
Steps to test or reproduce
Further comments
Summary by CodeRabbit
visitors.infoAPI response. The system now properly excludes sensitive token data.