Commit 31d3d46d46
Verified · cmc
Layout: unified · split
Admin.org +9
| @@ -122,6 +122,14 @@ be public (the module path itself confirms it exists). | |||
| 122 | 122 | ||
| 123 | * Users, email, invites | 123 | * Users, email, invites |
| 124 | 124 | ||
| 125 | Every =gitbayd admin= subcommand except =backup=, =gc= and the one-shot | ||
| 126 | backfills is a wrapper that dispatches the registry command of the same | ||
| 127 | name as the host: an admin context with no account behind it, so its | ||
| 128 | audit rows carry no actor and =source: host=. The same commands run in an | ||
| 129 | instance admin's SSH session (=ssh git@<host> admin ...=) and write the | ||
| 130 | same rows with the key fingerprint as source. One implementation, two | ||
| 131 | credentials. | ||
| 132 | |||
| 125 | #+begin_src sh | 133 | #+begin_src sh |
| 126 | gitbayd admin user create alice --key alice.pub --email a@example.org --verified [--admin] | 134 | gitbayd admin user create alice --key alice.pub --email a@example.org --verified [--admin] |
| 127 | gitbayd admin email verify alice a@example.org # admin assertion, no SMTP needed | 135 | gitbayd admin email verify alice a@example.org # admin assertion, no SMTP needed |
| @@ -193,6 +201,7 @@ push. | |||
| 193 | 201 | ||
| 194 | #+begin_src sh | 202 | #+begin_src sh |
| 195 | gitbayd admin stats [--json] # counts, database size, per-repo disk | 203 | gitbayd admin stats [--json] # counts, database size, per-repo disk |
| 204 | ssh git@<host> admin stats [--json] # the same, from an admin session | ||
| 196 | gitbayd admin gc [--repo owner/name] # git gc: repack and prune; per-repo sizes | 205 | gitbayd admin gc [--repo owner/name] # git gc: repack and prune; per-repo sizes |
| 197 | gitbayd admin gc --aggressive # thorough repack; slow, rarely needed | 206 | gitbayd admin gc --aggressive # thorough repack; slow, rarely needed |
| 198 | #+end_src | 207 | #+end_src |