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.

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

docs/packaging.md +13−3

@@ -11,7 +11,7 @@ Each release publishes its packages inside `apt/`, `yum/`, and
11 11 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 [Install from the package repository](install.md#install-from-the-package-repository)
14 [Add the repository by hand](install.md#add-the-repository-by-hand)
15 15 has the source lines for each distribution.
16 16
17 17 The apt and yum trees carry both architectures, while pacman has one database
@@ -19,6 +19,14 @@ per architecture: clients use `pacman/$arch`, which expands to `x86_64` or
19 19 `aarch64`. Move the channel to a new release to publish it; a machine following
20 20 the channel picks the new version up with its next upgrade.
21 21
22 Each release also attaches `install.sh`, served at
23 `/<repo>/channels/<channel>/install.sh`. It writes the key and source lines
24 above for the distribution it detects, then runs the package manager; on an
25 unsupported distribution it stops and points at the manual commands. The
26 armored copy it downloads is `packaging/keys/vole-release.asc` verbatim, and the
27 script pins that file's SHA-256 and the key fingerprint, so rotating the release
28 key means updating both constants in the same change.
29
22 30 ### Repository signature verification
23 31
24 32 Apt verifies `InRelease` (or `Release` plus `Release.gpg`) and the hashes it
@@ -27,8 +35,10 @@ each RPM's signature. Pacman verifies `vole.db` and `vole.files` and each
27 35 package's detached `.sig`. A missing or wrong signature fails the update or
28 36 install instead of accepting the package.
29 37
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
38 The installation commands and the install script download the public key from
39 the same channel. The script checks the key's SHA-256 and fingerprint before
40 writing anything and fails closed on a mismatch. To verify the key
41 independently, compare its fingerprint with the copy committed at
32 42 `packaging/keys/vole-release.asc` in the source repository. The release also
33 43 attaches the key as `vole-release-key.asc` and its fingerprint as
34 44 `vole-release-key.fingerprint`. The Git checkout and the release host are