-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[PM-29021] Add additional guards for phishing detection feature #17818
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
base: main
Are you sure you want to change the base?
Conversation
|
Claude finished @Banrion's task —— View job Code Review CompleteI've conducted a comprehensive review of the phishing detection access control changes following Bitwarden engineering standards. 📋 Review SummaryOverall Assessment: 🟡 REQUEST CHANGES This PR correctly implements the new access control requirements (personal premium OR Family org with specific permissions), but has critical gaps in test coverage for security-sensitive code and a potential missing permission check. 🔴 Critical Issues1. Missing Test Coverage for Security-Critical LogicLocation: Issue: The new access control logic has NO test coverage despite being security-critical code that gates premium feature access. Codecov reports only 20% patch coverage with 4 lines missing coverage. Why this is critical:
Required test cases:
Recommendation: Add comprehensive test coverage before merge. I understand tests are planned for the constructor refactoring, but security-critical access control logic should have tests immediately, not deferred to future work. 2. Potentially Missing
|
apps/browser/src/dirt/phishing-detection/services/phishing-detection.service.ts
Show resolved
Hide resolved
apps/browser/src/dirt/phishing-detection/services/phishing-detection.service.ts
Outdated
Show resolved
Hide resolved
apps/browser/src/dirt/phishing-detection/services/phishing-detection.service.ts
Outdated
Show resolved
Hide resolved
apps/browser/src/dirt/phishing-detection/services/phishing-detection.service.spec.ts
Show resolved
Hide resolved
|
Great job! No new security vulnerabilities introduced in this pull request |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #17818 +/- ##
==========================================
- Coverage 41.70% 41.70% -0.01%
==========================================
Files 3571 3571
Lines 103898 103901 +3
Branches 15618 15621 +3
==========================================
+ Hits 43335 43336 +1
- Misses 58724 58726 +2
Partials 1839 1839 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Changes in this PR impact the Autofill experience of the browser clientBIT has tested the core experience with these changes and the feature flag configuration used by ✅ Fortunately, these BIT tests have passed! 🎉 |
Changes in this PR impact the Autofill experience of the browser clientBIT has tested the core experience with these changes and all feature flags disabled. ✅ Fortunately, these BIT tests have passed! 🎉 |

🎟️ Tracking
PM-29021
📔 Objective
This pull request changes the access requirements for phishing blocker.
Previous access requirements:
Update access requirements:
⏰ Reminders before review
🦮 Reviewer guidelines
:+1:) or similar for great changes:memo:) or ℹ️ (:information_source:) for notes or general info:question:) for questions:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:) for suggestions / improvements:x:) or:warning:) for more significant problems or concerns needing attention:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt:pick:) for minor or nitpick changes