Repository navigation
Description
Summary
Dashmate needs a signed APT repository so masternode operators can install and update it the way they install and update everything else on their server — apt update && apt upgrade — with signature verification handled by apt. Today no such repository exists, and the packages we publish cannot be verified by anyone.
This issue is the infrastructure half of that work: where the repository lives, who holds the signing key, and how CI publishes to it. The dashmate CLI changes are a separate, dependent task.
Why we need this
1. Our recommended install method has no update path and no verification.
The docs recommend the .deb from GitHub Releases for mainnet masternodes (installation.md), but the only fully documented update recipe is npm-based — the method the same docs warn against for mainnet. A .deb user has to notice a release happened, find the right asset name, wget it, and apt install ./file.deb by hand.
2. Nothing we ship is verifiable.
Latest release (v4.1.0) assets: no SHA256SUMS, no .asc, no InRelease, no Release.gpg. Only the macOS .pkg is signed (Apple codesign + notarization). An operator downloading a dashmate .deb has no way to confirm it came from us. By contrast, Dash Core already does this properly — dashpay/dash releases ship per-binary .asc files and a SHA256SUMS.asc counter-signed by two maintainers. Dashmate should meet the same bar, and ideally share the same trust model so operators verify dashd and dashmate the same way.
3. We already build APT metadata and throw it away.
Every release publishes Packages, Packages.gz/bz2/xz and Release as GitHub Release assets. They're unsigned (InRelease and Release.gpg are absent — oclif only generates them when a signing key env var is set, which our workflow never sets), and nothing serves them as a repository, so no apt client can use them. The metadata is generated, uploaded, and ignored. Modern apt would reject the repo outright without [trusted=yes], which disables verification entirely.
4. Security updates currently have no delivery mechanism.
If we ship a dashmate security fix today, there is no channel that tells operators or delivers it. Adoption depends on people reading release notes.
Audience check — v4.1.0 download counts: .deb ×44, tarballs ×1, macOS .pkg ×0, Windows .exe ×0. Debian packages are effectively the whole native-install audience, which is why this is the channel worth investing in.
Known blocker (platform-repo side, flagged for awareness)
Our .deb version strings are not monotonic, so apt cannot reliably order releases. oclif builds the version as <upstream>.<gitsha>-1, which discards the semver prerelease tag and makes the git sha an ordering component. Under dpkg's comparison rules a sha starting with a digit sorts below one starting with a letter, so ordering between builds is effectively random.
Verified against the real published v4.1.0-series assets:
| transition | deb versions | apt verdict |
|---|---|---|
| beta.2 → rc.1 | 4.1.0.08152ea51e-1 vs 4.1.0.ae554fdd83-1 |
refused (sees a downgrade) |
| rc.1 → rc.2 | 4.1.0.3de436123d-1 vs 4.1.0.08152ea51e-1 |
refused (sees a downgrade) |
| rc.2 → rc.3 | 4.1.0.61be67f7bf-1 vs 4.1.0.3de436123d-1 |
upgrade |
| rc.3 → 4.1.0 | 4.1.0.bfc80249b9-1 vs 4.1.0.61be67f7bf-1 |
upgrade |
Worse: a same-version security rebuild would never install. With 4.1.0.bfc80249b9-1 installed, a hotfix built from a later commit produces 4.1.0.284f02fabb-1, which compares lower — apt reports "already the newest version" and the operator believes they are patched.
Fix (packaging change, our side, not infra's): emit a Debian-idiomatic monotonic version — 4.1.0~rc.3-1 for prereleases (~ sorts below the release), 4.1.0-1 for stable, rebuilds bumping the Debian revision — plus a CI gate asserting each release sorts above the last. The repository is not useful until this lands, so it should be sequenced first.
The decision we need from infrastructure
Where does the APT repository live, and who holds the signing key?
Important constraint: whatever we pick, the repo URL ends up in every operator's sources.list. Changing it later means a manual edit on every masternode in the fleet, so this choice is expensive to reverse.
Option A — self-hosted pool (aptly or reprepro → object storage + CDN, e.g. apt.dash.org)
| ✅ | Trust anchor is entirely ours — no third party can sign packages our operators trust |
| ✅ | We control retention. Rollback depends on this: apt install dashmate=<old> only works if old versions stay in the pool |
| ✅ | URL permanence under a dash.org domain; no vendor migration risk |
| ✅ | Full control of Valid-Until and the re-signing cadence (see hardening below) |
| ❌ | We own uptime, TLS, and CDN cache invalidation — an outage silently stops fleet updates |
| ❌ | We own key storage and rotation |
| ❌ | One-time CI work: aptly/reprepro publish step, durable pool state, and a lock so concurrent releases can't corrupt the index |
Option B — managed (Cloudsmith, packagecloud)
| ✅ | Stands up in minutes; they handle metadata generation, signing, CDN, and the end-user docs |
| ✅ | No uptime or TLS burden on us |
| ✅ | Cloudsmith supports bringing our own GPG key, which recovers much of the trust story |
| ✅ | Cloudsmith has an open-source hosting policy worth checking eligibility for |
| ❌ | A vendor account becomes part of the supply chain — a stolen API token can publish packages |
| ❌ | Retention limits: plans that prune old versions silently break rollback |
| ❌ | Vendor URL baked into every operator's sources.list |
| ❌ | Storage/egress quotas: our .deb is ~98 MB × 2 architectures ≈ 200 MB per release, before retention |
Platform team's recommendation: Option A (self-hosted). Two reasons, both about things that are painful to reverse — retention control (rollback needs it) and URL permanence. The extra effort is a one-time CI publish step rather than an ongoing burden. That said, if nobody wants to own uptime and key custody, Option B with our own GPG key is a defensible trade; we'd want written confirmation on the retention policy before committing.
What needs to be done
Infrastructure
- Decide Option A vs B (this issue's main question).
- Provision hosting: bucket/CDN + DNS (e.g.
apt.dash.org), HTTPS with HSTS. Repo layout should be a persistent pool across releases, not one release's files. - Create the signing key: dedicated to the dashmate APT repository, used for nothing else, expiry ≤ 1 year. Publish the fingerprint so it can be documented and shipped in-package.
- Write the rotation and revocation runbook before the key goes live. APT has no revocation mechanism — recovery from a leak means shipping a new keyring package and a signed announcement, and anyone frozen on an old snapshot never finds out. Plan expiry too: expired repo keys are a recurring, well-known cause of silent update outages.
- Key storage: to be held as a GitHub Actions secret scoped to a protected Environment (see below), or in whatever secret store infra prefers if CI can reach it. Must be passphraseless or agent-backed, since the packaging tool invokes
gpgnon-interactively. - Set
Valid-Untilon theReleasefile (7–14 days) and schedule a job that re-signs the unchangedReleasebefore it expires. Without an expiry, a signed snapshot is valid forever, so anyone in a caching or mirror position can freeze a fleet on a pre-fix snapshot indefinitely — signatures still verify and nothing looks wrong. This is the single most important hardening item and it needs a recurring job, not just a release-time step. - Retention policy: how many previous versions the pool keeps. Rollback and version pinning depend on this.
- Separate suite for prereleases so an rc can never be offered to a mainnet node on the stable suite.
CI / release pipeline hardening (prerequisite for holding the key — needs infra + platform)
These are prerequisites because they determine whether "CI-held signing key" is a reasonable trade or a single point of total compromise. Today it's closer to the latter:
- Gate the signing job behind a GitHub Environment with a
v*tag deployment policy and required reviewers. Right nowrelease.ymlhasworkflow_dispatchwith no environment gate, so plain repo secrets are reachable from any branch by anyone with write access. - Pin third-party actions to full commit SHAs. The release path currently uses
docker-practice/actions-setup-docker@master— a floating ref on a third-party action — plus several mutable version tags. (The repo already does SHA pinning correctly inmilestone.yml, so the convention exists.) - Isolate the signing step from dependency installation:
scripts/pack_dashmate.shrunsyarn install --no-immutable, so transitivepostinstallscripts would execute in the same job that holds the key. Build artifacts in one job, sign in a minimal separate job. - Publish
SHA256SUMS+ maintainer-signedSHA256SUMS.asc, and gate repository publication on it — refuse to publish a.debwhose hash isn't in the signed sums file. This means a CI compromise alone cannot ship a package; it also needs a human signature. This is what makes the CI-held key acceptable.
Platform repo (dashmate side — separate issue, listed for sequencing)
- Fix the deb version scheme + CI monotonicity gate (blocker, do first).
- Ship the repository public key inside the dashmate package and write the
sources.list.dentry with a mandatorySigned-By:scoping it to our repo only. The key must never be fetched at runtime, and must never land in/etc/apt/trusted.gpg.d/— a key there is trusted for every repository on the operator's system, meaning a leaked dashmate key could signopenssh-server. - Verify build inputs: the bundled Node runtime is currently fetched with its
SHASUMS256.txt.ascdownloaded but never signature-checked, and Binaryen is fetched with no checksum at all. That Node binary ends up inside the.debwe're about to sign. Signing makes an artifact attributable, not trustworthy. -
dashmate updatereworked to update software + images (delegating the binary swap to apt), update notifications, and docs rewritten around the new install/update flow. - Optional auto-update, off by default.
Sequencing
- Fix the deb version scheme (platform) — nothing below works without it.
- Decide hosting; provision it; create the key; write the rotation runbook (infra).
- Harden the release pipeline (infra + platform) — before the key exists.
- Wire up the CI publish step +
Valid-Untilre-signing job. - Dashmate CLI changes + documentation (platform).
Notes
Full design detail, threat model, and the reasoning behind rejecting a self-replacing updater (@oclif/plugin-update) live in the platform team's working spec. Happy to walk through any of it — particularly the Valid-Until freeze scenario and the keyring scoping, which are the two items where a wrong choice is silently insecure rather than visibly broken.
Activity
DashBot-0001 commentedon Jul 28, 2026
Strong +1 on sequencing the version-scheme fix first. One gap in that step, plus two smaller notes.
The version fix itself is a downgrade for everyone already on a
.debThe proposed target
4.1.0-1sorts below the currently published4.1.0.bfc80249b9-1, so the very release that fixes ordering would be refused by every existing deb install:Two ways through, depending on where the switch lands:
4.1.1or higher — nothing to do, it sorts above the old form naturally.4.1.0patch is ever needed, or the switch happens while still on4.1.0— it needs an epoch:1:4.1.0-1. Verified this keeps the intended ordering intact:Worth stating explicitly in the issue that an epoch is permanent — once
1:is introduced every later version carries it, or the next one is a downgrade again.The CI monotonicity gate needs the right baseline
The proposed gate ("assert each release sorts above the last") only catches this if "the last" means the last version actually published as a
.deb, not the previous entry in the current build sequence. Comparing within the new scheme only,4.1.0-1looks like a perfectly ordered first release — the break is invisible unless the baseline is the real in-the-wild version string.Two smaller notes
Release metadata is incomplete beyond
Valid-Until. The published v4.1.0ReleasehasOrigin: undefinedand is missingLabel,Codename,Version,Architectures,ComponentsandAcquire-By-Hash. (It also lists itself in its own checksum table, with the hash of the pre-checksum skeleton — deterministic, harmless, since apt never reads that entry, but it's a sign the generated output wants a full review rather than aValid-Untilpatch.) Since a pool-based repo regenerates metadata anyway, this mostly argues for not treating the existing generator output as a starting point.Action pinning is broader than the one
@masterreference. Inrelease.ymltoday nouses:is SHA-pinned — the mutable tags are as reachable as the floating branch:docker-practice/actions-setup-dockeris also worth a second look on its own merits: ~100 stars, no push since 2025-08, 14 open issues. That's the maintenance profile of a project on the path that would hold the signing key.DashBot-0001 commentedon Jul 28, 2026
Following up on step 1 with the implementation detail, since "packaging change, our side" turns out to have a narrower set of options than it looks.
Where the version actually comes from
oclif/oclif—src/upload-util.ts:Worth noting why the sha is in there, because it changes what a fix has to preserve:
.split('-')[0]drops the semver prerelease tag (necessary —-is Debian's upstream/revision separator), which collapsesrc.1,rc.2,rc.3and the final release all onto4.1.0. The sha isn't a version component anyone chose; it's what restores uniqueness after that collapse. Any fix has to keep prereleases distinct — which is what4.1.0~rc.3-1does natively, and it's in the very Debian Policy section that comment links to.Four options, including one that needs no upstream work
Patch oclif upstream.
debVersionhas no override hook, so this is the clean fix for everyone. oclif is actively maintained (last push 2026-07-25), so it's not a dead end — but it's a dependency-bump wait.Fork / post-process — rewrite the version in the
.debcontrol file afteroclif pack deb.Drop
oclif pack debforfpmor plaindpkg-deb, which gives full control of the version string and the repo layout you'll want for a pool anyway.--shaas an escape hatch.pack debtakes--sha, it's a plainFlags.stringwith no format validation, andbuildConfiguses it verbatim (options.sha ?? await gitSha(...)). So a monotonic build counter can be injected today with no upstream change.Being honest about (4)'s limits: it buys monotonicity, not Debian idiom — the string stays
4.1.0.<x>-1, prerelease semantics stay lost, and it doesn't dodge the migration break from my previous comment (a zero-padded counter starts with a digit, which sorts below the currently publishedbfc80249b9, so it still needs an epoch or a4.1.1+boundary). Useful as a stopgap if the version fix has to ship before the packaging rework; not a destination.Two small things that fall out of the same code
Origin: undefinedis a three-line fix. The template is:packages/dashmate/package.jsonhas noauthorfield and CI sets noDASHMATE_AUTHOR, so both sides areundefinedand the string is interpolated literally. Addingauthorto package.json fixes it wherever else oclif reads that field too.The signing env var is
DASHMATE_DEB_KEY(scopedEnvVar('DEB_KEY')), and the branch is:Two implications for the checklist: the key has to be reachable as an env var in the job that runs
oclif pack deb(which is the same job asyarn install, hence the isolation item), and the no-key path is fail-open — it silently emits unsigned repo metadata rather than failing. Worth a CI assertion thatInReleaseexists after packing, so a missing secret can't quietly produce an unsigned release.DashBot-0001 commentedon Jul 28, 2026
Two corrections to my previous comment, and one note on the A/B cost comparison.
The
authorfix covers one more field than I said, and one fewer. Pulling the control file out of the published v4.1.0.deb:Maintainercomes from the same expression asOrigin—scopedEnvVar('AUTHOR') || pjson.author— so addingauthortopackages/dashmate/package.jsonfixes both in one go. Worth doing on its own merits:Maintaineris where a security advisory would be attributed.Aliases: undefinedis not the same root cause — it'sbinAliases?.join(', ')with nooclif.binAliasesset. (Aliasesalso isn't a standard Debian control field, so emitting it at all is an oclif quirk rather than something to configure.)The control archive has no maintainer scripts — only
control, 201 bytes. Nothing runs at install time, which is a genuinely good property to preserve if the packaging ever gets reworked.On A vs B: I argued for self-hosted in my first comment and still would. But one line in the A column reads as an understatement worth flagging before someone signs up for it — "The extra effort is a one-time CI publish step rather than an ongoing burden."
The
Valid-Untilre-signing job isn't one-time. Short expiry is the mitigation for the freeze scenario, and it only works if something re-signs the unchangedReleaseon a schedule forever. Miss it and the whole fleet'sapt updatestarts failing withRelease file expired— noisy rather than dangerous, but it's a permanent operational commitment, not a build-time step. That doesn't change the recommendation; it changes who has to agree to own it, which seems worth being explicit about while the decision is still open.ktechmidas commentedon Nov 20, 2026
Infra's answer: Option A, self-hosted. Agreed on the reasoning in the issue, and agreed that
apt-transport-s3is the wrong tool here: the repository is public over HTTPS and the signature is what proves a package is ours.What you can build against
stablegets final releases only.testinggets every release, prereleases and finals, so a node ontestingstill reaches each final version.dashpay/infraTerraform.apt install dashmate=<old>keeps working.Valid-Until: 10 days, re-signed daily by a scheduled job, with an alarm ifInReleasegoes stale.Signing happens in AWS, not in GitHub
The signing key will not be a GitHub secret. A job on our side holds it and does the publishing:
SHA256SUMS, adds them to the pool, signs and publishes.This means a compromised workflow can ask us to publish a tag, but it can never read the key. It also lets the daily re-sign run without a second, weaker environment in this repository.
The key
Order
testingopens first, with the 5.1.0 dev builds, and we prove install, upgrade, pinning, rollback and an expiredReleaseon a testnet node.stableopens once publication is gated on a maintainer-signedSHA256SUMS.Needed from the platform side
SHA256SUMSandSHA256SUMS.ascon each release, and the list of maintainer keys the publisher should trust.release.yml; we will supply the role ARN and the call.dashmate.sourcesshipped inside the package.Maintainerfield, which is stillundefinedin the 5.1.0-dev.2 deb.release.ymlpinned to commit SHAs.Two questions
testingat all, or only beta and rc?dashmate.sources:testing, or alwaysstable, leaving the switch to the operator?shumkov commentedon Nov 23, 2026
Thanks, this works for us. Answers, and where the platform side stands.
1. Dev builds in
testing: no,testingshould carry beta, rc and final. Our devnets and testnet fleet are run by dashnet, which uses each release's dashmate helper image and compose files directly and never installs the dashmate package, so no DCG network would take dev builds from apt. The only consumers would be operators who opted intotestingto run prereleases. If you want to prove the pipeline before 5.1.0-beta.1, a separatedevsuite for the 5.1.0 dev builds would do it without putting them intesting. Ordering is fine either way: dev builds are versioned5.1.0~~dev.N, which apt orders below every beta and rc.2. Suite in the shipped
dashmate.sources: alwaysstable; switching is the operator's. dpkg silently replaces an unmodified conffile whenever the package's copy changes, so if prereleases wrotetestingand finals wrotestable, a node followingtestingwould be moved back tostableby the first final it installs. We'll ship one fixed file and list it inDEBIAN/conffiles(oclif doesn't write that list; our repack step will), so an operator's switch survives upgrades. That also means the URL and keyring path in it should never change, since an edited copy won't receive later changes.One ordering constraint: a package must not ship a
dashmate.sourcesthat names a suite without a signedReleaseyet, orapt-get updatefails on every host that installed it. Could you publish a signed, emptystablefrom the start, so the first package carrying the file can ship as soon astestingopens?Platform side:
SHA256SUMS/SHA256SUMS.ascand SHA-pinned actions: implemented earlier but split out of fix(dashmate)!: give Debian packages versions apt can order #4282 before it merged; we're re-proposing them on top of the currentrelease.yml, together with theMaintainerfix. We'll send the list of signers and their key fingerprints with theSHA256SUMS.ascstep.Maintainer: oclif takes it fromauthorinpackage.json, which dashmate doesn't set. Fixing in the same PR.dashmate.sources: added in the deb repack step once you hand us the keyring file and fingerprint.shumkov commentedon Nov 25, 2026
Update from the platform side.
Signers for
SHA256SUMS.asc(one signature per release is enough):19E4 60D5 5429 A91B 40E9 E7C5 EDBC 0AA6 BC1A A13C556C BC89 DA31 CAD4 928F 0926 D59C AD3E 1BEA FEF0The same list is enforced by
scripts/release/sign_dashmate_checksums.sh, which refuses any other key (#6274).Done on our side: every release now carries
SHA256SUMS(#6144), third-party actions in the release workflow are pinned to commit SHAs, and the deb has a realMaintainer. The deb change that shipsdashmate.sourcesand the keyring is ready as draft #6267.Waiting on infra: the keyring file and its fingerprint (for #6267), the role ARN and the call for the trigger job, and a signed, empty
stablefrom the start, so the first package carryingdashmate.sourcesdoesn't breakapt-get update. Is there an ETA fortesting?dcg-infraclaw commentedon Nov 25, 2026
The repository is live.
https://apt.services.dash.org/dashmatehas servedstable,testinganddevsince 11:28 UTC today: signed, and empty. Below is everything from your "waiting on infra" list. Posted by infraclaw, DCG's infrastructure agent, at latte's request.1. The keyring, for #6267
dashmate-archive-keyring.gpgin feat(apt): the signed apt repository for dashmate infra#100, 856 bytes. The repository serves the same bytes athttps://apt.services.dash.org/dashmate/dashmate-archive-keyring.gpg.08006df56f24e282f19012a29e539dad431654abefefd697832ac61918b01230packages/dashmate/deb/dashmate-archive-keyring.gpgA5F9 0926 475E F253 46DC E268 36EF 5BF8 53D1 00FE94E1 AA92 32F7 10AF 5140 0D22 42D0 7EC5 97C9 2A7451C0 AF25 3270 F3DA CE9F 4007 8A30 392F 222E 0ACCDashmate APT repository <[email protected]>The file is binary, starts with
0x98, and holds one version 4 ed25519 primary key with two signing subkeys and no secret packets. I checked those properties with gpg (--list-packets,--show-keys); I did not runpack_dashmate.shon it.The suites are signed by the online subkey, which is the only key material in AWS. The primary and the standby subkey are held by latte and are in neither AWS nor GitHub. The fingerprints are also in
#infra-clawon Slack, as a second channel to compare against.The renewed keyring has to reach you by 2027-08-25, three months before this one expires. The rotation runbook is
stacks/apt/README.md, "The key".2. The role and the call, for the trigger job
arn:aws:iam::854439639386:role/dashmate-apt-release, regionus-west-2arn:aws:states:us-west-2:854439639386:stateMachine:dashmate-apt-publishrepo:dashpay/platform:environment:dashmate-apt-publish. The job therefore has to run in an environment of that name, which does not exist in dashpay/platform yet. Restrict its deployments tov*tags: that restriction is what keeps branches away from the role. Required reviewers are yours to add.This job has not run from GitHub Actions yet; the role's permissions were checked with the IAM policy simulator.
What the publisher does with a tag:
SHA256SUMSlists and their version is the one the tag stands for. Otherwise it changes nothing and the execution endsFAILED. So the job has to run after the debs andSHA256SUMSare attached.dev. Betas and release candidates go totestinganddev.testinganddevat once, and intostablewhen itsSHA256SUMS.ascverifies against a trusted maintainer key. If the signature is attached later, the next run moves it; the daily run does that at the latest, so nobody has to trigger it again.3. A signed, empty
stableDone, and the same for
testinganddev, so #6267's ordering constraint is met. On your ETA question:testingis open now.Each
Releaseis valid for ten days. A scheduled run at 05:17 UTC signs all three suites again every day.What changed from the plan of 20 November
testingcarries betas, release candidates and finals, and dev builds have their owndevsuite.InReleaseis not built yet.What was checked
InReleaseandRelease.gpgof each suite verify with gpgv against the keyring above. A real apt client (Ubuntu 24.04) runsapt-get updatecleanly against each suite, and refuses the repository when given a different keyring.testingreaching the final release, aReleaseaccepted nine days on and refused after eleven, the standby subkey taking over with no change on the host, and each refusal listed above. That run also published the realv5.1.0-rc.1debs into a local directory.What was not checked
stableopens.Needed from the platform side
dashmate-apt-publishand add the trigger job.v5.1.0-rc.1. It is the only release with aSHA256SUMS, so it is the only one that can be published today, intotestinganddev. It was built before feat(dashmate): ship the apt repository's source file and keyring in the deb #6267 and carries neither the source file nor the keyring, which is the case your follow-up note in feat(dashmate): ship the apt repository's source file and keyring in the deb #6267 warns about. Should it go in as the first live package, or should the pool start with the first release built with feat(dashmate): ship the apt repository's source file and keyring in the deb #6267?Still open on infra's side
19E4 60D5 5429 A91B 40E9 E7C5 EDBC 0AA6 BC1A A13C).556C BC89 … FEF0is added when ci: let QuantumExplorer sign dashmate release checksums #6274 merges, after the fingerprint is confirmed with him directly.InReleasealarm.🤖 Generated with Claude Code
feat(dashmate): ship the apt repository keyring infra handed over
shumkov commentedon Nov 25, 2026
Thanks, this is great. We checked the keyring against three sources before committing it: the file in dashpay/infra at
04fe5c2c, the copy the repository serves, and the fingerprints in your comment and on Slack. All three match.Done on our side:
dashmate-apt-publishexists in dashpay/platform, with deployments restricted tov*tags. Creating, updating and deletingv*tags is limited to the release maintainers by a tag ruleset.dashmate.sourcesare in feat(dashmate): ship the apt repository's source file and keyring in the deb #6267, ready for review.SHA256SUMSis attached. Prereleases your publisher doesn't accept (alpha, pr, hotfix) are skipped with a notice.v5.1.0-rc.1: yes, please publish it intotestinganddevas the first live package. It exercises the bucket upload and the CDN download on a real package before a release depends on them.We'll merge #6267, #6274 and #6289 once their reviews finish, and let you know.
fix(dashmate): keep the apt source and its key together as conffiles
feat(dashmate): limit Dash's apt repository to the dashmate package
test(dashmate): pin the committed keyring's digest and signing subkeys
docs(dashmate): describe the apt repository files the deb ships
test(dashmate): check dpkg's recorded state in the conffile lifecycle…
shumkov commentedon Nov 25, 2026
Two corrections to my previous comment. (Edited: the tester procedure below verifies the key's checksum before trusting it, creates a temporary package pin first, carries the suite you chose into the packaged source before removing anything hand-made, and covers decommissioning.)
1. The keyring path changed. #6267 now ships the keyring as a conffile at
/etc/apt/keyrings/dashmate-archive-keyring.gpg(the source'sSigned-Bypoints there), so the source and its key stay together on remove and rollback. It also ships/etc/apt/preferences.d/dashmate.pref, which makesdashmatethe only package this repository can supply. If your docs mention/usr/share/keyrings/dashmate-archive-keyring.gpg, please update them.2. Testing
v5.1.0-rc.1by hand. My advice to copy the #6267 stanza was wrong: it namesstable, which rc.1 isn't in, and a hand-written file at the package's own paths makes dpkg prompt later. Checked on Debian 12, Ubuntu 22.04 and 24.04 against the live repository:To try a prerelease that is not in
stableyet (for example 5.1.0-rc.1, published totestinganddev), whose deb does not ship the repository files, configure the repository under names the package does not use. The block below writes the pin before the source and installs the key only if its sha256 matches. It stops at the first command that fails. Setsuite=devfor dev builds. On a system withoutsha256sum, useshasum -a 256 -c -for the check.The key's primary fingerprint is
A5F90926475EF25346DCE26836EF5BF853D100FE.Do not use the package's own paths for these files:
/etc/apt/sources.list.d/dashmate.sources,/etc/apt/keyrings/dashmate-archive-keyring.gpgand/etc/apt/preferences.d/dashmate.pref. If one of them exists with different content when the first deb that ships it is installed, dpkg prompts, and an install without a terminal (apt-get -yfrom a script) stops with dashmate unconfigured.Once dashmate is upgraded to a version that ships
/etc/apt/sources.list.d/dashmate.sources, run the block below. It reads the suite you chose, sets it indashmate.sources, and checks it is there. Only then does it delete the hand-made files, skipping any that are already gone, including a key under/usr/share/keyringsfrom older instructions.apt updateruns last: while both sources name the same suite with different keys, it fails withConflicting values set for option Signed-By.If you already created
/etc/apt/sources.list.d/dashmate.sourcesyourself, rename it before upgrading:sudo mv /etc/apt/sources.list.d/dashmate.sources /etc/apt/sources.list.d/dashmate-testing.sources. If an upgrade already stopped at the conffile prompt (dpkg -l dashmateshowsiU), do the same rename and runsudo dpkg --configure -a. Then run the migration block above once dashmate is on a version that shipsdashmate.sources; it also removes a key you downloaded to/usr/share/keyrings/dashmate-archive-keyring.gpg.To take dashmate off a host, use
sudo apt purge dashmate. Afterapt removealone, the source and key stay but the key is no longer renewed. To keep your suite choice without an active source, addEnabled: noto/etc/apt/sources.list.d/dashmate.sources.dpkg does not own the hand-made
dashmate-testing.*files. On a host that still uses them, purging dashmate leaves them in place and the source active: delete the files named in the migration block'srm -fcommand, or addEnabled: noto/etc/apt/sources.list.d/dashmate-testing.sourcesto keep the suite choice.docs(dashmate): document the pin's limit, a pinned hand-made setup an…
test(dashmate): describe the three repository files in the payload test
dcg-infraclaw commentedon Nov 25, 2026
v5.1.0-rc.1is intestinganddev, published at 17:06 UTC today as5.1.0~rc.1-1for amd64 and arm64.stableis still empty. From infraclaw, at latte's request.rc.1, checked from outside
I ran your procedure from the comment above, unchanged, in fresh containers (amd64) of Ubuntu 24.04, Ubuntu 22.04 and Debian 12. The result was the same on all three:
08006df5…1230, andapt-get updateexits 0.apt-cache policy dashmategives candidate5.1.0~rc.1-1at priority 500.apt-get install dashmatefetches 93.6 MB through the CDN and installs it.dashmate --versionanswersdashmate/5.1.0-rc.1 linux-x64 node-v24.14.1, and the package'sMaintainerisDash Core Group <[email protected]>.pool/main/d/dashmate/dashmate_5.1.0~rc.1-1_arm64.deb, has the size and sha256 thatPackageslists. So a~in a file name passes through the CDN.stable,apt-get updateexits 0 and no version is offered.Not checked: an install on an arm64 machine, and an upgrade from rc.1 to a release that ships the repository files, which needs the first release built with #6267.
QuantumExplorer's key
The publisher trusts both signers now (dashpay/infra@ae9abf2, applied). Its log lists
19E460D5…A13Cand556CBC89…FEF0as maintainer keys.I said the fingerprint would be confirmed with him directly first, and it has not been yet. What I have instead: the key file is the one published on his own GitHub account (
github.com/QuantumExplorer.gpg, added there today at 08:13 UTC), and its fingerprint is the one inALLOWED_SIGNERSonv5.1-devand in your comment. I have asked him in#infra-clawto confirm. The key opens nothing until a final release carries his signature, and it comes out again if he says it is not his.The keyring's path
Noted.
stacks/apt/README.md, the keyring's README and our integration test now say/etc/apt/keyrings/dashmate-archive-keyring.gpg(same commit; the test passes on Ubuntu 24.04 and 22.04). Nothing in the publisher depends on the path. Two things follow from your changes on our side:https://apt.services.dash.org/dashmate/dashmate-archive-keyring.gpgis in your published procedure, so we treat that URL as permanent, like the repository URL.#6289
I read the job against the publisher: the tag form and the list of what is published (finals, dev, beta, rc) match, and it runs after
SHA256SUMSis attached. Its first run will also be the first real use of the role from GitHub Actions; so far that was checked with the IAM policy simulator only.Still open on infra's side
The alarm for a staleBuilt after this was posted, running since 17:26 UTC: a timer on our operations host reads the threeInRelease.InReleasefiles from outside every 15 minutes and alerts us in Slack when one was not signed again for 40 hours, has under four days of validity left, has expired, cannot be fetched, or is not signed by the archive key.🤖 Generated with Claude Code
docs(dashmate): give the hand-made repository setup inline and state …
shumkov commentedon Nov 25, 2026
Two requests, now that #6274 is merged and #6289 is updated.
1. QuantumExplorer's key. #6274 is merged, so
556C BC89 DA31 CAD4 928F 0926 D59C AD3E 1BEA FEF0can be added to the publisher's trusted maintainer keys. It matches the key on his GitHub account (D59CAD3E1BEAFEF0).2. Bind a release-triggered publish to the manifest the run checked. #6289 now starts the state machine with:
{"tag": "v5.1.0-rc.2", "sha256sums_sha256": "<64 lowercase hex>"}sha256sums_sha256is the SHA-256 of the exactSHA256SUMSbytes that the run's checksums job verified and attached. Could the publisher enforce it?PublishReleasepasses only$.tag);tagrequest, refuse (nothing written) unless the downloadedSHA256SUMShashes to that value, so a publish always uses the manifest its triggering run verified;tagrequest without the field too; the daily refresh run is unchanged;stablekeeps itsSHA256SUMS.ascrequirement as today.The extra field is ignored by the current state machine, so nothing breaks before you add the check.
Optional: if the publisher could report the requested release's outcome separately from problems with other releases, and return an explicit "skipped" result for prerelease kinds it doesn't accept, our job could tell those cases apart instead of failing on both.
docs(dashmate): verify the key and keep the tester's suite in the han…
docs(dashmate): set the suite before deleting the hand-made files in …
docs(release): hand each release to infra while the apt publish is off
feat(apt): publish a release only from the SHA256SUMS its request names
feat(apt): say what became of the requested release, and skip what is…
dcg-infraclaw commentedon Nov 26, 2026
The publisher enforces
sha256sums_sha256since 09:43 UTC today, so the condition for turning onDASHMATE_APT_PUBLISHis met on our side. From infraclaw, at latte's request.This answers item 2 and the optional part of your comment above. The code is dashpay/infra#100 at
a843ba5, applied.What it does now
{"tag": "<tag>", "sha256sums_sha256": "<64 lowercase hex digits>"}, as ci(dashmate): ask the apt publisher to publish a release's debs #6289 sends it. The state machine passes both to the build.FAILEDwith the errorPublisher.RequestRefused, and no build starts. The publisher checks it again by itself.SHA256SUMSis refused before anything is written. The publisher downloads the release'sSHA256SUMSand stops unless it has the sha256 the request names. It reads that file once per run, so nothing later in the run sees a different one.SHA256SUMS, their versions against the tag, what is already published against our key, and the signing key itself.{}, adds no release, and moves a final intostableonly when it is already intestingbyte for byte and itsSHA256SUMScarries a maintainer's signature.stablestill needsSHA256SUMS.asc. The digest says which file your run checked; it does not stand in for the signature.What a run reports
The optional part is in as well. The exit status of
publish.pyis in the execution's cause, in the build phase message your job already reads:PUBLISHED: <tag> is in <suites> as <version>NEEDS A PERSON: <other tag>: ...PUBLISHED:lineREFUSED: ...SKIPPED: ...pr, hotfix). Decided before anything is readYour job never sends the kinds that exit 3, so its
caseneeds no change. If it ever does send one, the execution endsFAILEDlike any other non-zero exit.Checked live
One execution each, between 09:44 and 09:48 UTC:
v5.1.0-rc.1with the right digest (74acd72a53bd79d35253c3fb44d0546632ff30c32f32807baecacab088da8d4e):SUCCEEDED, withSHA256SUMS is the file the request namesandPUBLISHED: v5.1.0-rc.1 is in testing, dev as 5.1.0~rc.1-1. Both debs were already published, so it wrote no package. Asking again for a release that is already in is safe.FAILED, exit status 2,REFUSED: v5.1.0-rc.1: the release's SHA256SUMS has sha256 74acd72a…8d4e, and the request was made for 0000…0000.FAILED,Publisher.RequestRefused, no build.v5.1.0-alpha.1:FAILED, exit status 3,SKIPPED: v5.1.0-alpha.1: prereleases named 'alpha' are not published; only beta, dev, rc.{}:SUCCEEDED.Before the apply, the unit tests (40) and the integration test with a real apt client passed on Ubuntu 24.04 and 22.04.
Not checked
Publish Dashmate debs to aptwill be its first real use. If it fails at the credentials or the start, send us the run and we publish the tag by hand; the job changes no asset.stablein the live repository. No final release carries a maintainer's signature yet. It is covered by the tests only.v5.1.0-rc.01). Your job's pattern lets it through and the publisher refuses it as not a release tag. No such tag exists, and I did not check whether the deb build refuses it first.Until the variable is on
Post the tag and the sha256 from the
Release Dashmate checksumsjob here or in#infra-claw, as your release procedure says. We publish only if the release'sSHA256SUMShas that sha256, and say here which we did.🤖 Generated with Claude Code