-
Notifications
You must be signed in to change notification settings - Fork 181
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
Use CA certificate from /etc/pki/trust/anchors in rhnpush #7364
Use CA certificate from /etc/pki/trust/anchors in rhnpush #7364
Conversation
@mbussolotto I wonder if we should maybe use the default trust chain? This would be a change but as this will be a standalone tool in 5.0 for the clients it might be the right move. In this case the path would be /etc/ssl/ca-bundle.pem on SUSE, but would be different on other OSes. |
@mcalmer thanks for pointing out! Although this solution workw and it has been already tested in our dev branch, the main goal of this PR is to merge asap changes required for 5.0, in order to prevent possible last minute issue. So if you think the right move is to use the default trust chain, I think we should go in that direction. @cbosdo what do you think? |
Would the default trust bundle include the Uyuni CA? I would bet it doesn't if using self-signed CA. If we want such a change, then yes I would rather have it in a separate issue. |
If we put the CA in /etc/pki/trust/anchor/ and call update-ca-certificate, it will get included into the bundle. |
OK, now I got what you mean, and yes it probably isn't much to do. I'll see if I can squash it in. |
I'm doing these changes. @mcalmer @cbosdo Just to be sure since https://github.com/openSUSE/ca-certificates/blob/2dae8b77c250506dc1bf862351c3a5de89a08e90/README#L26-L27 ... why README suggests to not use |
@mbussolotto if you want to include the bundle you should use /etc/ssl/ca-bundle.pem . But when rhnpush is running on a not SUSE OS, this path might be different. |
ae790cd
to
3f034fe
Compare
3f034fe
to
6fa7ac7
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.
Acceptance tests going red due to an issue with SSL and rhnpush
to be fixed before merging
Yes I noticed it, I'll work on it |
361fa19
to
ebb93af
Compare
ebb93af
to
cb63465
Compare
How does the certificate end up in /etc/pki/trust/anchors/LOCAL-RHN-ORG-TRUSTED-SSL-CERT ? It is installed by some RPM? I suspect that is the case and in the containers we are not building the RPMS with the new code but copying the code. We are installing the latest released RPMs, which I assume have the certificate in /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT . |
Would it be an option to make this code backward compatible ? I mean, check if /etc/pki/trust/anchors/LOCAL-RHN-ORG-TRUSTED-SSL-CERT exist and otherwise use /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT ? Why are we doing this change? |
In a Hub scenario both might exist where RHN-... is the one from the Hub and LOCAL-RHN... is the local CA cert. RHN-... comes from bootstrapping the system as a client to another SUMA Server (Perefiral Server connect to Hub) |
Ouch! I wasn't aware of this difference... We'll need more thinking into it |
98873b1
to
81fdff7
Compare
e4cf809
to
8b20ddb
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.
Removing the defaults for ca_chain
gets the bundle detection to be used and we don't need to know the CA path at all.
In order to test changes in rhnpush we need to deploy the python and config files to the container.
8b20ddb
to
a232a6a
Compare
What does this PR change?
Use CA certificate from /etc/pki/trust/anchors in rhnpush
GUI diff
No difference.
Documentation
No documentation needed: add explanation. This can't be used if there is a GUI diff
No documentation needed: only internal and user invisible changes
Documentation issue was created: Link for SUSE Manager contributors, Link for community contributors.
API documentation added: please review the Wiki page Writing Documentation for the API if you have any changes to API documentation.
(OPTIONAL) Documentation PR
DONE
Test coverage
Cucumber tests were added
DONE
Links
Changelogs
Make sure the changelogs entries you are adding are compliant with https://github.com/uyuni-project/uyuni/wiki/Contributing#changelogs and https://github.com/uyuni-project/uyuni/wiki/Contributing#uyuni-projectuyuni-repository
If you don't need a changelog check, please mark this checkbox:
If you uncheck the checkbox after the PR is created, you will need to re-run
changelog_test
(see below)Re-run a test
If you need to re-run a test, please mark the related checkbox, it will be unchecked automatically once it has re-run: