Skip to content

✨ Show security keys in admin and remove them on password reset - #1462

Merged
0x46616c6b merged 2 commits into
mainfrom
feature/admin-security-keys
Dec 3, 2026
Merged

0x46616c6b merged 2 commits into
mainfrom
feature/admin-security-keys

Conversation

@0x46616c6b

Copy link
Copy Markdown
Member

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

  • New read-only list Management → Security Keys (/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.
  • New tile "Security Keys" on the user page that links to the filtered list. The related data grid now uses up to three columns, because five tiles were too narrow and the labels squeezed the icons.

Reset

  • A reset of a user with MailCrypt keys already removed security keys through resetTwofactor(). This is now covered by tests.
  • An admin setting a new password for a user without MailCrypt keys only deleted the app passwords. TOTP and security keys stayed active. Setting a new password now always turns off two-factor authentication, including security keys, so whoever had the account can't keep a second factor.

Docs

  • New section "Security keys" in docs/admin/index.md with a screenshot, and an updated user page screenshot.
  • docs/admin/users.md now explains that every new password turns off 2FA, not only the MailCrypt reset.

🤖 Generated with Claude Code

@0x46616c6b 0x46616c6b added enhancement New feature or request security ux/ui documentation Software is more than code labels Dec 2, 2026
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
0x46616c6b force-pushed the feature/admin-security-keys branch from 63676a9 to 377a7b6 Compare December 3, 2026 15:14
@0x46616c6b
0x46616c6b marked this pull request as ready for review 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>
@sonarqubecloud

sonarqubecloud Bot commented Dec 3, 2026

Copy link
Copy Markdown

@0x46616c6b
0x46616c6b merged commit 6215cc2 into main Dec 3, 2026
11 checks passed
@0x46616c6b
0x46616c6b deleted the feature/admin-security-keys branch December 3, 2026 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Software is more than code enhancement New feature or request security ux/ui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant