PM-31772: Simplify origin for verified sources#6577
Conversation
|
Claude finished @david-livefront's task in 2m 50s —— View job Re-Review: PM-31772 - Simplify origin for verified sources
SummaryThis PR modifies FIDO2/passkey origin handling so that when a calling application is validated against the Google privileged app allow list (a curated, trusted list), the origin passed to the Bitwarden SDK is simplified to Changes Reviewed
AnalysisSecurity: The change is well-scoped. Origin simplification is only applied when Correctness: The parameter threading from Test Coverage: All modified and coverable lines are covered by tests. Tests cover the key scenarios: verified source returning modified origin, non-verified source returning raw origin, and existing error cases updated with new parameters. Previous Findings StatusBoth findings from the previous review have been addressed:
ResultNo new issues found. The code is clean, well-tested, and follows project conventions. |
app/src/test/kotlin/com/x8bit/bitwarden/data/platform/util/CallingAppInfoExtensionsTest.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/com/x8bit/bitwarden/data/platform/util/CallingAppInfoExtensions.kt
Outdated
Show resolved
Hide resolved
|
Great job! No new security vulnerabilities introduced in this pull request |
ae11626 to
a3cb2c2
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6577 +/- ##
==========================================
+ Coverage 86.40% 86.44% +0.04%
==========================================
Files 798 786 -12
Lines 57018 56784 -234
Branches 8258 8257 -1
==========================================
- Hits 49266 49087 -179
+ Misses 4887 4832 -55
Partials 2865 2865 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
a3cb2c2 to
eb8bc76
Compare
|
Thanks @SaintPatrck |

🎟️ Tracking
PM-31772
📔 Objective
This PR simplifies the origin passed to the SDK when the request comes from a verified web source. Currently only sources in the
fido2_privileged_google.jsonfile and user approved sources are considered verified.