gotify / gotify/server

Allow account recovery without access to an admin account

Open
#1,043 0 comments 0 reactions 0 assignees View on GitHub
a:feature
Dominant language
Go
Stars
15.9k
Forks
873
Avg merge
2d 22h
Merged PRs (30d)
6

Description

It's possible that the only admin loses their password. Gotify should provide a way to recover the admin account, or create a new admin account.

Options
- CLI commands for changing the password, creating a new user, changing admin status on user
- Consume a username:passwordhash file, and then update the username:passwordhash pairs

---

I think we can ignore the possibility of losing the last admin due to OIDC login demoting a user. If permissions are handled by the IdP, then the admin should be able to configure the IdP to give a user admin permissions on next login.

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are named. Start by comparing the proposed CLI and username:passwordhash approaches, then inspect the existing account, password, and admin-permission flows to determine the recovery boundary. Done means one agreed, secure way to recover or recreate the last admin without an existing admin session.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
authentication, authorization, cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.