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.
Simplify stable installation
1b1571bb64dc9bec50d6ec1bfbd15ad418927ba4 · Keenan Nemetz · 13d ago · parent fbdb3818
Simplify stable installation Lead with the stable apt, dnf, and pacman repositories, use stable release URLs for manual downloads, and link the README to the deployed documentation. Keep signing and pinning details in the package reference. Make the packaged configuration readable by the vole service account so post-install initialization succeeds, with a deployment-check regression assertion.
docs/packaging.md +54−8
| @@ -12,17 +12,63 @@ Debian repository, `yum/` is an RPM repository, and each `pacman/<arch>/` is a | |||
| 12 | 12 | signed Arch repository with `vole.db` and `vole.files`. A channel URL works as a | |
| 13 | 13 | package source for all three clients. | |
| 14 | 14 | [Install from the package repository](install.md#install-from-the-package-repository) | |
| 15 | shows the source lines, the upgrade commands, and how the signed repositories | ||
| 16 | are verified. | ||
| 15 | has the source lines for each distribution. | ||
| 17 | 16 | ||
| 18 | 17 | The apt and yum trees carry both architectures, while pacman has one database | |
| 19 | 18 | per architecture: clients use `pacman/$arch`, which expands to `x86_64` or | |
| 20 | `aarch64`. Debian and Ubuntu read `Packages` and the signed | ||
| 21 | `Release`/`InRelease` file; Fedora, RHEL, and Rocky read `repodata/repomd.xml` | ||
| 22 | and its signature; Arch reads `vole.db`, `vole.files`, and each package's | ||
| 23 | detached `.sig`. The RPMs and Arch packages are signed individually. Move the | ||
| 24 | channel to a new release to publish it; a machine following the channel picks | ||
| 25 | the new version up with its next upgrade. | ||
| 19 | `aarch64`. Move the channel to a new release to publish it; a machine following | ||
| 20 | the channel picks the new version up with its next upgrade. | ||
| 21 | |||
| 22 | ### Repository signature verification | ||
| 23 | |||
| 24 | Apt verifies `InRelease` (or `Release` plus `Release.gpg`) and the hashes it | ||
| 25 | carries for every `.deb`. Dnf verifies `repomd.xml.asc` and, with `gpgcheck=1`, | ||
| 26 | each RPM's signature. Pacman verifies `vole.db` and `vole.files` and each | ||
| 27 | package's detached `.sig`. A missing or wrong signature fails the update or | ||
| 28 | install instead of accepting the package. | ||
| 29 | |||
| 30 | The installation commands download the public key from the same channel. To | ||
| 31 | verify it independently, compare its fingerprint with the copy committed at | ||
| 32 | `packaging/keys/vole-release.asc` in the source repository. The release also | ||
| 33 | attaches the key as `vole-release-key.asc` and its fingerprint as | ||
| 34 | `vole-release-key.fingerprint`. The Git checkout and the release host are | ||
| 35 | separate paths, so one compromised host does not change both copies. | ||
| 36 | |||
| 37 | ### Pin a release | ||
| 38 | |||
| 39 | A channel follows exactly one release. To stay on a particular version, replace | ||
| 40 | `/channels/stable` in the package source with that release's artifact path, for | ||
| 41 | example `https://rodent.software/vole/releases/v0.2.0/artifacts`. A pinned apt | ||
| 42 | source therefore ends in `/releases/v0.2.0/artifacts/apt`. Change the source | ||
| 43 | when you are ready to upgrade. | ||
| 44 | |||
| 45 | ## Verify a direct download | ||
| 46 | |||
| 47 | Every release attaches `SHA256SUMS`, its detached signature `SHA256SUMS.asc`, | ||
| 48 | and `vole-release-key.asc`. Set `tag` to the release you downloaded, then verify | ||
| 49 | the signature before trusting the checksum list: | ||
| 50 | |||
| 51 | ```sh | ||
| 52 | tag=v0.2.0 | ||
| 53 | base=https://rodent.software/vole/releases/$tag/artifacts | ||
| 54 | curl -fLO "$base/vole-release-key.asc" | ||
| 55 | curl -fLO "$base/SHA256SUMS" | ||
| 56 | curl -fLO "$base/SHA256SUMS.asc" | ||
| 57 | gpg --import vole-release-key.asc | ||
| 58 | gpg --verify SHA256SUMS.asc SHA256SUMS | ||
| 59 | sha256sum -c --ignore-missing SHA256SUMS | ||
| 60 | ``` | ||
| 61 | |||
| 62 | `gpg --verify` must print `Good signature`. Compare the key's fingerprint with | ||
| 63 | the committed copy described in | ||
| 64 | [Repository signature verification](#repository-signature-verification). | ||
| 65 | `SHA256SUMS` covers every file attached to the release, including the `apt/`, | ||
| 66 | `yum/`, and pacman trees; `--ignore-missing` checks the files you downloaded and | ||
| 67 | skips the rest. | ||
| 68 | |||
| 69 | HTTPS authenticates the host that served the key. If that is not enough for your | ||
| 70 | threat model, clone the source repository over SSH and compare the committed | ||
| 71 | key, or build Vole from that checkout. | ||
| 26 | 72 | ||
| 27 | 73 | ## What the package installs | |
| 28 | 74 | ||