commit | 370bd2ad99a469056841c0fb35169a401827a9a9 | [log] [tgz] |
---|---|---|
author | Igor Guzenko <ihor.huzenko.igs@gmail.com> | Tue Mar 17 17:58:06 2020 +0200 |
committer | Arina Ielchiieva <arina.yelchiyeva@gmail.com> | Wed Mar 18 10:23:38 2020 +0200 |
tree | c529378b15daa5733cd578f499c03caa02296f7b | |
parent | 2f8dcb62f65a81510385173757bd33a93789d95a [diff] |
DRILL-7644: Log SSL protocol version at Drill start up
diff --git a/exec/java-exec/src/main/java/org/apache/drill/exec/rpc/user/UserServer.java b/exec/java-exec/src/main/java/org/apache/drill/exec/rpc/user/UserServer.java index 1c2e2e2..276758e 100644 --- a/exec/java-exec/src/main/java/org/apache/drill/exec/rpc/user/UserServer.java +++ b/exec/java-exec/src/main/java/org/apache/drill/exec/rpc/user/UserServer.java
@@ -137,6 +137,7 @@ .initializeSSLContext(true) .validateKeyStore(true) .build(); + logger.info("Rpc server configured to use TLS protocol '{}'", sslConfig.getProtocol()); } catch (DrillException e) { throw new DrillbitStartupException(e.getMessage(), e.getCause()); }
diff --git a/exec/java-exec/src/main/java/org/apache/drill/exec/server/rest/ssl/SslContextFactoryConfigurator.java b/exec/java-exec/src/main/java/org/apache/drill/exec/server/rest/ssl/SslContextFactoryConfigurator.java index a5aa541..62a740b 100644 --- a/exec/java-exec/src/main/java/org/apache/drill/exec/server/rest/ssl/SslContextFactoryConfigurator.java +++ b/exec/java-exec/src/main/java/org/apache/drill/exec/server/rest/ssl/SslContextFactoryConfigurator.java
@@ -95,6 +95,7 @@ } sslFactory.setProtocol(sslConf.getProtocol()); sslFactory.setIncludeProtocols(sslConf.getProtocol()); + logger.info("Web server configured to use TLS protocol '{}'", sslConf.getProtocol()); if (config.hasPath(ExecConstants.HTTP_JETTY_SSL_CONTEXT_FACTORY_OPTIONS_PREFIX)) { setStringIfPresent(ExecConstants.HTTP_JETTY_SERVER_SSL_CONTEXT_FACTORY_CERT_ALIAS, sslFactory::setCertAlias); setStringIfPresent(ExecConstants.HTTP_JETTY_SERVER_SSL_CONTEXT_FACTORY_CRL_PATH, sslFactory::setCrlPath);