vikaskr22 opened a new pull request, #1188:
URL: https://github.com/apache/ranger/pull/1188

   ## What changes were proposed in this pull request?
   
   
embeddedwebserver/src/main/java/org/apache/ranger/server/tomcat/EmbeddedServer.java
 class reads and uses custom truststore and updates the defaultSSLContext.
   
   But Ranger-Admin/KMS uses the connector approach and Tomcat's connector 
doesn't use the keyStore/TrustStore from the defaultContext. Here, code to set 
keyStore into Tomcat's connector is already available but similar code to set 
custom trustStore was missing. Hence , it was falling back to JVM's default 
cacerts.
   
   As part of this PR, code has been added to use custom user provided  
trustStore. 
   
   ## How was this patch tested?
   
   -mvn build has passed
   - Existing UTs has passed
   - Took patch, applied and deployed on internal cluster and verified if 
custom trustStore is being used or not. For this, I enabled mTLS between KMS & 
Admin by setting _ranger.service.https.attrib.clientAuth=true_ and found it 
working.
   


-- 
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