You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
auth: record each passkey's RP ID and warn at startup when the operator RP ID differs #736
Follow-up to #729 (opt-in shared passkey relying-party domain, --passkey-rp-id).
Observed:packages/auth stores a passkey as auth_passkeys(id, account_id, data, counter), where data is the StoredPasskey JSON (id, publicKey, counter, transports). It does not record the RP ID the credential was registered under. Passkeys are inserted in at least four places in packages/auth/src/auth-store.ts (account add, signup, waitlist approval, backup/restore paths), and AuthService.addPasskey whitelists fields.
Consequence: when an operator sets, changes or removes --passkey-rp-id, every passkey registered under the previous RP ID stops working, and auth cannot detect this at activation. The #729 change documents the warning (docs/OPERATIONS.md, docs/EXTENSIONS.md, auth README/SECURITY) but emits no operator log.
Proposal:
Record rpId on new credentials (additive: a field in the data JSON or a nullable column; existing rows stay unrecorded).
At activation, count credentials whose recorded RP ID differs from the effective one (bound passkeyRpId, or the canonical host) and emit an operator warning. Extensions have no structured warning channel in ExtensionActivation today, so this probably needs either a generic core seam (an activation warn() that reaches the startup log) or an auth option.
Credentials registered before the change have no record; the warning can only be approximate for them (for example, treat unrecorded as the canonical host).
Not done in #729 to keep that change to the operator setting and the ceremony binding.
Activity
feat: per-owner store limits and reassign, user-linked API keys, shar…
feat(core,auth): operator-facing extension activation warnings; auth …
refactor: split audit, abuse and mail into extensions; versioned auth…