-
Notifications
You must be signed in to change notification settings - Fork 24
Update CoreClient's BwHttpClient to include new default headers #621
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?
Update CoreClient's BwHttpClient to include new default headers #621
Conversation
…ers + misc naming refactors
|
Great job! No new security vulnerabilities introduced in this pull request |
|
Claude finished @JaredSnider-Bitwarden's task in 2m 38s —— View job Code Review Complete
Review SummaryI've reviewed PR #621 which adds Critical Issues Found:
Detailed Findings:Finding 1: Panic on Invalid Header Values (CRITICAL) Location: Issue: The Security Impact: This is a denial-of-service vulnerability. A malicious actor or buggy client code can crash the SDK by providing malformed header values. Fix Required: Replace Finding 2: Missing Validation for Security-Sensitive Headers (IMPORTANT) Location: Issue: The new fields accept arbitrary Recommendation: Consider adding typed validation or at least document the expected format. Finding 3: Missing Test Coverage (IMPORTANT) Issue: The new Required Tests:
Finding 4: PR Description Missing Test Plan (IMPORTANT) Issue: The PR checklist mentions "Written new unit and / or integration tests where applicable" but no tests were added and no test plan is documented. Required: Please document how you tested these changes and what verification steps were taken. Finding 5: Inconsistent Error Handling Pattern (TECHNICAL DEBT) Location: Issue: The code uses Recommendation: Consider returning Finding 6: API Compatibility - UniFFI/WASM Considerations (QUESTION) Have you manually verified:
The breaking change detection passed, which is good, but manual verification is recommended. Recommendations SummaryMust Fix Before Merge:
Should Consider: Please Verify: |
🔍 SDK Breaking Change Detection ResultsSDK Version:
Breaking change detection completed. View SDK workflow |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #621 +/- ##
==========================================
- Coverage 78.54% 78.52% -0.02%
==========================================
Files 283 283
Lines 29251 29286 +35
==========================================
+ Hits 22975 22997 +22
- Misses 6276 6289 +13 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|

🎟️ Tracking
n/a but required for #549
📔 Objective
Adds the following new optional
ClientSettings:device_identifierbitwarden_package_typeIn order to achieve feature parity with the web clients
ApiService. Note: eventuallydevice_identifierandbitwarden_client_versionshould be required.Added the following as new default headers:
Device-IdentifierBitwarden-Package-Typereqwest::header::USER_AGENTWorked with @dani-garcia to add proper clean up tickets as well.
⏰ Reminders before review
team
🦮 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 confirmedissue 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