Github user StephanEwen commented on a diff in the pull request:

    https://github.com/apache/flink/pull/3486#discussion_r104704130
  
    --- Diff: 
flink-runtime/src/main/java/org/apache/flink/runtime/net/SSLUtils.java ---
    @@ -55,6 +58,42 @@ public static boolean getSSLEnabled(Configuration 
sslConfig) {
        }
     
        /**
    +    * Sets SSl version and cipher suites for SSLServerSocket
    +    * @param socket
    +    *        Socket to be handled
    +    * @param config
    +    *        The application configuration
    +    */
    +   public static void setSSLVerAndCipherSuites(ServerSocket socket, 
Configuration config) {
    +           if (socket instanceof SSLServerSocket) {
    +                   ((SSLServerSocket) 
socket).setEnabledProtocols(config.getString(
    +                           ConfigConstants.SECURITY_SSL_PROTOCOL,
    +                           
ConfigConstants.DEFAULT_SECURITY_SSL_PROTOCOL).split(","));
    --- End diff --
    
    simply calling `split()` on a config value may lead to errors with bad 
error messages when the config value is misconfigured. I think it would be nice 
to do some more explicit handling here.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to