You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by Gautam Borad <gb...@gmail.com> on 2016/03/01 14:09:15 UTC

Re: Review Request 44060: AMBARI-15199 : Handle log dir dependency for Ranger KMS installation


> On Feb. 29, 2016, 8:15 p.m., Jonathan Hurley wrote:
> > ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/setup_ranger_xml.py, lines 103-105
> > <https://reviews.apache.org/r/44060/diff/1/?file=1271897#file1271897line103>
> >
> >     Could this be a security issue on systems where they only want specific users to access config directories? Granting a+rx?

This is for log directories only. Other components like hbase, knox, hive are having similar implementation. To be on safer side shall we keep 0754 ?


- Gautam


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/44060/#review121311
-----------------------------------------------------------


On Feb. 26, 2016, 12:43 p.m., Gautam Borad wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/44060/
> -----------------------------------------------------------
> 
> (Updated Feb. 26, 2016, 12:43 p.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez, Jaimin Jetly, Jonathan Hurley, Mahadev Konar, Sumit Mohanty, Selvamohan Neethiraj, and Velmurugan Periasamy.
> 
> 
> Bugs: AMBARI-15199
>     https://issues.apache.org/jira/browse/AMBARI-15199
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> **PROBLEM:**
> Ranger KMS installation fails if log dir for Ranger KMS is not present.
> 
> **PROPOSED SOLUTION:**
> Current implementation provides the permissions to the log dir, but it doesn't create the log dir if log dir is not present. 
> Need to create the log directory if it does not exist.
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/setup_ranger_xml.py fcceaa6 
>   ambari-server/src/main/resources/common-services/RANGER_KMS/0.5.0.2.3/package/scripts/kms.py 7c7a7c8 
> 
> Diff: https://reviews.apache.org/r/44060/diff/
> 
> 
> Testing
> -------
> 
> 1) Tested Ranger KMS install by setting a non-existing log directory and verified that log directory is getting created and logs are getting saved in that directory.
> 
> 2) Verified Ranger KMS install by setting a existing directory as a log directory and verified logs are getting saved in that directory.
> 
> 
> Thanks,
> 
> Gautam Borad
> 
>