Skip to content

RATIS-1331. Make GrpcTLS config truststore param list.#436

Merged
mukul1987 merged 4 commits intoapache:masterfrom
bharatviswa504:RATIS-1331
Mar 9, 2021
Merged

RATIS-1331. Make GrpcTLS config truststore param list.#436
mukul1987 merged 4 commits intoapache:masterfrom
bharatviswa504:RATIS-1331

Conversation

@bharatviswa504
Copy link
Contributor

What changes were proposed in this pull request?

This Jira is to make truststore param a list of trusted CA certificate.
This will be needed for SCM HA.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/RATIS-1331

How was this patch tested?

@bharatviswa504
Copy link
Contributor Author

cc @xiaoyuyao / @bshashikant for review.

Copy link
Contributor

@mukul1987 mukul1987 left a comment

Choose a reason for hiding this comment

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

+1, LGTM

X509Certificate trustStore, boolean mTlsEnabled) {
this.privateKey = privateKey;
this.certChain = certChain;
this.trustStore = Arrays.asList(trustStore);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggestion: use Collections.singletonList instead of Arrays.asList.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@mukul1987 mukul1987 merged commit cec6b21 into apache:master Mar 9, 2021
symious pushed a commit to symious/ratis that referenced this pull request Feb 20, 2024
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