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.
ARCHITECTURE.md +9−4
| @@ -25,7 +25,7 @@ and access rules, approval files, locks and CI records are keyed by it. | |||
| 25 | 25 | ||
| 26 | 26 | There is no password database. The browser performs a WebAuthn ceremony, Vole | |
| 27 | 27 | stores only the credential's public half, and the resulting session is an opaque | |
| 28 | token whose hash alone is in `users.db`. | ||
| 28 | token whose hash alone is in `instance.db`. | ||
| 29 | 29 | ||
| 30 | 30 | There are two ways to write metadata, and they offer the same account the same | |
| 31 | 31 | actions: a browser session, where each form asks for one capability, and a push, | |
| @@ -57,8 +57,13 @@ auditable record on the instance. | |||
| 57 | 57 | ||
| 58 | 58 | ## Where data lives | |
| 59 | 59 | ||
| 60 | Git holds the repository history. SQLite holds the account database, the CI queue | ||
| 61 | and records, release channels, and generated indexes. The user-facing | ||
| 60 | Git holds the repository history. SQLite holds the instance database (accounts, | ||
| 61 | access rules, and release channels), the CI queue and records, the sealed secret | ||
| 62 | store, and generated indexes. That is four files rather than one because the file | ||
| 63 | is the only boundary SQLite isolates: the index is rebuilt wholesale, the run | ||
| 64 | queue is the busiest writer, and the secret store is ciphertext whose key lives | ||
| 65 | outside it. Everything an operator must restore together is in one file. The | ||
| 66 | user-facing | ||
| 62 | 67 | [instance data reference](docs/reference/configuration.md#instance-data) | |
| 63 | 68 | inventories each path and its backup requirements; | |
| 64 | 69 | [Operations](docs/operations.md#back-up-an-instance) provides the procedure. | |
| @@ -130,7 +135,7 @@ and the clone URL share a name. | |||
| 130 | 135 | | Use the Git command-line tool | Full push behavior and hooks without reimplementing Git | | |
| 131 | 136 | | SSH for Git writes, passkeys for the browser | Each transport gets the credential it can actually use, and both resolve to one account | | |
| 132 | 137 | | Check everything before accepting a change | The push boundary and the narrow web writers share the same metadata validation | | |
| 133 | | Store metadata in Git, rules in SQLite | Repository content travels with clones; local settings stay local. Release channels are the deliberate server-side exception: they are consumed from the public URL, so they live in `data/channels.db` rather than a clone. | | ||
| 138 | | Store metadata in Git, rules in SQLite | Repository content travels with clones; local settings stay local. Release channels are the deliberate server-side exception: they are consumed from the public URL, so they live in `data/instance.db` rather than a clone. | | ||
| 134 | 139 | | Passkeys, not passwords | No shared secret to phish, reset, or store; recovery is an instance-admin-issued enrollment link | | |
| 135 | 140 | | One program with separate serve and runner modes | Easy to deploy anywhere | | |
| 136 | 141 | | Two long-term secrets: the host key, and the key that seals repository secrets | A deploy key has to live somewhere, and a value in Git is a value in every clone | | |