Skip to content

fix(admin): refuse to remove or demote the last admin #433

Closed

Description

@Bccorb

Why

Nothing stops the last admin being deleted, losing the admin role, or deleting their own account (admin user delete and role update in src/controllers/admin.ts, and DELETE /users/me). The only way back is a direct database edit, since OWNER_EMAIL grants admin only when the account is created.

What

Done when

No API call can leave a deployment without an admin.

Activity

  1. added this to the v0.19 milestone on Oct 17, 2026
  2. added
    P1Security work outside the FIDO2 track
    safeServes the safe promise: no lockout, no lock-in, honest
    on Oct 17, 2026
  3. added theissue type on Oct 17, 2026
  4. added a commit that references this issue on Oct 17, 2026
    28ce894
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1Security work outside the FIDO2 tracksafeServes the safe promise: no lockout, no lock-in, honestv0.19Targets the v0.19 release

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions