charlesconnell commented on code in PR #8959:
URL: https://github.com/apache/hbase/pull/8959#discussion_r4790458993


##########
hbase-common/src/main/java/org/apache/hadoop/hbase/io/crypto/tls/X509Util.java:
##########
@@ -280,6 +281,10 @@ public static SslContext 
createSslContextForClient(Configuration config)
       sslContextBuilder.ciphers(Arrays.asList(cipherSuites));
     }
 
+    // Override BoringSSL's default key exchange groups, to ensure 
post-quantum protection
+    sslContextBuilder.option(OpenSslContextOption.GROUPS,
+      new String[] { "X25519MLKEM768", "P-384", "X25519", "P-256" });

Review Comment:
   I don't think we should make this setting configurable. I think we should 
provide strong security out-of-the-box and not allow users to weaken it. Of 
course, I also care about usability, but I don't think that there are 
situations where hardcoding this would reduce usability. For another example of 
this philosophy, BoringSSL actually ignores list of cipher suites we pass to 
it, if it's using TLSv1.3.
   
   > How does this affect netty-tcnative with a backend that isn't BoringSSL?
   
   In theory it will work with any OpenSSL-compatible backend that 
netty-tcnative uses, which is all of them. I'll note that since we control the 
HBase build process, an HBase user would need to have their own patched build 
to run into this situation.
   
   > How does this affect the JDK crypto provider?
   
   It should have no effect when netty is using the JDK crypto provider. To 
avoid any doubt, I've moved my change so it won't run in this case. This does 
leave a security hole open -- this PR only handles the case where we're on the 
default settings path and using the netty-tcnative BoringSSL backend.
   
   > older Netty providers
   
   I'm not sure what you're referring to exactly here. But we control our Netty 
version so we really don't need to worry about that.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to