generated from canonical/template-operator
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DPE-4359] TLS ca/certificate rotation without downtime (#447)
## Issue We currently make use of PEM files for the: - CA - Certificates (admin, unit-http/unit-transport) - private keys This is fine in all cases but the case where the CA is rotated, in which case downtime will be incurred as soon as the first unit gets a new CA and restarts. We need to switch from individual certificate resources to: - java keystores: for private keys, admin/unit-http-transport certificates - java trust stores: for CA We need to implement the whole 2-stages rolling restart routine for this case. ## Solution ### Implementation: Ensure that: 1. TLS certificates rotation on expiration works as expected without downtime 2. TLS CA certificates rotation on expiration works as expected without downtime 3. TLS certificates rotation works as expected after a CA rotation, without downtime 4. For both simple and large deployments ### Testing: - unit tests - integration tests coverage for the 4 previous cases ### Documentation: Document on charmhub the whole TLS rotation workflow for both deployment modes: - simple - large --------- Co-authored-by: René Radoi <[email protected]> Co-authored-by: Mehdi Bendriss <[email protected]> Co-authored-by: Judit Novak <[email protected]>
- Loading branch information
1 parent
04f14e7
commit 7614a18
Showing
18 changed files
with
1,903 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.