You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Galsza (via GitHub)" <gi...@apache.org> on 2023/03/23 21:19:22 UTC

[GitHub] [ozone] Galsza opened a new pull request, #4464: HDDS-7573. Use key and trustmanager for communication.

Galsza opened a new pull request, #4464:
URL: https://github.com/apache/ozone/pull/4464

   ## What changes were proposed in this pull request?
   
   After [Use keyManager and trustManager provided ...](https://issues.apache.org/jira/browse/HDDS-7590) couple of places remained that used keys/certificates for communication. This should be changed to use key/trustmanagers instead. This comes with the advantage of allowing certificate bundles to be used during the communication.
   
   ## What is the link to the Apache JIRA
   
   [HDDS-7573](https://issues.apache.org/jira/browse/HDDS-7573)
   
   ## How was this patch tested?
   
   Existing tests cover communication, and a simple sanity check was done on a local cluster to see basic functionality still working.
   
   Additional testing will be performed in: [HDDS-8266](https://issues.apache.org/jira/browse/HDDS-8266)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


[GitHub] [ozone] ChenSammi commented on a diff in pull request #4464: HDDS-7573. Use key and trustmanager for communication.

Posted by "ChenSammi (via GitHub)" <gi...@apache.org>.
ChenSammi commented on code in PR #4464:
URL: https://github.com/apache/ozone/pull/4464#discussion_r1147453453


##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/transport/server/ratis/XceiverServerRatis.java:
##########
@@ -498,14 +497,15 @@ public static XceiverServerRatis newXceiverServerRatis(
   private static Parameters createTlsParameters(SecurityConfig conf,
       CertificateClient caClient) throws IOException {
     if (conf.isSecurityEnabled() && conf.isGrpcTlsEnabled()) {
-      List<X509Certificate> caList = HAUtils.buildCAX509List(caClient,
-          conf.getConfiguration());
+      KeyStoresFactory serverFactory =
+          caClient.getServerKeyStoresFactory();
+      KeyStoresFactory clientFactory = caClient.getClientKeyStoresFactory();

Review Comment:
   Should use getServerKeyStoresFactory here. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


[GitHub] [ozone] ChenSammi merged pull request #4464: HDDS-7573. Use keyManager and trustManager provided by keyStoreFactory in Ratis group

Posted by "ChenSammi (via GitHub)" <gi...@apache.org>.
ChenSammi merged PR #4464:
URL: https://github.com/apache/ozone/pull/4464


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


[GitHub] [ozone] ChenSammi commented on pull request #4464: HDDS-7573. Use key and trustmanager for communication.

Posted by "ChenSammi (via GitHub)" <gi...@apache.org>.
ChenSammi commented on PR #4464:
URL: https://github.com/apache/ozone/pull/4464#issuecomment-1482422508

   @Galsza , thanks for working on this.  The failed acceptance test looks relevant. Please have a check.  


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


[GitHub] [ozone] ChenSammi commented on pull request #4464: HDDS-7573. Use keyManager and trustManager provided by keyStoreFactory in Ratis group

Posted by "ChenSammi (via GitHub)" <gi...@apache.org>.
ChenSammi commented on PR #4464:
URL: https://github.com/apache/ozone/pull/4464#issuecomment-1485100093

   Thanks @Galsza .  LGTM +1. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org