10
9
Fork
You've already forked linux-app
14

add GPG key references in repo files #674

Merged
jwijenbergh merged 1 commit from fkooman/linux-app:rpm-repo into master 2025年11月24日 14:20:16 +01:00

remove the rpm --import command, and reference the GPG key
directly in the repo file. This prevents the key from being
deleted on OS upgrade.

remove the `rpm --import` command, and reference the GPG key directly in the `repo` file. This prevents the key from being deleted on OS upgrade.
add GPG key references in repo files
Some checks failed
/ test (push) Failing after 2m0s
6825ee7b21
remove the `rpm --import` command, and reference the GPG key
directly in the `repo` file. This prevents the key from being
deleted on OS upgrade.
@ -131,2 +130,4 @@
baseurl=https://app.eduvpn.org/linux/v4/rpm/fedora-$releasever-$basearch
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-python-eduvpn-client_v4
gpgcheck=1
enabled=1

what does this do?

what does this do?
Author
Owner
Copy link

enabled=1

Explicitly enable the repository, it is not strictly necessary as that is the default.

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-python-eduvpn-client_v4

Reference the public key on disk so the manual importing using rpm --import is no longer needed, dnf/yum takes care of it just in time.

The reason for wanting this (in one form or another) is that the upgrade process reference a tool to clean up the GPG keys that are no longer referenced anywhere, so it avoids them being deleted when the user runs that script (as recommended by upgrade process):

https://docs.fedoraproject.org/en-US/quick-docs/upgrading-fedora-offline/#sect-clean-up-old-keys

> `enabled=1` Explicitly enable the repository, it is not strictly necessary as that is the default. > `gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-python-eduvpn-client_v4` Reference the public key on disk so the manual importing using `rpm --import` is no longer needed, `dnf`/`yum` takes care of it just in time. The reason for wanting this (in one form or another) is that the upgrade process reference a tool to clean up the GPG keys that are no longer referenced anywhere, so it avoids them being deleted when the user runs that script (as recommended by upgrade process): https://docs.fedoraproject.org/en-US/quick-docs/upgrading-fedora-offline/#sect-clean-up-old-keys
Author
Owner
Copy link

You could probably also directly reference the URL in the gpgkey line. I just don't know what happens when that key updates at that URL. Hopefully dnf/yum will refuse to function?

You could probably also directly reference the URL in the `gpgkey` line. I just don't know what happens when that key updates at that URL. Hopefully `dnf`/`yum` will refuse to function?

Thanks!

Thanks!

Also updated here a65f1e956e

Also updated here https://codeberg.org/eduVPN/linux-app/commit/a65f1e956ed1e5c3261942e040d3500ae1e6874e
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
eduVPN/linux-app!674
Reference in a new issue
eduVPN/linux-app
No description provided.
Delete branch "fkooman/linux-app:rpm-repo"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?