You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
gpg --verify on signed .deb packages does not verify package contents #17683
We currently sign .deb releases with dpkg-sig (docker/jenkins/sign-release.sh), which embeds a signed manifest of member hashes into the archive as the _gpgbuilder ar member.
This is misleading. gpg --verify finds the embedded ASCII-armored signed text and verifies the signature over the manifest itself, but it does not recompute the hashes of debian-binary, control.tar.*, or data.tar.* and compare them against the manifest. A .deb whose payload was modified after signing can still produce "Good signature" from gpg --verify, as long as the embedded manifest text is left intact.
dpkg-sig --verify did both halves (signature check + hash check against the manifest), but dpkg-sig is no longer packaged in Debian 12 / Ubuntu >= 23.10, which is what motivated #14115 in the first place. The page update that closed #14115 swapped in gpg --verify, but that command does not provide the same guarantee.
Possible resolutions
Switch signing to debsigs so users can verify with debsig-verify (which does check member hashes).
Additionally publish a CHECKSUMS256 (or per-file .sig) alongside each .deb, signed with the same release key, so users can verify payload integrity with plain gpg --verify + sha256sum -c.
Quick scan of how popular cross-platform apps sign and let users verify their .deb downloads, for context on which direction to take:
APT-repo signing only (dominant pattern). Chrome, Docker, VS Code, Brave, Firefox, Signal, GitHub CLI, 1Password, Slack all use signed Release/InRelease as the primary verification path -- keyring at /usr/share/keyrings/, referenced via signed-by= in sources.list. APT verifies on install; no per-.deb step is documented. This matches Debian's own recommendation; per-package signatures from developers are explicitly stripped on archive entry.
Per-package signing via debsigs + debsig-verify (the modern replacement for dpkg-sig). Slack and 1Password both ship complete debsig-verify policy/keyring instructions. This is the closest semantic replacement for what we do today, and it's what Debian's own docs point at for the per-package case.
dpkg-sig + dpkg-sig --verify. Effectively just Zoom and us at this point. dpkg-sig is no longer packaged in Debian 12 / Ubuntu >= 23.10. Zoom is retiring keys in Feb 2026 but hasn't announced a replacement scheme.
Detached .sig/.asc files alongside the .deb are uncommon. Where they appear (Brave, 1Password) they cover install scripts or tarballs, not the .deb itself. Checksum files (Docker Desktop, GitHub Releases) show up as a convenience, not a primary verification path.
Implications
We distribute via both a Posit-hosted repo and direct download, so:
APT-repo signing alone covers repo users but does nothing for the direct-download flow that posit.co/code-signing actually targets.
debsigs + debsig-verify is the cleanest fix: it closes the verification gap, matches what other vendors with a direct-download .deb (Slack, 1Password) do, and the doc page can keep its "verify before you install" shape with just a swap of tool.
Detached .asc is the easy fallback if debsigs adoption is too heavy -- not common practice, but trivially scriptable and works with plain gpg --verify.
Activity
kevinushey commentedon May 19, 2026
How other vendors handle this
Quick scan of how popular cross-platform apps sign and let users verify their
.debdownloads, for context on which direction to take:APT-repo signing only (dominant pattern). Chrome, Docker, VS Code, Brave, Firefox, Signal, GitHub CLI, 1Password, Slack all use signed
Release/InReleaseas the primary verification path -- keyring at/usr/share/keyrings/, referenced viasigned-by=in sources.list. APT verifies on install; no per-.debstep is documented. This matches Debian's own recommendation; per-package signatures from developers are explicitly stripped on archive entry.Per-package signing via
debsigs+debsig-verify(the modern replacement fordpkg-sig). Slack and 1Password both ship completedebsig-verifypolicy/keyring instructions. This is the closest semantic replacement for what we do today, and it's what Debian's own docs point at for the per-package case.dpkg-sig+dpkg-sig --verify. Effectively just Zoom and us at this point.dpkg-sigis no longer packaged in Debian 12 / Ubuntu >= 23.10. Zoom is retiring keys in Feb 2026 but hasn't announced a replacement scheme.Detached
.sig/.ascfiles alongside the.debare uncommon. Where they appear (Brave, 1Password) they cover install scripts or tarballs, not the.debitself. Checksum files (Docker Desktop, GitHub Releases) show up as a convenience, not a primary verification path.Implications
We distribute via both a Posit-hosted repo and direct download, so:
debsigs+debsig-verifyis the cleanest fix: it closes the verification gap, matches what other vendors with a direct-download.deb(Slack, 1Password) do, and the doc page can keep its "verify before you install" shape with just a swap of tool..ascis the easy fallback ifdebsigsadoption is too heavy -- not common practice, but trivially scriptable and works with plaingpg --verify.References:
cm421 commentedon May 20, 2026
We should do this for all of our products at the same time.