Skip to content

Commit ae9abf2

Browse files
feat(apt): QuantumExplorer's maintainer key; the keyring's path on hosts
A final release reaches stable when its SHA256SUMS is signed by a key in publisher/maintainers/. dashpay/platform#6274 added a second signer there, QuantumExplorer, 556CBC89DA31CAD4928F0926D59CAD3E1BEAFEF0; this adds the same key here. The key file is the one published on the GitHub account QuantumExplorer (github.com/QuantumExplorer.gpg), exported minimal; its fingerprint is the one in ALLOWED_SIGNERS on v5.1-dev and in the issue. dashpay/platform#6267 ships the keyring at /etc/apt/keyrings/dashmate-archive-keyring.gpg, not under /usr/share, and a pin file. The README, the keyring's README and the integration test say so now. Nothing in the publisher depends on the path. Tested: 19 unit tests; tests/integration.sh in Ubuntu 24.04 and 22.04 containers, all passed. Co-Authored-By: Claude Fable 5.2 <[email protected]>
1 parent 04fe5c2 commit ae9abf2

4 files changed

Lines changed: 30 additions & 6 deletions

File tree

‎stacks/apt/README.md‎

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,22 @@ URIs: https://apt.services.dash.org/dashmate
99
Suites: stable
1010
Components: main
1111
Architectures: amd64 arm64
12-
Signed-By: /usr/share/keyrings/dashmate-archive-keyring.gpg
12+
Signed-By: /etc/apt/keyrings/dashmate-archive-keyring.gpg
1313
```
1414

1515
The dashmate package ships that file as a dpkg conffile, always naming
1616
`stable`. An operator who edits it keeps their copy for ever, so **the URL
17-
and the keyring path can never change.**
17+
can never change.** The package also ships the keyring at the path above,
18+
and `/etc/apt/preferences.d/dashmate.pref`, which pins the origin
19+
`apt.services.dash.org` so that this repository can supply the package
20+
`dashmate` and nothing else. The three files and their paths belong to
21+
`dashpay/platform` (`packages/dashmate/deb/`).
22+
23+
A release from before the package shipped those files (`5.1.0~rc.1`) is
24+
installed by hand, with the keyring this repository serves at
25+
`/dashmate/dashmate-archive-keyring.gpg`. The procedure is in
26+
[dashpay/platform#4246](https://github.com/dashpay/platform/issues/4246#issuecomment-7166669368),
27+
so that URL has to stay as well.
1828

1929
## Suites
2030

@@ -115,6 +125,9 @@ apt has no revocation. A host trusts exactly the keyring file it has, so:
115125
three months ahead (by 2027-08-25 for this key), so that it reaches hosts
116126
in a dashmate release before the old one runs out. A host that misses it gets
117127
`EXPKEYSIG` and stops updating until it installs a newer deb by hand.
128+
A host that set the repository up by hand (above) holds a copy of the
129+
keyring that no package renews, until its operator moves to the package's
130+
own files.
118131
- **If the primary key leaks, or is lost:** there is no quiet way out. A new
119132
key means a new keyring on every host, which reaches them only through a
120133
dashmate release installed from the old key, or by hand.

‎stacks/apt/publisher/keyring/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
`dashmate-archive-keyring.gpg` is the repository's public key, binary
44
(`gpg --export`), with both signing subkeys. It is the file operators get as
5-
`/usr/share/keyrings/dashmate-archive-keyring.gpg`. Fingerprints and expiry
5+
`/etc/apt/keyrings/dashmate-archive-keyring.gpg`. Fingerprints and expiry
66
are in `../../README.md`, "The key".
77

88
```sh
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
-----BEGIN PGP PUBLIC KEY BLOCK-----
2+
3+
mDMEawaYLxYJKwYBBAHaRw8BAQdA1hl228mUfzGigwUfxEo5PSVQGjqqfKZ3dd5z
4+
W8UDi2O0GFF1YW50dW0gcXVhbnR1bUBkYXNoLm9yZ4i1BBMWCgBdFiEEVWy8idox
5+
ytSSjwkm1ZytPhvq/vAFAmsGmC8bFIAAAAAABAAObWFudTIsMi41KzEuMTIsMCwz
6+
AhsDBQkDwmcABQsJCAcCAiICBhUKCQgLAgQWAgMBAh4HAheAAAoJENWcrT4b6v7w
7+
fyUBALw9OK6Fre41IsqnTD/MsK/9YSjfZ+PhdDJNhLdCJ/5DAQCWHHGURASuw8l3
8+
e79ZPNZSmb0Uplm9LOblhc6s10MIDA==
9+
=sY29
10+
-----END PGP PUBLIC KEY BLOCK-----

‎stacks/apt/publisher/tests/integration.sh‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
#
44
# For a disposable Ubuntu machine with sudo: it installs test packages named
55
# dashmate, writes /etc/apt/sources.list.d/dashmate.sources and a keyring in
6-
# /usr/share/keyrings. Never run it on a host that runs dashmate.
6+
# /etc/apt/keyrings, the paths the dashmate package owns. Never run it on a
7+
# host that runs dashmate.
78
#
89
# bash stacks/apt/publisher/tests/integration.sh
910
# REAL=1 bash ... also publishes a real release of dashpay/platform (190 MB)
@@ -101,7 +102,7 @@ carries() { # suite, versions expected in both architectures
101102

102103
use_suite() {
103104
printf '%s\n' "Types: deb" "URIs: http://127.0.0.1:8081/dashmate" "Suites: $1" "Components: main" \
104-
"Architectures: amd64 arm64" "Signed-By: /usr/share/keyrings/dashmate-archive-keyring.gpg" |
105+
"Architectures: amd64 arm64" "Signed-By: /etc/apt/keyrings/dashmate-archive-keyring.gpg" |
105106
sudo tee /etc/apt/sources.list.d/dashmate.sources > /dev/null
106107
}
107108
apt_update() { # any failure is an error, and only our source is read
@@ -127,7 +128,7 @@ ok "refused a bad tag, an alpha, and a release that does not exist"
127128

128129
expect 0 "stable: published, empty" publish
129130
carries stable ""
130-
sudo install -m 0644 "$W/keyring/dashmate-archive-keyring.gpg" /usr/share/keyrings/dashmate-archive-keyring.gpg
131+
sudo install -D -m 0644 "$W/keyring/dashmate-archive-keyring.gpg" /etc/apt/keyrings/dashmate-archive-keyring.gpg
131132
use_suite stable
132133
expect 0 "" apt_update
133134
ok "apt-get update accepts the signed, empty stable"

0 commit comments

Comments
 (0)