vole
Site
Clone
Read only, no credentials:
https://rodent.software/vole.git
Write over SSH with a registered key:
git clone ssh://git@rodent.software/vole.git
Self-hosted forge that lives in your Git repo.
Merge release channels into the account database and rename it instance.db
3047be84e9bce79372051c09854ce9b05f12a9bf · Keenan Nemetz · 17d ago · parent 262e516e
Merge release channels into the account database and rename it instance.db The instance keeps four SQLite files instead of five. Release channels were in a file of their own only because they were added beside the derived index; they are authoritative source state, like the roster, so they belong in the file an operator restores. Nothing has to be migrated: channels.db never shipped in a release, so only an instance tracking main can have one. The account database is now data/instance.db. The package comments already called it that; only the filename disagreed. Moving an existing instance is an operator step, by decision: a rename under a live server can lose the -wal file a hook subprocess still has open. Vole refuses to start while data/users.db is still in place, and says what to move, rather than creating an empty database beside it that would look like a successful upgrade. The list of databases now lives in Config.Databases, which TightenSecrets, the hook plumbing, and the admin commands read, so a missed -wal file is no longer a nine-file change. `vole admin account backup <path>` becomes `vole admin db backup <dir>` and covers every authoritative database; `db list` and `db check` answer what to back up and whether it is intact.
docs/reference/accounts-and-access.md +5−5
| @@ -12,10 +12,10 @@ There is no separate mutable display identifier. Retiring an account keeps its | |||
| 12 | 12 | row and reserves the name so historical references cannot resolve to a new | |
| 13 | 13 | person. | |
| 14 | 14 | ||
| 15 | `data/users.db` stores accounts, instance roles, SSH keys, passkeys, enrollment | ||
| 16 | links, browser sessions, repository access rules, file locks, and daily page-view | ||
| 17 | counters. SSH and passkey credentials store public keys. Session and enrollment | ||
| 18 | tokens are stored only as hashes. | ||
| 15 | `data/instance.db` stores accounts, instance roles, SSH keys, passkeys, enrollment | ||
| 16 | links, browser sessions, repository access rules, file locks, daily page-view | ||
| 17 | counters, and release channels. SSH and passkey credentials store public keys. | ||
| 18 | Session and enrollment tokens are stored only as hashes. | ||
| 19 | 19 | ||
| 20 | 20 | Vole reloads the roster every few seconds, so key changes and retirement take | |
| 21 | 21 | effect without restarting the server. Git commit author fields are text supplied | |
| @@ -148,7 +148,7 @@ different totals for the same account. Private-repository activity contributes | |||
| 148 | 148 | nothing to a reader who cannot open that repository. | |
| 149 | 149 | ||
| 150 | 150 | Profiles are derived from `data/index.db`, which combines Git metadata and CI | |
| 151 | records; they are not additional account records in `users.db`. Keys, passkeys, | ||
| 151 | records; they are not additional account records in `instance.db`. Keys, passkeys, | ||
| 152 | 152 | sessions, and instance roles are not public. An instance admin can see the role | |
| 153 | 153 | because that account can already manage it. | |
| 154 | 154 | ||