xiaoyuyao commented on a change in pull request #758: HDDS-3280. Ozone 
BaseHTTPServer should honor ozone.security.enabled c…
URL: https://github.com/apache/hadoop-ozone/pull/758#discussion_r404315888
 
 

 ##########
 File path: 
hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/server/http/BaseHttpServer.java
 ##########
 @@ -145,16 +146,19 @@ public BaseHttpServer(Configuration conf, String name) 
throws IOException {
       final InetSocketAddress httpsAddr, String name, String spnegoUserNameKey,
       String spnegoKeytabFileKey) throws IOException {
     HttpConfig.Policy policy = getHttpPolicy(conf);
+    boolean isSecurityEnabled = OzoneSecurityUtil.isSecurityEnabled(conf) &&
 
 Review comment:
   NIT: can we wrap this into OzoneSecurityUtil as isHttpSecurityEnabled?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to