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.
Add a one-command install script for the stable channel
16a8be36308947758ae81c97500f9f891be18e52 · Keenan Nemetz · 13d ago · parent 1b1571bb
Add a one-command install script for the stable channel The signed package repositories still left a four- or five-command trust bootstrap on first install, because apt cannot fetch a key from a URL and pacman requires an explicit keyring signature. Ship packaging/install.sh as a release artifact served at channels/stable/install.sh: it detects the distribution, writes the key and repository, and hands the install to apt, dnf, or pacman. The script pins the release key's SHA-256 and fingerprint, and the release now publishes the committed key verbatim so the pin is exact. scripts/check-install.sh covers the three families without root or network, and the release attaches the script before SHA256SUMS so the checksum list covers it. closes: 01M7XG0ANWCC442YMFJSMW7HCC
RELEASING.md +10−1
| @@ -182,6 +182,7 @@ https://rodent.software/vole/channels/stable/apt | |||
| 182 | 182 | https://rodent.software/vole/channels/stable/yum | |
| 183 | 183 | https://rodent.software/vole/channels/stable/pacman/$arch | |
| 184 | 184 | https://rodent.software/vole/channels/stable/vole-release-key.asc | |
| 185 | https://rodent.software/vole/channels/stable/install.sh | ||
| 185 | 186 | ``` | |
| 186 | 187 | ||
| 187 | 188 | Apt verifies `InRelease` (or `Release` plus `Release.gpg`) and the hashes in it. | |
| @@ -190,6 +191,14 @@ Dnf verifies `repomd.xml.asc` and, with `gpgcheck=1`, each RPM. Pacman verifies | |||
| 190 | 191 | served from the same channel for convenience; compare its fingerprint with the | |
| 191 | 192 | committed key at `packaging/keys/vole-release.asc` before trusting it. | |
| 192 | 193 | ||
| 194 | The release attaches `install.sh` beside the key. It is the one-command client | ||
| 195 | for the channel: it detects the distribution, writes the same key and source | ||
| 196 | lines the install docs show, and hands the install to the package manager. It | ||
| 197 | pins the committed key's SHA-256 and fingerprint in `packaging/install.sh`, and | ||
| 198 | the release publishes that committed file verbatim so the pin is exact. Rotating | ||
| 199 | the release key therefore means updating both constants in the same change; | ||
| 200 | `scripts/check-install.sh` fails when they disagree. | ||
| 201 | |||
| 193 | 202 | ## Package verification in CI | |
| 194 | 203 | ||
| 195 | 204 | `.vole/workflows/verify.yaml` builds and packages one architecture on every | |
| @@ -202,5 +211,5 @@ release tag. | |||
| 202 | 211 | files. | |
| 203 | 212 | ||
| 204 | 213 | See [Packages and upgrades](docs/packaging.md) for the paths and systemd units | |
| 205 | the packages install, and [Install](docs/install.md#install-from-the-package-repository) | ||
| 214 | the packages install, and [Install](docs/install.md#add-the-repository-by-hand) | ||
| 206 | 215 | for the client commands. | |