-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check GPG key on Candlepin repository #10880
Open
ehelms
wants to merge
3
commits into
theforeman:rpm/develop
Choose a base branch
from
ehelms:cp-gpg-check
base: rpm/develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+8
−5
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
|
||
%global prereleasesource nightly | ||
%global prerelease %{?prereleasesource:.}%{?prereleasesource} | ||
%global release 2 | ||
%global release 3 | ||
|
||
Name: katello-repos | ||
Version: 4.14 | ||
|
@@ -73,6 +73,9 @@ rm -rf %{buildroot} | |
%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-candlepin | ||
|
||
%changelog | ||
* Mon Jun 03 2024 Eric D. Helms <[email protected]> - 4.14-0.3.nightly | ||
- Set Candlepin repo gpgcheck to true | ||
|
||
* Mon Jun 03 2024 Evgeni Golov - 4.14-0.2.nightly | ||
- Update Candlepin 4.4 key | ||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ name=Candlepin: an open source entitlement management system. | |
baseurl=https://yum.theforeman.org/candlepin/@CANDLEPIN_VERSION@/@DIST@/$basearch/ | ||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-candlepin | ||
enabled=1 | ||
gpgcheck=@REPO_GPGCHECK@ | ||
gpgcheck=1 | ||
|
||
[pulpcore] | ||
name=pulpcore: Fetch, Upload, Organize, and Distribute Software Packages. | ||
|
@@ -35,10 +35,10 @@ gpgcheck=@REPO_GPGCHECK@ | |
|
||
[candlepin-source] | ||
name=Katello Candlepin source | ||
baseurl=https://yum.theforeman.org/candlepin/@REPO_VERSION@/@DIST@/source/ | ||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-candlepin | ||
baseurl=https://yum.theforeman.org/candlepin/@CANDLEPIN_VERSION@/@DIST@/source/ | ||
gpgkey=https://yum.theforeman.org/candlepin/@CANDLEPIN_VERSION@/RPM-GPG-KEY-candlepin | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. here you updated to the web url, but not above. seems inconsistent. |
||
enabled=0 | ||
gpgcheck=@REPO_GPGCHECK@ | ||
gpgcheck=1 | ||
|
||
[pulpcore-source] | ||
name=pulpcore source | ||
|
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd still prefer to include the GPG keys in the file so it can validate offline. That's the whole point of this package. I now see we don't do it for Pulp either.
One problem with networked URLs is that yum/dnf never checks expiration. So if the keys expire, you must manually replace them. Now this probably isn't a big deal for us if users stay on supported releases, given how often we use new keys but still something to keep in mind.
It does mean more work in the release process.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Validate what offline? The RPMs that you need to be online to fetch?
(If you're mirroring the repo, that package is useless anyway and you can to mirror the key too)
To make that more viable, we'd need to ship separate packages for these things, like CentOS does:
(This is not me volunteering to implement this)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant to include the GPG key in this file. And I too thought about separate release files for each repo, but wasn't keen on implementing it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implemented my preference in #11128.