[PM-26177] feat: Add device auth key to keychain repository#2293
[PM-26177] feat: Add device auth key to keychain repository#2293KatherineInCode merged 18 commits intomainfrom
Conversation
|
Great job! No new security vulnerabilities introduced in this pull request |
|
Claude finished @KatherineInCode's task in 4m 24s —— View job Code Review SummaryPR: PM-26177 feat: Add device auth key to keychain repository Overall Assessment: This PR is well-structured and ready to merge. No new issues found. Changes Reviewed
Security Review
Architecture and Correctness
Test CoverageTests cover all key paths: successful get/set/delete, not-found scenarios (both error types), invalid data deserialization, and access control failures. The deletion ordering is verified to ensure metadata-first deletion. No inline comments warranted -- previously identified issues (parameter ordering, type mismatches) have all been resolved in subsequent commits. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2293 +/- ##
==========================================
+ Coverage 86.04% 86.12% +0.08%
==========================================
Files 1775 1781 +6
Lines 155124 156144 +1020
==========================================
+ Hits 133472 134484 +1012
- Misses 21652 21660 +8 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
⛏️ We usually order parameters and properties alphabetically. |
I thought we went through and alphabetized everything, and the links aren't working well. What did we miss? |
fedemkr
left a comment
There was a problem hiding this comment.
Looks good, just a few improvements.
BitwardenShared/Core/Auth/Models/Domain/Fixtures/DeviceAuthKeyMetadata+Fixtures.swift
Outdated
Show resolved
Hide resolved
BitwardenShared/Core/Auth/Models/Domain/Fixtures/DeviceAuthKeyRecord+Fixtures.swift
Outdated
Show resolved
Hide resolved
BitwardenShared/Core/Auth/Models/Domain/DeviceAuthKeyRecord.swift
Outdated
Show resolved
Hide resolved
BitwardenShared/Core/Auth/Models/Domain/Fixtures/DeviceAuthKeyMetadata+Fixtures.swift
Outdated
Show resolved
Hide resolved
Weird they open fine on my end, it is userName and userDisplayName. |
Yeah, I have no idea. But good catch! We can swing back around on those. |
BitwardenShared/Core/Auth/Models/Domain/Fixtures/DeviceAuthKeyRecord+Fixtures.swift
Show resolved
Hide resolved
fedemkr
left a comment
There was a problem hiding this comment.
Looks good, just one small ⛏️
| let value = try JSONDecoder.defaultDecoder.decode(T.self, from: jsonData) | ||
|
|
||
| return value |
There was a problem hiding this comment.
⛏️ Pretty minor but could we just return directly here?
There was a problem hiding this comment.
Good catch, I've pushed the change

🎟️ Tracking
PM-26177
📔 Objective
Adds the device auth key and its metadata to the keychain repository. These will be used in later PRs for Device Auth Key implementation.
⏰ 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