Skip to content

Commit

Permalink
[PLAT-14432][Platform] Show certificate Database Node Certificate/key…
Browse files Browse the repository at this point in the history
… and Client Certificate/key for CA certs in certificate details modal

Summary: Update "Certificate Details component" to display additional information (Database Node Certificate/key and Client Certificate/key ) for CA signed certificates.

Test Plan:
Tested manually

{F259034}

Reviewers: lsangappa

Reviewed By: lsangappa

Subscribers: yugaware

Differential Revision: https://phorge.dev.yugabyte.com/D36046
  • Loading branch information
haikarthikssk committed Jul 2, 2024
1 parent e9b5ba5 commit 8dca952
Showing 1 changed file with 23 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const CertificateDetails = ({ certificate, visible, onHide }) => {
<div>{certExpiry}</div>
</li>
<li>
<label>Certificate</label>
<label>{certificate.type === 'CustomCertHostPath' ? "Root CA Certificate" : "Certificate"}</label>
<div>{certificate.certificate}</div>
</li>
{certificate.privateKey && (
Expand Down Expand Up @@ -58,6 +58,28 @@ export const CertificateDetails = ({ certificate, visible, onHide }) => {
</li>
</Fragment>
)}
{
certificate.type === 'CustomCertHostPath' && (
<>
<li>
<label>Database Node Certificate Path</label>
<div>{certificate.customCertInfo?.nodeCertPath ?? '-'}</div>
</li>
<li>
<label>Database Node Certificate Private Key</label>
<div>{certificate.customCertInfo?.nodeKeyPath ?? '-'}</div>
</li>
<li>
<label>Client Certificate</label>
<div>{certificate.customCertInfo?.clientCertPath ?? '-'}</div>
</li>
<li>
<label>Client Certificate Private Key</label>
<div>{certificate.customCertInfo?.clientKeyPath ?? '-'}</div>
</li>
</>
)
}
</>
);

Expand Down

0 comments on commit 8dca952

Please sign in to comment.