Skip to content
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

Add support for generating and configuring repo metadata gpg keys #188

Closed
wants to merge 4 commits into from

Conversation

PaulSD
Copy link

@PaulSD PaulSD commented Dec 23, 2017

@PaulSD PaulSD force-pushed the master branch 12 times, most recently from fe922d6 to c6eedd4 Compare December 23, 2017 19:00
@PaulSD
Copy link
Author

PaulSD commented Jan 6, 2018

ping

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the ping. It sort of slipped off the radar due to some IRL things.

In general I think the design is pretty good and I like the typo fixes.

manifests/repomd_gpg.pp Outdated Show resolved Hide resolved
manifests/repomd_gpg.pp Outdated Show resolved Hide resolved
manifests/repomd_gpg.pp Outdated Show resolved Hide resolved
spec/classes/certs_repomd_gpg_spec.rb Outdated Show resolved Hide resolved
templates/rhsm-katello-reconfigure.erb Outdated Show resolved Hide resolved
manifests/repomd_gpg.pp Outdated Show resolved Hide resolved
@PaulSD PaulSD force-pushed the master branch 13 times, most recently from 6bfd6f6 to 6993ffb Compare January 9, 2018 04:40
@PaulSD
Copy link
Author

PaulSD commented Jan 9, 2018

I think I have addressed most of your concerns.

However, I'm not sure how to approach the pulp configuration part. If we move the pulp configuration to another module, then we will need an additional parameter in that other module to determine whether pulp should be configured to sign repo metadata, and users will need to specify both --certs-enable-repomd-gpg=true and this other parameter to properly configure pulp. The problem is that pulp will break if it is configured to sign repo metadata but does not have a gpg key, so users who specify this other parameter (to configure pulp) without also specifying --certs-enable-repomd-gpg=true will end up with a broken system. Leaving the pulp configuration here ensures that pulp is never configured unless a gpg key has been generated.

Given that, do you still want me to move the pulp configuration to another module?

@ekohl ekohl mentioned this pull request Jan 10, 2018
Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that, do you still want me to move the pulp configuration to another module?

I do. We're working hard for this module not to touch any resources other than certs because in my experience that gives a much more reliable, understandable and flexible design. It is a bit more work, but the change of regressions is smaller. It should be up to puppet-katello/puppet-foreman_proxy_content to configure puppet-certs and puppet-pulp into a working combination. puppet-certs and puppet-pulp should have no knowledge of each other.

@PaulSD PaulSD force-pushed the master branch 10 times, most recently from 0bcf07e to 2164a79 Compare June 15, 2018 18:33
@PaulSD
Copy link
Author

PaulSD commented Jun 25, 2018

Ping @ekohl @ehelms
This is ready for re-review.

Copy link
Member

@sean797 sean797 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of initial comments..

An acceptance test would be nice, but not required.

README.md Outdated Show resolved Hide resolved
manifests/foreman_proxy_content.pp Outdated Show resolved Hide resolved
manifests/init.pp Show resolved Hide resolved
end
rpm_file = latest_rpm
if rpm_file
rpm('-Uvh', '--force', rpm_file)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need --force ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@PaulSD PaulSD force-pushed the master branch 2 times, most recently from 6a7d525 to 07264bb Compare July 31, 2018 22:17
@PaulSD
Copy link
Author

PaulSD commented Jul 31, 2018

A complete acceptance test (covering all of the relevant PRs) is to install a Foreman server or capsule, install the generated client bootstrap RPM on a client, verify that repo_gpgcheck is set to 1 in yum.conf on the client, then verify that yum on the client can successfully install an RPM.

@PaulSD
Copy link
Author

PaulSD commented Jul 31, 2018

I don't think these new test failures are caused by my changes.

@PaulSD
Copy link
Author

PaulSD commented Sep 30, 2018

Ping @ekohl @ehelms @sean797

I think I addressed / responded to all of the comments back in July, but I haven't heard anything since.

I just updated this PR to fix some merge conflicts ... These test failures are definitely not related to my changes. Looks like a dependency conflict.

@PaulSD PaulSD force-pushed the master branch 2 times, most recently from 9826bb2 to 4804dc3 Compare October 25, 2018 04:46
@ehelms
Copy link
Member

ehelms commented Feb 5, 2021

The PRs related to this for Pulp 2 have been closed as we removed Pulp 2 from deployments. There are parts of this PR that have moved (such as RHSM reconfigure script) to other modules. Aspects of this look generic enough to be potentially be relevant to a Pulp 3 solution. We can therefore opt to leave this PR open as we explore the Pulp 3 implementation or close and approach it fresh in Pulp 3.

@ehelms
Copy link
Member

ehelms commented Jul 15, 2021

I am going to opt to close this in favor of seeing how the Pulp 3 design shakes out.

@ehelms ehelms closed this Jul 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants