Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

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.

Keep the authoritative instance in one database

1a9b383890c40885709804293cd3a75e775f06a0 · Keenan Nemetz · 3d ago · parent 12221a79

Keep the authoritative instance in one database

Move the CI queue and the sealed secret rows into instance.db, leaving index.db as the one derived database. Backups now copy the single authoritative file, and the index stays disposable.

Hooks and the SSH front door use the instance database for run credentials and required checks. The admin db commands and documentation now describe one authoritative database plus the derived index.

This was migrated once by hand on the rodent.software instance; there is no migration command and no legacy-layout check in the shipped code.

docs/reference/configuration.md +9−10

@@ -111,27 +111,26 @@ problems together.
111 111 The data directory contains both authoritative state and derived indexes. Do not
112 112 treat every database as disposable.
113 113
114 There are four SQLite files. `instance.db` holds everything that has to be
114 There are two SQLite files. `instance.db` holds everything that has to be
115 115 restored together: accounts, keys, sessions, access rules, locks, page-view
116 counters, and release channels. `runs.db` holds the CI queue and history,
117 `secrets.db` holds ciphertext, and `index.db` is derived. `vole admin db list`
118 prints them with that classification.
116 counters, release channels, CI queue and history, and the sealed secret rows.
117 `index.db` is derived and can be rebuilt. `vole admin db list` prints them with
118 that classification.
119 119
120 Before release channels joined it, the account database was `data/users.db`. An
121 instance upgrading from a release moves that file by hand; see [Upgrade to the
122 instance database](../operations.md#upgrade-to-the-instance-database).
120 Before release channels joined the account database, it was `data/users.db`; see
121 [Upgrade to the instance database](../operations.md#upgrade-to-the-instance-database).
123 122
124 123 | Data | Where it lives | Can Vole rebuild it? |
125 124 |---|---|---|
126 125 | Repositories | `data/repos/<name>.git` | No; Git is the source |
127 126 | Issues, changes, approvals, and release pointers | The `vole` branch in each repository | No; Git is the source |
128 | CI runs, steps, queue state, artifact pointers, and contributor CI approvals | `data/runs.db` | No; back it up |
129 | Accounts, roles, keys, passkeys, sessions, access rules, locks, page-view counters, and release channels | `data/instance.db` | No; back it up |
127 | CI runs, steps, queue state, artifact pointers, and contributor CI approvals | `data/instance.db` | No; back it up |
128 | Accounts, roles, keys, passkeys, sessions, access rules, locks, page-view counters, release channels, and sealed secrets | `data/instance.db` | No; back it up |
130 129 | Web, activity, and search indexes | `data/index.db` | Yes, with `vole admin index rebuild` |
131 130 | CI attempt logs | `data/logs/` | No; back them up |
132 131 | LFS files and build artifacts | `data/lfs/` | No; stored by content |
133 132 | Privileged-action history | `data/audit.log` | No; it is the audit record |
134 | Repository secrets | `data/secrets.db`, sealed by `data/secrets.key` | No; back up both and store the key separately |
133 | Repository secrets | The `secrets` tables in `data/instance.db`, sealed by `data/secrets.key` | No; back up both and store the key separately |
135 134 | SSH host key | `data/ssh_host_ed25519_key` | No; back it up |
136 135 | ACME account key and certificates | `data/acme/` | No, but Vole can request new certificates |
137 136