-
Notifications
You must be signed in to change notification settings - Fork 139
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
Skip importing certs and requests when pki_ds_setup=False #4655
Conversation
If pki_ds_setup is set to False pkispawn should not modify the DS during installation, so the PKIDeployer.setup_system_cert() has been modified to skip importing the certs and the requests into CA database in that scenario. With this change the certs and the requests need to be imported separately. The CA installation test with existing DS has been modified to import the certs and the requests into CA database before calling pkispawn. https://github.com/dogtagpki/pki/wiki/Installing-CA-with-Existing-DS-Database
The CA container test has been modified to export the certs and requests provided to the container during startup such that they can be imported into CA database after startup. https://github.com/dogtagpki/pki/wiki/Deploying-CA-on-Podman
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
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.
LGTM
I have a question but your can merge as it is. In the ca-existing-ds-test last configuration step is pkispawn
. I am wondering what are the remaining operations performed by this command since almost everything was already configured. Is it needed or could be replaced with other more explicit steps?
@fmarco76 Thanks! Even with certs & DS database already set up, I'll merge this PR, but feel free to continue the discussion. Thanks! |
Thanks @edewata for the clarification. I was thinking some of these operations were done with |
Yeah, ideally the |
If
pki_ds_setup
is set toFalse
pkispawn
should not modify the DS during installation, so thePKIDeployer.setup_system_cert()
has been modified to skip importing the certs and the requests into CA database in that scenario. With this change the certs and the requests need to be imported separately.The CA installation test with existing DS has been modified to import the certs and the requests into CA database before calling
pkispawn
.The CA container test has been modified to export the certs and requests provided to the container during startup such that they can be imported into CA database after startup.
https://github.com/dogtagpki/pki/wiki/Installing-CA-with-Existing-DS-Database