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/configuration.md +11−2
| @@ -107,13 +107,22 @@ problems together. | |||
| 107 | 107 | The data directory contains both authoritative state and derived indexes. Do not | |
| 108 | 108 | treat every database as disposable. | |
| 109 | 109 | ||
| 110 | There are four SQLite files. `instance.db` holds everything that has to be | ||
| 111 | restored together: accounts, keys, sessions, access rules, locks, page-view | ||
| 112 | counters, and release channels. `runs.db` holds the CI queue and history, | ||
| 113 | `secrets.db` holds ciphertext, and `index.db` is derived. `vole admin db list` | ||
| 114 | prints them with that classification. | ||
| 115 | |||
| 116 | Before release channels joined it, the account database was `data/users.db`. An | ||
| 117 | instance upgrading from a release moves that file by hand; see [Upgrade to the | ||
| 118 | instance database](../operations.md#upgrade-to-the-instance-database). | ||
| 119 | |||
| 110 | 120 | | Data | Where it lives | Can Vole rebuild it? | | |
| 111 | 121 | |---|---|---| | |
| 112 | 122 | | Repositories | `data/repos/<name>.git` | No; Git is the source | | |
| 113 | 123 | | Issues, changes, approvals, and release pointers | The `vole` branch in each repository | No; Git is the source | | |
| 114 | 124 | | CI runs, steps, queue state, artifact pointers, and contributor CI approvals | `data/runs.db` | No; back it up | | |
| 115 | | Accounts, roles, keys, passkeys, sessions, access rules, locks, and page-view counters | `data/users.db` | No; back it up | | ||
| 116 | | Release channels | `data/channels.db` | No; back it up | | ||
| 125 | | Accounts, roles, keys, passkeys, sessions, access rules, locks, page-view counters, and release channels | `data/instance.db` | No; back it up | | ||
| 117 | 126 | | Web, activity, and search indexes | `data/index.db` | Yes, with `vole admin index rebuild` | | |
| 118 | 127 | | CI attempt logs | `data/logs/` | No; back them up | | |
| 119 | 128 | | LFS files and build artifacts | `data/lfs/` | No; stored by content | | |