Bug: Admin-bootstrap race (first-user admin assignment) #79
Labels
No labels
area:api
area:core
area:docs
area:infra
area:ux
dependencies
documentation
duplicate
good first issue
help wanted
invalid
question
rust
status:complete
status:partial
status:planned
type:bug
type:design
type:feature
type:infra
type:refactor
type:refactor
type:research
type:ux
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
icub3d/decentcom#79
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: High (correctness) — found in code review 2026-07-07.
Problem
server/src/auth/handlers.rs:98: the first user becomes admin vialist_users().len() == 1. Two concurrent registrations can interleave (A creates, B creates, then both list → 2) so that no one receives the admin role, leaving the server without an administrator.Fix
Acceptance