Repository navigation
Sign the .rpm, set gpgcheck=1, and publish the key fingerprints in the README - #167
Merged
Merged
Conversation
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two changes. They are in one PR because both touch the README's download and release lines.
Signed .rpm (#165).
linux/pack.shsigns the.rpmwith the existingoganesson packageskey (B039 7C2A … 1197 2D6E, from~/.local/share/oganesson-repo/gnupgaspublish-repo.shuses it). It runsrpmsignin the Fedora packager image, which now installsrpm-signandgnupg2, and signs before the file goes intowork/dl. The GitHub release step andpublish-repo.shboth readwork/dl, so the release asset, the repository metadata andpublish-repo.sh's SHA-256 check all get the signed file. Linux has no other checksum file. Without the key,pack.shstops before it packs. The container's gpg-agent is stopped after signing, so no sockets stay in GNUPGHOME.oganesson.reponow hasgpgcheck=1, anddocs/packages.mddescribes the change.Verifying downloads (dubna#264, oganesson part). The README has a
## Verifying downloadssection (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 fromwindows/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.shon a copy of the main checkout's release build, into a test folder: it signed the.rpm. In Fedora 45,rpm -Kprinteddigests SIGNATURES NOT OKwithout the key anddigests signatures OKafterrpm --import.repomd.xml.ascsigned aspublish-repo.shsigns it, the new.repowithgpgcheck=1,repo_gpgcheck=1, file:// URLs): in fedora:45,dnf installof an older signed build, thendnf upgradeto thepack.shbuild, both worked. The same install and upgrade between two signed builds worked in fedora:42 (older rpm)..rpmwas refused: "OpenPGP check … has failed: The package is not signed."SHA256SUMSandSHA256SUMS.sig, printed "Signature Verified Successfully".sh tools/hooks/pre-commitpasses, includinglinux/test_pack.py.Not run:
publish-repo.shitself, 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 installanddnf upgradetake the newest build, which is signed. Asking dnf for one of the older builds by version fails undergpgcheck=1until those builds leave the repository. Machines that already haveoganesson.repokeepgpgcheck=0until they download it again (docs/packages.md).Closes #165
🤖 Generated with Claude Code