- Notifications
You must be signed in to change notification settings - Fork1.5k
[PM-25652] Add endpoint to fetch key connector confirmation details#6635
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 ourterms of service andprivacy 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?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
github-actionsbot commentedNov 24, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
|
codecovbot commentedNov 24, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@## main #6635 +/- ##===========================================+ Coverage 13.38% 53.12% +39.73%=========================================== Files 1125 1906 +781 Lines 49593 84915 +35322 Branches 3914 7636 +3722 ===========================================+ Hits 6640 45112 +38472+ Misses 42831 38053 -4778- Partials 122 1750 +1628 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
claudebot commentedNov 24, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Claude finished@Thomas-Avery's task ——View job Code Review - Changes Since Last Review
SummaryThe most recent commit (3ee3974) addresses the previous finding about null user handling by changing However, oneopen question from@quexten remains unresolved regarding exception handling for the organization user check in FindingsFinding 1: 💭Exception type for null organization user needs clarification In Analysis of exception patterns in codebaseI examined other usages of
The pattern isinconsistent across the codebase, which makes this a judgment call. However, semantically:
For a user attempting to access an organization they're not a member of,UnauthorizedAccessException seems more semantically correct as it's an authorization issue, not a missing resource issue. Recommendation: Consider changing line 30 to Good Practices Observed
Action Items
|
src/Api/KeyManagement/Controllers/AccountsKeyManagementController.cs OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
src/Api/KeyManagement/Models/Responses/KeyConnectorConfirmationDetailsResponseModel.csShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
quexten left a comment
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.
Nice, mostly looks good. My only concern is with the returned exception types, which seem a little bit unintutive as a consumer. If you feel that these are the right types to use, please at least provide an explanation why we are choosing not found over unauthorized, especially for user.


Uh oh!
There was an error while loading.Please reload this page.
🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-28264
📔 Objective
The objective of this PR is to provide a new endpoint to fetch information needed when confirming/migrating a new key connector user.
See the associated client PRbitwarden/clients#17642
⏰ 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