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

.vole/workflows/release.yaml +17−1

@@ -1,6 +1,7 @@
1 1 # Builds the release binaries, packages them as .deb and .rpm, signs the RPMs,
2 2 # writes the apt and yum repositories their clients read, signs that metadata,
3 # writes a bill of materials, and attaches everything to the tag's release.
3 # writes a bill of materials, attaches the one-command installer, and publishes
4 # everything to the tag's release.
4 5 #
5 6 # A tag push is the trigger, so the release must be an annotated tag with notes
6 7 # (git tag -a v0.2.0 -F notes.md). Every file below lands on that release page
@@ -119,6 +120,21 @@ jobs:
119 120 python3 scripts/sign-release.py repositories --dist dist \
120 121 --epoch "$SOURCE_DATE_EPOCH" --allow-missing-key
121 122 timeout: 10m
123 # The one-command installer is an artifact, not a web page: it lands in
124 # dist/ before the checksum step, so SHA256SUMS covers it and a channel URL
125 # serves it beside the repository. The check also pins its key constants to
126 # the public key this release publishes.
127 - name: install script
128 run: |
129 set -eu
130 install -m 0755 packaging/install.sh dist/install.sh
131 # The installer pins the committed key file. A local run without a key
132 # has no exported key to compare; the real release always does.
133 if [ -f dist/vole-release-key.asc ]; then
134 cmp dist/vole-release-key.asc packaging/keys/vole-release.asc
135 fi
136 scripts/check-install.sh
137 timeout: 5m
122 138 # What went into the build, for whoever is matching an advisory against
123 139 # what they downloaded. The tool is pinned for the same reason nfpm is: a
124 140 # local run and a release run name the same components. It reads the module