-
Notifications
You must be signed in to change notification settings - Fork 295
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
Fixes #38297 - Use client certificates for Candlepin events #11327
Fixes #38297 - Use client certificates for Candlepin events #11327
Conversation
9c952e6
to
33abf9d
Compare
33abf9d
to
0415077
Compare
Now that theforeman/puppet-certs#490 has been merged, the CA certificate will contain the default and server certificates. Candlepin communication can then use this instead of the CA certificate deployed for Apache's usage and rely on the Foreman settings. |
f48796f
to
86424ec
Compare
As an additional note, this would reduce the needed configuration for Katello to:
@ekohl Do you think we could re-use the Foreman oauth key and secret? Or should we keep that separate? @parthaa Do you think |
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.
@ekohl Do you think we could re-use the Foreman oauth key and secret? Or should we keep that separate?
I think we should keep that separate. Those are server side credentials and these are client side credentials.
86424ec
to
1d5fc41
Compare
1d5fc41
to
f9bd175
Compare
f9bd175
to
867987b
Compare
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.
Generally 👍 on this, but I can't see why the tests fail. I have a feeling that it's more common in Katello that the tests just exit with rake aborted!
. Do we not set up a reporter or something?
@jeremylenz Mind taking a look? Are the test failures expected? |
@ehelms probably good to create a Redmine issue already |
Commit message is invalid but the other failures are unrelated. The React tests are failing on PF5 upgrades and the ruby failure is from a flaky test. |
Signed-off-by: Eric D. Helms <[email protected]>
867987b
to
a369d6f
Compare
Thanks @sjha4. Added a Redmine. |
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.
Ack..👍🏼
Unrelated React tests are going to stay broken but feel free to merge this.
Merged since the test failures are unrelated. |
What are the changes introduced in this pull request?
This relies upon first getting in theforeman/puppet-certs#490
The Candlepin events use the Foreman client certificates but the default CA since Candlepin runs using localhost certificates generated by the default CA. This means that it can't use the
/etc/foreman/proxy_ca.pem
certificate in it's current form as it represents the server CA. In the dependent PR, this would move to using a bundle CA combining the default and server CA into the single file allowing it to be used.In production, the candlepin_events get configured in
katello.yaml
as:If this change goes forward, we would remove this section entirely, and rely upon Foreman core to handle configuration of certificates and reduce the configuration surface area of Katello. It would then follow that we can drop this parameter as well:
Which the code is already prepared to handle (https://github.com/Katello/katello/blob/master/app/services/cert/certs.rb#L31-L33).
What are the testing steps for this pull request?
This can either be installed via Forklift, or wait for it to land in the installer before testing this.