Auth / PM-32421 - CLI - Login Command - Validate SSO account has a CLI-supported decryption path - #22411
Conversation
Consolidates the post-SSO-login decryption path check into a single guard that short-circuits on master password or Key Connector and otherwise throws a remediation-specific error for TDE, PRF passkey, or an MP-encryption org member who never set an MP. Closes the gap where TDE and PRF-only accounts reached "You are logged in!" without a viable decryption path in CLI.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #22411 +/- ##
==========================================
+ Coverage 53.63% 53.86% +0.23%
==========================================
Files 4287 4293 +6
Lines 136043 136326 +283
Branches 21494 21547 +53
==========================================
+ Hits 72961 73433 +472
+ Misses 57733 57534 -199
- Partials 5349 5359 +10 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Note that the PRF unsupported-path branch is currently unreachable via SSO (server only populates PRF options through the WebAuthn grant) so a future reader understands why the branch exists.
🤖 Bitwarden Claude Code ReviewOverall Assessment: APPROVE Reviewed the CLI post-SSO decryption path guard in Code Review DetailsNo findings. Notes considered and dismissed during validation:
|
🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-32421
#18992
📔 Objective
Consolidates the post-SSO-login decryption path check into a single guard that short-circuits on master password or Key Connector and otherwise throws a remediation-specific error for TDE, PRF passkey, or an MP-encryption org member who never set an MP. Closes the gap where TDE and PRF-only accounts reached "You are logged in!" without a viable decryption path in CLI.
📸 Screenshots
Only recording TDE as the tests prove the other cases + it's the core problem we are fixing with displaying a clearer error.
PM-32421.-.CLI.-.SSO.+.TDE.-.Login.Error.Improved.mov