Skip to content

Conversation

@Galsza
Copy link
Contributor

@Galsza Galsza commented May 16, 2023

What changes were proposed in this pull request?

In preparation for root CA cert rotation, the cert clients need to be able to store more than one root CA certificate. This functionality is already possible, but never actually used. The certs are just saved with the ROOT_CA prefix and their ID. Since the ID is unique, it won't cause collisions.

What is the link to the Apache JIRA

HDDS-8587

How was this patch tested?

Only added testing, which run properly on my work:
https://github.com/Galsza/ozone/actions/runs/4977850423

@ChenSammi
Copy link
Contributor

@Galsza, is this PR just one new test case?

@Galsza
Copy link
Contributor Author

Galsza commented May 24, 2023

@ChenSammi Yes, we already support to save multiple root ca. This pull request is just to ensure that everything is working properly. I'm going to Prepare TrustManagers to handle multiple root CA certficates soon, which will add real functionality and some more testing.

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.

Thanks for checking this out, and providing a test.

@fapifta fapifta merged commit defa383 into apache:HDDS-7391-ca-cert-rot Jun 6, 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.

3 participants