admin: promote and demote instance admins #70

closed cmc opened this on 2026-09-02 00:24 UTC · admin security · assigned to cmc · milestone v1.4.0

Discussion

cmc 2026-09-02 00:24 UTC

The only path to admin is gitbayd admin user create --admin. An existing account cannot be promoted and an admin cannot be demoted, not even host-locally.

Add admin user promote <name> and admin user demote <name>. Demoting the last admin is refused. Both are audited.

closed by commit a779ff0efe by cmc: admin: promote and demote instance admins

2026-09-02 01:01 UTC