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 cloning with CSR files #4516

Merged
merged 1 commit into from
Jul 28, 2023
Merged

Conversation

edewata
Copy link
Contributor

@edewata edewata commented Jul 27, 2023

Previously during cloning pkispawn would retrieve database params and system cert params (i.e. <subsystem>.<tag>.*) from the master. However, the clone actually already has most of these params (from pkispawn config file and PKCS #12 file) except for the CSRs (i.e. <subsystem>.<tag>.certreq).

The code in PKIDeployer.setup_database() that retrieves the params from the master has been modified to retrieve only the database params and the CSRs (unless the clone already has them). In the future it might be possible to not retrieve anything from the master at all.

The configuration.py has been modified such that the code that imports the certs and CSRs from files (if provided) will run in all cases including cloning instead of just in specific cases.

The installation doc has been updated to show the optional steps for installing CA clone with CSR files:
https://github.com/edewata/pki/blob/install/docs/installation/ca/Installing_CA_Clone.md

The test for CA clone has been updated to create the secondary subsystem without CSR files like before, then create the tertiary subsystem with CSR files.

@edewata edewata added the WIP Work In Progress label Jul 27, 2023
@edewata edewata force-pushed the install branch 3 times, most recently from 98c70fd to 3dc80ac Compare July 28, 2023 00:41
Previously during cloning pkispawn would retrieve database params
and system cert params (i.e. <subsystem>.<tag>.*) from the master.
However, the clone actually already has most of these params (from
pkispawn config file and PKCS dogtagpki#12 file) except for the CSRs (i.e.
<subsystem>.<tag>.certreq).

The code in PKIDeployer.setup_database() that retrieves the params
from the master has been modified to retrieve only the database
params and the CSRs (unless the clone already has the them). In
the future it might be possible to not retrieve anything from the
master at all.

The configuration.py has been modified such that the code that
imports the certs and CSRs from files (if provided) will run in
all cases including cloning instead of just in specific cases.

The installation doc has been updated to show the optional steps
for installing CA clone with CSR files.

The test for CA clone has been updated to create the secondary
subsystem without CSR files like before, then create the
tertiary subsystem with CSR files.
@sonarcloud
Copy link

sonarcloud bot commented Jul 28, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@edewata edewata removed the WIP Work In Progress label Jul 28, 2023
Copy link
Contributor

@ckelleyRH ckelleyRH left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Member

@fmarco76 fmarco76 left a comment

Choose a reason for hiding this comment

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

LGTM

@edewata
Copy link
Contributor Author

edewata commented Jul 28, 2023

@ckelleyRH @fmarco76 Thanks!

@edewata edewata merged commit cb798fc into dogtagpki:master Jul 28, 2023
139 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants