fix: passkey security - #1931
Conversation
WalkthroughBackend passkey controller trims response fields and relaxes userHandle parsing in login finish. Admin API DELETE path renamed to /:id/reset_passkey. Frontend users table consolidates actions into a Dropdown menu. Frontend hook updates reset passkey endpoint to match new route. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant C as Client
participant S as Server (PasskeyLoginFinish)
participant L as Logger
C->>S: POST /passkey/login/finish (userHandle, assertion)
rect rgba(200,230,255,0.25)
note over S: UserHandle validation (relaxed parsing)
S->>S: Try parse userHandle as numeric
alt Parse succeeds
S->>S: Compare parsed ID == expected user ID
alt IDs match
S-->>C: Proceed to verify assertion
else IDs mismatch
S-->>C: Reject (user mismatch)
end
else Parse fails
S->>L: Log parse failure (non-fatal)
S-->>C: Proceed to verify assertion
end
end
S-->>C: Return auth result
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (4)
🧰 Additional context used🧬 Code graph analysis (3)web/src/components/table/users/UsersColumnDefs.jsx (1)
controller/passkey.go (1)
router/api-router.go (1)
🔇 Additional comments (6)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🧪 Early access (Sonnet 4.5): enabledWe are currently testing the Sonnet 4.5 model, which is expected to improve code review quality. However, this model may lead to increased noise levels in the review comments. Please disable the early access features if the noise level causes any inconvenience. Note:
Comment |
fix: passkey security
Summary by CodeRabbit
UI
API Changes
Bug Fixes