-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Backport 2.6][#8789] Add support for certificate chaining in platfor…
…m/yb-client. Summary: The platform worked under the assumption that each certificate input will be a single certificate object, which is an incorrect assumption in most situations, since this will not be the case in most situations. We will almost always have a certificate chain with an intermediate and a root. This diff ensures we respect all certificates being sent as input while uploading the certificate content, as well as it ensures that the yb-client uses all certs present in the file for the trust store. Original diff: https://phabricator.dev.yugabyte.com/D11839 Original commit: 930d103 Test Plan: Jenkins: rebase: 2.6 yb-client: Added a unit test. platform: 1) Added a unit test. 2) Verified via the cloud workflow. Sent a chain of self-signed certificate to use for generating the server certificates, and verified the universe creation worked as expected. Reviewers: sanketh, arnav Reviewed By: arnav Subscribers: yugaware, asingh, jenkins-bot Differential Revision: https://phabricator.dev.yugabyte.com/D12384
- Loading branch information
Showing
6 changed files
with
391 additions
and
239 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIDAjCCAeqgAwIBAgIGAWrm7jKOMA0GCSqGSIb3DQEBCwUAMC4xFjAUBgNVBAMM | ||
DXliLWFkbWluLXRlc3QxFDASBgNVBAoMC2V4YW1wbGUuY29tMB4XDTE5MDUyMzIz | ||
MDIxMVoXDTIwMDUyMzIzMDIxMVowLjEWMBQGA1UEAwwNeWItYWRtaW4tdGVzdDEU | ||
MBIGA1UECgwLZXhhbXBsZS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEK | ||
AoIBAQCsiEmshRP3c/2XCjhcp2JUx+C3S/PZTczhbw284Nqp911WGdHfU1AYroOl | ||
aIH4/T3LSaY6QZJCekWzRur0zrSU9bM3OqBQTGaZ/LBkrVDY/3XoPWikf9wIHFcK | ||
sX7b13/nbjEUDYl19Vmzukrxag7RVRFuRegrM119i7riXKUHiio/645MGxwKmRSu | ||
1A95985GdYPPhKl3XzeEEHmp6pmorFeJciqCOotJA1LWpGRCAfoYZV9MNkFqZO0q | ||
AyjxnQS69GNALvT8jehXclUfcdFtyaWQqLZmwY520dE2txz3GSTQb5DLLQwKMZYc | ||
lbTMy2l83cB4e+tGQudqQ7LpBiivAgMBAAGjJjAkMBIGA1UdEwEB/wQIMAYBAf8C | ||
AQEwDgYDVR0PAQH/BAQDAgLkMA0GCSqGSIb3DQEBCwUAA4IBAQAgCV3Q+uMAo5n/ | ||
QPjjd6q6YzAYvoKHqKYKLSh/JcOg22zu7o3VUW0pLzRVtXeRdVefSKURhvZjHMnP | ||
1czh2xVpsUwmA/L5/2SiIO1nVWFYe8TyRwP03Fvrr4mKQVlWDSAL5IQ5fxGPRcQa | ||
HcpiD4/Owt9LMVdm7csnMiRbREg+soajnjnISJxX37IWlDbZMsvIQQK9cWwMklQv | ||
aZc3yaI82i/4NFgLq3Epl5rGphHPODp7RupuRWQsGxHqBzv51ip5X6qpoQ8uhLHl | ||
RCGnOCIGkxwt5dZQJne+rajlHtTVr8j/4hNiN2hohbKLwzk+4VJlTtc3DuLR6Eg7 | ||
Y+IbydAD | ||
-----END CERTIFICATE----- | ||
-----BEGIN CERTIFICATE----- | ||
MIICqDCCAZACCQCZzuWUK8cZ7jANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtZ | ||
dWdhQnl0ZSBDQTAeFw0xODA2MDUyMjA5MTZaFw0yODA2MTIyMjA5MTZaMBYxFDAS | ||
BgNVBAMMC1l1Z2FCeXRlIENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKC | ||
AQEArmefuP3J1JBojKc710ATZaDnjDnIRjcRR4Af4jj2k8zZhw/5DoLPSmGCmTSq | ||
t1ZvFe9a2TAAAEZLceV+6ysH+4G2E8haVCYPDlvz00Wt1NFhCUg/zEFpMxDT84HC | ||
HSXPaZKjXR76lp3Afc/xMgK7Q5ZlOaTJ/kJVgVb/SLgq1DjuvQkqQLbQjZLa6vGf | ||
kpU037dJUaptjIPTnmX9OOrOdDkF0lNzMbnL5gwWWIpJofBKT+d4u/d7oX00AC9H | ||
q9oautJOUwNymZkgla12pOlhGOnXJ6tqhoY7EfKM2fpzAGIwAe69a8aIv8zWBBfQ | ||
f8ASQT5TZa4JPrZiBNITPGjHrwIDAQABMA0GCSqGSIb3DQEBCwUAA4IBAQCZN1mL | ||
0jdSLkLh0xaX4Z6icrz+8Hd2dn4Qg1VQtBtW2uYh2ds3SBHQqnoos+tdTJ4WzC7J | ||
hSuIp0d6JaA4ZS7BO8ucH0UzPh0SFfx9NWNiv6aA8SJta0HLD6DBSftdU+YlLWbH | ||
t7D96rOpdf+mJCTpHcJ2HLQWFF1i6cJe1rFhemb0+VHAV1JIC5C5XiJYZmlOYDeG | ||
+IgScyuPmD0fmVdccofm1XxdEdpT2Y/PVZvbfqOfPBpXr6+kU1zjKURfgMyap6nv | ||
JuIho07OU6iGgb41XoQLjC1Ft7AdgPqqCQ141ROpC4Nyne5RDvvCqLiHKJEWpmGo | ||
tyT7FPRPXZhcROGq | ||
-----END CERTIFICATE----- |
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.