feat(auth): close registration after the first user #12
Labels
No labels
bug
docs
duplicate
enhancement
help wanted
invalid
nice-to-have
pre-1.0
question
security
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jfro/lamplighter#12
Loading…
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?
There's no authorization model: every account can edit sources, AI keys and delete things (router.ex:47-60). With OIDC but not SSO_ONLY, or open registration once email works, any signup is effectively an admin.
Fix for 1.0: allow registration only while no users exist, unless
ALLOW_REGISTRATION=true. Hide the register link when closed. (Roles/admin flag can come later; this also shapes #3's per-user API tokens.)Found in the pre-1.0 gap audit of main @
69e09f0.