-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[PM-19883] Add untrust devices endpoint #5619
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
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5619 +/- ##
==========================================
- Coverage 48.08% 45.74% -2.34%
==========================================
Files 1563 1602 +39
Lines 71602 72650 +1048
Branches 6415 6508 +93
==========================================
- Hits 34430 33235 -1195
- Misses 35747 37998 +2251
+ Partials 1425 1417 -8 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
New Issues (5)Checkmarx found the following issues in this Pull Request
Fixed Issues (1)Great job! The following issues were fixed in this Pull Request
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎨 : Non-blocking, but adding integration tests for the Device controller would be a nice addition here, but I understand that's a large ask.
I have tracked this request internally and we don't need to address it here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tiny bit of optimization and I'm good to approve! Tyvm for tackling this for us!
src/Core/Auth/UserFeatures/DeviceTrust/UntrustDevicesCommand.cs
Outdated
Show resolved
Hide resolved
test/Core.Test/Auth/UserFeatures/DeviceTrust/UntrustDevicesCommandTests.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Jared Snider <[email protected]>
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Appreciate this work!
Merging since the code using this is featureflagged behind userkey-rotation-v2. |
🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-19883
📔 Objective
Adds an endpoint to untrust a list of the users devices, removing their encryption keys. The untrusting operation has a separate command with provided unit tests.
📸 Screenshots
⏰ 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