Repository navigation
✨ Show security keys in admin and remove them on password reset - #1462
Merged
Merged
Conversation
Add a read-only admin list of security keys (WebAuthn credentials) with search and domain filter, a navigation entry and a tile on the user page, like app passwords. An admin setting a new password now always turns off two-factor authentication and removes security keys, also for users without MailCrypt keys. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
0x46616c6b
force-pushed
the
feature/admin-security-keys
branch
from
December 3, 2026 15:14
63676a9 to
377a7b6
Compare
0x46616c6b
marked this pull request as ready for review
December 3, 2026 15:21
0x46616c6b
requested review from
doobry-systemli,
t2d and
y3n4
as code owners
December 3, 2026 15:21
Both repositories filter by user email and domain through a join on the user. Move this into UserOwnedFilterTrait, app passwords add their condition for webmail credentials through a hook. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
Security keys (WebAuthn) were not visible to admins yet. App passwords already have an admin list, a navigation entry and a tile on the user page. This PR adds the same for security keys and makes sure an admin password reset removes them.
Admin view
/admin/security-keys/) with email, name, creation date and last use. It has search and a domain filter. Domain admins only see keys of their domain.Reset
resetTwofactor(). This is now covered by tests.Docs
docs/admin/index.mdwith a screenshot, and an updated user page screenshot.docs/admin/users.mdnow explains that every new password turns off 2FA, not only the MailCrypt reset.🤖 Generated with Claude Code