Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HDDS-8587. Prepare CertificateClient to store more than one rootCA certificate #4717

Merged
merged 2 commits into from
Jun 6, 2023

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
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants