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
FIPS: Remove pkispawn cruft #484
Conversation
|
ipaserver/install/dogtaginstance.py
Outdated
| @@ -171,6 +167,15 @@ def spawn_instance(self, cfg_file, nolog_list=()): | |||
| except ipautil.CalledProcessError as e: | |||
| self.handle_setup_error(e) | |||
|
|
|||
| def _clean_pkispawn_files(self): | |||
| if self.tmp_agent_db is None: | |||
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.
You are skipping the removal of /root/.dogtag/pki-tomcat/{subsystem}, too.
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.
Right, it was my impression that this one would not exist if pkispawnwas not run, I can just remove this check and run removal of both trees.
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.
You are not cleanup up /root/.dogtag if tmp_agent_db is None.
|
Hm, originally had this over the nsslib removal patchset but the rebase was not as successful as I thought, will fix the issues. |
|
Or you could always clean up By the way do you clean up |
The ra_db argument to CAInstance init is a constant so it can be removed. This constant corresponds to the default CertDB directory and since CertDB now passes passwords to its inner NSSDatabase instance we do need to care about having our own run_certutil() method. https://fedorahosted.org/freeipa/ticket/5695
|
Always tend to forget about the upgrade part, will do, thanks 👍 |
|
pylint needs some attention, too. |
fb06ea7
to
5796207
Compare
|
All should be fixed now. |
|
Works as expected. |
pkispawnleaves some ugly files after its successful run. This patch:a) makes sure the files are removed (say no to
__del__inDogtagInstance)b) prevents special requirements for DM password in FIPS as this was for some reason used to create an NSS database for
pkispawn