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.

ARCHITECTURE.md +8−8

@@ -65,12 +65,12 @@ auditable record on the instance.
65 65
66 66 ## Where data lives
67 67
68 Git holds the repository history. SQLite holds the instance database (accounts,
69 access rules, and release channels), the CI queue and records, the sealed secret
70 store, and generated indexes. That is four files rather than one because the file
71 is the only boundary SQLite isolates: the index is rebuilt wholesale, the run
72 queue is the busiest writer, and the secret store is ciphertext whose key lives
73 outside it. Everything an operator must restore together is in one file. The
68 Git holds the repository history. SQLite holds the authoritative instance
69 database (accounts, access rules, release channels, the CI queue and records, and
70 the sealed secret rows) and the derived index. That is two files rather than one
71 because the index is rebuilt wholesale and is the only part an operator can skip
72 when backing up; everything that has to be restored together lives in
73 `instance.db`. The
74 74 user-facing
75 75 [instance data reference](docs/reference/configuration.md#instance-data)
76 76 inventories each path and its backup requirements;
@@ -114,8 +114,8 @@ release artifacts writes those pointers the same way. Everything that is pushed
114 114 checked at the boundary.
115 115
116 116 Run records are not in Git. A runner sends its result over the authenticated SSH
117 channel that leased the job, and the server stores it in `data/runs.db`; a clone or
118 backup of a repository does not carry CI history.
117 channel that leased the job, and the server stores it in `data/instance.db`; a
118 clone or backup of a repository does not carry CI history.
119 119
120 120 ## URL layout
121 121