Skip to content

Sign the .rpm, set gpgcheck=1, and publish the key fingerprints in the README - #167

Merged
zakius merged 2 commits into
mainfrom
fix/rpm-signing
Dec 1, 2026
Merged

zakius merged 2 commits into
mainfrom
fix/rpm-signing

Conversation

@zakius

@zakius zakius commented Nov 30, 2026

Copy link
Copy Markdown
Owner

Two changes. They are in one PR because both touch the README's download and release lines.

Signed .rpm (#165). linux/pack.sh signs the .rpm with the existing oganesson packages key (B039 7C2A … 1197 2D6E, from ~/.local/share/oganesson-repo/gnupg as publish-repo.sh uses it). It runs rpmsign in the Fedora packager image, which now installs rpm-sign and gnupg2, and signs before the file goes into work/dl. The GitHub release step and publish-repo.sh both read work/dl, so the release asset, the repository metadata and publish-repo.sh's SHA-256 check all get the signed file. Linux has no other checksum file. Without the key, pack.sh stops before it packs. The container's gpg-agent is stopped after signing, so no sockets stay in GNUPGHOME. oganesson.repo now has gpgcheck=1, and docs/packages.md describes the change.

Verifying downloads (dubna#264, oganesson part). The README has a ## Verifying downloads section (anchor #verifying-downloads). It gives the repository key's fingerprint, which I confirmed from the key in GNUPGHOME and from the live https://packages.zakius.xyz/oganesson.asc, and the Windows update key's public key from windows/update-key.pem, which is the same file as the live site's copy. It also gives the commands that check each. The install page's link to this section comes from the other thread.

Tested:

  • linux/pack.sh on a copy of the main checkout's release build, into a test folder: it signed the .rpm. In Fedora 45, rpm -K printed digests SIGNATURES NOT OK without the key and digests signatures OK after rpm --import.
  • dnf from a local copy of the repository (createrepo_c, repomd.xml.asc signed as publish-repo.sh signs it, the new .repo with gpgcheck=1, repo_gpgcheck=1, file:// URLs): in fedora:45, dnf install of an older signed build, then dnf upgrade to the pack.sh build, both worked. The same install and upgrade between two signed builds worked in fedora:42 (older rpm).
  • In the same setup, an unsigned .rpm was refused: "OpenPGP check … has failed: The package is not signed."
  • The README's Windows commands, run on the live SHA256SUMS and SHA256SUMS.sig, printed "Signature Verified Successfully".
  • sh tools/hooks/pre-commit passes, including linux/test_pack.py.

Not run: publish-repo.sh itself, which would publish to the server and needs a matching GitHub release, and a real release.

During the change: for two releases after this, the repository still has older unsigned builds, because the newest 3 are kept and their release assets can't change. dnf install and dnf upgrade take the newest build, which is signed. Asking dnf for one of the older builds by version fails under gpgcheck=1 until those builds leave the repository. Machines that already have oganesson.repo keep gpgcheck=0 until they download it again (docs/packages.md).

Closes #165

🤖 Generated with Claude Code

zakius and others added 2 commits December 1, 2026 00:22
linux/pack.sh signs the .rpm with the repository's key, "oganesson
packages" from GNUPGHOME, with rpmsign in the Fedora packager image,
before the file goes into work/dl. So the GitHub release and the
repository's metadata both get the signed file, and their SHA-256 match
as publish-repo.sh checks. Without the key, pack.sh stops before it
packs.

oganesson.repo now has gpgcheck=1: dnf checks each package's signature,
not only the signed metadata, and `rpm -K` checks a .rpm from a release.

Closes #165

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The apt/dnf repository key's fingerprint and the Windows update key's
public key, with the commands that check a key, an .rpm and the
Windows SHA256SUMS. The site publishes the keys next to the files they
sign; this is a second place. dubna's install page will link to
#verifying-downloads.

For zakius/dubna#264.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@zakius
zakius merged commit 6136e44 into main Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dnf repository: sign the RPMs and set gpgcheck=1

1 participant