Skip to content

feat(auth): password managers forget passkeys you remove - #391

Merged
PiquelChips merged 2 commits into
mainfrom
feat/forget-removed-passkeys
Nov 6, 2026
Merged

PiquelChips merged 2 commits into
mainfrom
feat/forget-removed-passkeys

Conversation

@PiquelChips

@PiquelChips PiquelChips commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

When you removed a passkey in the settings, your password manager kept it. It went on offering that passkey at sign-in, where it could only fail.

Now every account page tells the browser's password manager which of your passkeys still sign in, using the WebAuthn Signal API (signalAllAcceptedCredentials). Where the browser supports it (Chrome 132+, Safari 26), the password manager hides or deletes the others. This sits beside the existing signalCurrentUserDetails, which already keeps a renamed handle up to date.

The password manager drops every passkey of the account that the list leaves out, so a missing ID would lose a working passkey. To prevent that:

  • The list is built from list_active, the same rows sign-in checks an assertion against, with no filtering or paging. A passkey is on it exactly when it can sign in.
  • Without the list on the page, the script sends nothing, so a broken page can't wipe anything.
  • A database test renders every settings tab and console page for an account with 12 passkeys (IDs of 16 to 1023 bytes, including bytes that encode as - and _), one of them removed, plus another account's passkey. Each page must list exactly the 11 active ones. Making the server drop one passkey fails it.
  • settings.spec.ts checks, after sign-up, adding a passkey and removing one, that what the page sends matches exactly the credentials Chromium's virtual authenticators hold (same RP ID, user handle and IDs), and that Chromium accepts the call. Dropping one ID fails it. It passed against a preview.

The admin dashboard sends nothing, so an administrator's browser is never told about other accounts. Security keys such as a YubiKey keep their copy, since browsers never signal external authenticators.

Proved by the two tests above, each seen failing with a passkey left out, and by settings.spec.ts passing against a piqueld preview.

Reviewed with review-loop: 2 rounds with 2× GPT-6.1 Sol and Claude Opus 5.5. Verdict: approved

Note

Written by Claude Opus 5.5 in Claude Code and reviewed by GPT-6.1 Sol and Claude Opus 5.5 (via T3 Code)

@coderabbitai

coderabbitai Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 54 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f0c9c95c-d051-4f4c-bf6f-d07d07919121
Commits

Reviewing files that changed from the base of the PR and between 47b53bc and d441bb4.

Files selected for processing: 18

  • README.md
  • apps/auth-service/assets/passkey.js
  • apps/auth-service/src/passkey/settings.rs
  • apps/auth-service/src/web/account.rs
  • apps/auth-service/src/web/admin/mod.rs
  • apps/auth-service/src/web/admin/settings.rs
  • apps/auth-service/src/web/settings/profile.rs
  • apps/auth-service/src/web/tests.rs
  • crates/ui/src/admin/lists.rs
  • crates/ui/src/admin/mod.rs
  • crates/ui/src/admin/users.rs
  • crates/ui/src/layout/mod.rs
  • crates/ui/src/layout/sections.rs
  • crates/ui/src/layout/signed_in.rs
  • crates/ui/src/lib.rs
  • tests/browser/README.md
  • tests/browser/helpers.ts
  • tests/browser/settings.spec.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

Every account page tells the browser's password manager, by the WebAuthn
Signal API's signalAllAcceptedCredentials, the credential ID of every
passkey that still signs in: the rows sign-in itself checks against. The
password manager then forgets the account's others, such as one removed in
the settings, instead of offering a passkey that can only fail.
@PiquelChips
PiquelChips force-pushed the feat/forget-removed-passkeys branch from 1619ad3 to d441bb4 Compare November 6, 2026 13:25
@PiquelChips PiquelChips self-assigned this Nov 6, 2026
@PiquelChips PiquelChips added enhancement New feature or request apps/auth-service Origin Auth at auth.sourceorigin.dev, its settings and developer console, and the operator CLI labels Nov 6, 2026
@PiquelChips PiquelChips added this to the v0.1 milestone Nov 6, 2026
@github-project-automation github-project-automation Bot moved this to Needs Triage in sourceorigin.dev Nov 6, 2026
@PiquelChips PiquelChips moved this from Needs Triage to In Progress in sourceorigin.dev Nov 6, 2026
@PiquelChips
PiquelChips merged commit e7b2d63 into main Nov 6, 2026
9 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in sourceorigin.dev Nov 6, 2026
@PiquelChips
PiquelChips deleted the feat/forget-removed-passkeys branch November 6, 2026 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

apps/auth-service Origin Auth at auth.sourceorigin.dev, its settings and developer console, and the operator CLI enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant