Skip to content

HDDS-7379. Use certificate bundles instead of the sole certificate#4231

Merged
fapifta merged 16 commits intoapache:masterfrom
Galsza:HDDS-7379_use_certificate_bundles_instead_of_the_sole_certificate
Feb 17, 2023
Merged

HDDS-7379. Use certificate bundles instead of the sole certificate#4231
fapifta merged 16 commits intoapache:masterfrom
Galsza:HDDS-7379_use_certificate_bundles_instead_of_the_sole_certificate

Conversation

@Galsza
Copy link
Contributor

@Galsza Galsza commented Feb 1, 2023

What changes were proposed in this pull request?

Instead of using the sole certificate the whole cert bundle is used now.

In this new version, certificates are stored along with their entire certificate path up to the root CA. When getting these certificates, the whole chain is read back instead. In protocol messages the chain is converted into a String, so in reality SCMGetCertResponseProto.x509Certificate is now a pem encoded full certification chain.

Some minor refactors in CertificateCodec and removing some dead code is also included.

What is the link to the Apache JIRA

HDDS-7379

How was this patch tested?

Some local tests were added as well as a sanity check of running a local cluster with security enabled and inserting a key.

@Galsza Galsza marked this pull request as ready for review February 6, 2023 14:53
Copy link
Contributor

@fapifta fapifta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Galsza thank you very much for working on this piece.

thank you also for your patience on the review, it is a fairly big patch, but in general most of the changes are reasonable, and good.
Please find a few inline concerns/suggestions of mine.

@fapifta
Copy link
Contributor

fapifta commented Feb 16, 2023

Thank you for the continued work on this one @Galsza. I went through the changes that you added after my comments so far, and it seems to be good. I would like to scan through the changes together with all the commits just to be sure I checked all changes together as well.
In the meantime I have restarted the failing CI test run.

Copy link
Contributor

@fapifta fapifta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you once again to work on this one.

+1

@fapifta fapifta merged commit 23e94b6 into apache:master Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants