-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PLAT-4899]Basic validation of certificates
Summary: Ticket - https://yugabyte.atlassian.net/browse/PLAT-4899 Design doc - https://docs.google.com/document/d/18MVJUDT_QJm0HPc2dP7aitrj_of7O0CZ33e4PyKFlwM/edit Adding a new subtask for validating the customCA config (customCertHostPath) for an onprem universe. The subtask will be run on create universe, create RR, edit universe, add nodes, certs rotate and toggle tls. We had some existing checks that were part of preflight checks but we never used to run them, moved those checks to a new subtask in order to run them for certs rotate and toggle TLS as well. Adding all certificate related validations during add certificate behind a runtimeConfig `yb.tlscertificate.enableValidation`. Adding all certificate related validation for universes behing `yb.tls.skip_cert_validation` (existing config) Corrected the certificates in unit tests (the certs didn't have CA: True) Test Plan: Tested following flows - Created a valid CA certificate config for self-signed, customCA and cert-manger - Created an invalid CA certificate config for self-signed, customCA and cert-manger -> YBA blocks it - Created onprem universe with valid CA config - Created onprem universe with invalid CAconfiguration - Ran AddReadReplica, ExpandUniverse, FullMove, CertificateRotation, AddNode tasks - Onprem universe creation using an invalid certificateConfig with RuntimeConfig set to False - Ran ToggleTls tests - Verified that we are using ssh for verifying certs if nodes are not provisioned and using NodeAgent when nodes are provisioned. Reviewers: #yba-api-review!, svarshney, asharma, yshchetinin, sanketh Reviewed By: svarshney Subscribers: yugaware Differential Revision: https://phorge.dev.yugabyte.com/D36271
- Loading branch information
Showing
27 changed files
with
838 additions
and
332 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
Oops, something went wrong.