-
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
Restart the instance when new subsystems are deployed #4571
Conversation
46f5b01
to
6520837
Compare
So the original code works like this:
IIUC the proposed code works like this:
I think the above code works, but I'm wondering if we can avoid restarting the server if it doesn't use HSM (because that would be faster), so something like this:
It doesn't have to be exactly like this, but that's the idea. What do you think? |
41708de
to
5708f3e
Compare
If a new subsystem is deployed in a existing instance this not restarted during the installation but the new web-app is just enabled. When the subsystem are configured to work with an HSM this could generate problems because certificates added during the installation with external tools are recognised. The instance restart will clean the internal cache and reference to the HSM and all certificates are identified. Fix the issue dogtagpki#4335
5708f3e
to
a7e7613
Compare
Kudos, SonarCloud Quality Gate passed! |
I have updated the code to be in line with this idea. |
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.
Thanks for the update! LGTM.
@edewata Thanks! |
If a new subsystem is deployed in a existing instance this not restarted during the installation but the new web-app is just enabled.
When the subsystem are configured to work with an HSM this could generate problems because certificates added during the installation with external tools are recognised. The instance restart will clean the internal cache and reference to the HSM and all certificates are identified.
Fix the issue #4335