<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Ranger KMS functionality behavior in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-KMS-functionality-behavior/m-p/220167#M62973</link>
    <description>&lt;P&gt;Hi team,&lt;/P&gt;&lt;P&gt;I have couple of questions on functionality.&lt;/P&gt;&lt;P&gt;What I have expected to using Ranger KMS is when the data is written in encrypted zone, the data should be in human readable but as below:&lt;/P&gt;&lt;PRE&gt;$ hdfs dfs -get /data/protegrity/data4.dat ./encrypted_data4.dat 

$ cat encrypted_data4.dat 
1AY&amp;amp;SX—“#„bd3ƒ'•  DE_ENC256®&amp;#127;XQy”ª8@¿Uuaùï‰ºfšÆe4@ãoNVÕh¡}69þC$8¤ÌªÒÓ»Ö]\GR®´éXûš™?âëD
}‹]ê~+¨ÑN•Ä²z?iÄÝ 5ùDüt.ïÆ,+í/–öõZ9õXÙ+]R_&amp;#141;#Ä×â6&amp;gt; 
¦KÂœÌ'„J   çÜÑâ,OzÝi.Ú&amp;#129;^4WGÂ­±´± 
2P‹q&amp;#144;ããE¼iåsLH'xH×oÚ6_ˆ'„Ã´E¦¯î©{_HçËƒðîÃ‹íÒ†t¾+’:ÁÓ‡›°àå&amp;#129;7¢@fH“9¾XTd/F'Îc9«þí  òûHýÁN‰QO4y5ànG¤wš2¢»&amp;lt;&lt;/PRE&gt;&lt;P&gt;Is this possible using Ranger KMS?&lt;/P&gt;&lt;P&gt;Secondly is it possible to do column level encryption in Hive/HBase using Ranger KMS?&lt;/P&gt;&lt;P&gt;Example as below:&lt;/P&gt;&lt;PRE&gt;0: jdbc:hive2://hortonworks.com&amp;gt; select * from table4;
+------------+---------------+---------------+-----------------------+------------------------+---------------------+
| table4.id  | table4.fname  | table4.lname  | table4.fake_prim_nss  | table4.fake_secnd_nss  | table4.fake_bod_dt  |
+------------+---------------+---------------+-----------------------+------------------------+---------------------+
| 1          | Sridhar       | Reddy         | 123456789             | 123456789              | 1990-03-23          |
| 2          | Happy         | Tom           | 234567890             | 234567890              | 1971-02-10          |
| 3          | Jun           | Yu            | 345678901             | 345678901              | 1972-10-23          |
+------------+---------------+---------------+-----------------------+------------------------+---------------------+
5 rows selected (0.255 seconds)
0: jdbc:hive2://hortonworks.com&amp;gt; select id, fname, lname, ptyProtectStr(cast(fake_prim_nss as string),'DE_nss23') as fake_prim_nss, fake_secnd_nss, fake_bod_dt, fake_bod_tms from table4;
+-----+---------+--------+----------------+-----------------+--------------+
| id  |  fname  | lname  | fake_prim_nss  | fake_secnd_nss  | fake_bod_dt  |
+-----+---------+--------+----------------+-----------------+--------------+
| 2   | Happy   | Tom    | 682585704      | 234567890       | 1971-02-10   |
| 1   | Sridhar | Reddy  | 115506653      | 123456789       | 1990-03-23   |
| 3   | Jun     | Yu     | 874950339      | 345678901       | 1972-10-23   |
+-----+---------+--------+----------------+-----------------+--------------+&lt;/PRE&gt;&lt;P&gt;Thirdly, how Ranger KMS will honor  when you set hive doAs=false.&lt;/P&gt;&lt;P&gt;Any needful help is highly appreciated. Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Thu, 15 Jun 2017 23:03:46 GMT</pubDate>
    <dc:creator>bandarusridhar1</dc:creator>
    <dc:date>2017-06-15T23:03:46Z</dc:date>
    <item>
      <title>Ranger KMS functionality behavior</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-KMS-functionality-behavior/m-p/220167#M62973</link>
      <description>&lt;P&gt;Hi team,&lt;/P&gt;&lt;P&gt;I have couple of questions on functionality.&lt;/P&gt;&lt;P&gt;What I have expected to using Ranger KMS is when the data is written in encrypted zone, the data should be in human readable but as below:&lt;/P&gt;&lt;PRE&gt;$ hdfs dfs -get /data/protegrity/data4.dat ./encrypted_data4.dat 

$ cat encrypted_data4.dat 
1AY&amp;amp;SX—“#„bd3ƒ'•  DE_ENC256®&amp;#127;XQy”ª8@¿Uuaùï‰ºfšÆe4@ãoNVÕh¡}69þC$8¤ÌªÒÓ»Ö]\GR®´éXûš™?âëD
}‹]ê~+¨ÑN•Ä²z?iÄÝ 5ùDüt.ïÆ,+í/–öõZ9õXÙ+]R_&amp;#141;#Ä×â6&amp;gt; 
¦KÂœÌ'„J   çÜÑâ,OzÝi.Ú&amp;#129;^4WGÂ­±´± 
2P‹q&amp;#144;ããE¼iåsLH'xH×oÚ6_ˆ'„Ã´E¦¯î©{_HçËƒðîÃ‹íÒ†t¾+’:ÁÓ‡›°àå&amp;#129;7¢@fH“9¾XTd/F'Îc9«þí  òûHýÁN‰QO4y5ànG¤wš2¢»&amp;lt;&lt;/PRE&gt;&lt;P&gt;Is this possible using Ranger KMS?&lt;/P&gt;&lt;P&gt;Secondly is it possible to do column level encryption in Hive/HBase using Ranger KMS?&lt;/P&gt;&lt;P&gt;Example as below:&lt;/P&gt;&lt;PRE&gt;0: jdbc:hive2://hortonworks.com&amp;gt; select * from table4;
+------------+---------------+---------------+-----------------------+------------------------+---------------------+
| table4.id  | table4.fname  | table4.lname  | table4.fake_prim_nss  | table4.fake_secnd_nss  | table4.fake_bod_dt  |
+------------+---------------+---------------+-----------------------+------------------------+---------------------+
| 1          | Sridhar       | Reddy         | 123456789             | 123456789              | 1990-03-23          |
| 2          | Happy         | Tom           | 234567890             | 234567890              | 1971-02-10          |
| 3          | Jun           | Yu            | 345678901             | 345678901              | 1972-10-23          |
+------------+---------------+---------------+-----------------------+------------------------+---------------------+
5 rows selected (0.255 seconds)
0: jdbc:hive2://hortonworks.com&amp;gt; select id, fname, lname, ptyProtectStr(cast(fake_prim_nss as string),'DE_nss23') as fake_prim_nss, fake_secnd_nss, fake_bod_dt, fake_bod_tms from table4;
+-----+---------+--------+----------------+-----------------+--------------+
| id  |  fname  | lname  | fake_prim_nss  | fake_secnd_nss  | fake_bod_dt  |
+-----+---------+--------+----------------+-----------------+--------------+
| 2   | Happy   | Tom    | 682585704      | 234567890       | 1971-02-10   |
| 1   | Sridhar | Reddy  | 115506653      | 123456789       | 1990-03-23   |
| 3   | Jun     | Yu     | 874950339      | 345678901       | 1972-10-23   |
+-----+---------+--------+----------------+-----------------+--------------+&lt;/PRE&gt;&lt;P&gt;Thirdly, how Ranger KMS will honor  when you set hive doAs=false.&lt;/P&gt;&lt;P&gt;Any needful help is highly appreciated. Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2017 23:03:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-KMS-functionality-behavior/m-p/220167#M62973</guid>
      <dc:creator>bandarusridhar1</dc:creator>
      <dc:date>2017-06-15T23:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger KMS functionality behavior</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-KMS-functionality-behavior/m-p/220168#M62974</link>
      <description>&lt;P&gt;1] Since KMS supports HDFS TDE (Transparent data encryption), client will decrypt the file during read so real content will be shown. If interested in seeing actual encrypted data, /.reserved/raw/&amp;lt;directory-path&amp;gt;/&amp;lt;filename&amp;gt; can be used. &lt;/P&gt;&lt;P&gt;2] Since the entire hive warehouse or hbase data dir is encrypted with HDFS TDE, column level encryption is not required. &lt;/P&gt;&lt;P&gt;3] If hive doAs is false, then hive user needs to be setup as proxy user in KMS. &lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2017 23:18:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-KMS-functionality-behavior/m-p/220168#M62974</guid>
      <dc:creator>vperiasamy</dc:creator>
      <dc:date>2017-06-15T23:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger KMS functionality behavior</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-KMS-functionality-behavior/m-p/220169#M62975</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/47/vperiasamy.html" nodeid="47"&gt;@vperiasamy&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Awesome.&lt;/P&gt;&lt;P&gt;Can you please even let me know the permissions/functionality of below in Ranger KMS UI, it would be helpful if you can share any notes or links&lt;/P&gt;&lt;PRE&gt;Get 
Set Key Materials
Get Keys
Get Metadata&lt;/PRE&gt;&lt;P&gt;After installing Ranger KMS even though if the user is not having any permissions on location '/data/protegrity/' from Ranger, and having 'Decrypt EEK' permissions from Ranger KMS UI, user is able to read the data. My question is now, will the Ranger permissions(Read, Write, Create) will not honored on encrypted zone?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2017 23:40:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-KMS-functionality-behavior/m-p/220169#M62975</guid>
      <dc:creator>bandarusridhar1</dc:creator>
      <dc:date>2017-06-15T23:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger KMS functionality behavior</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-KMS-functionality-behavior/m-p/220170#M62976</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/5746/bandarusridhar1.html" nodeid="5746"&gt;@Sridhar Reddy&lt;/A&gt; - HDFS/Ranger permissions will continue to work as-is on encryption zone. If there are audit logs, please check how the user is getting read access to the folder (whether through Ranger ACL or Hadoop ACL). &lt;/P&gt;&lt;P&gt;Refer &lt;A href="https://hadoop.apache.org/docs/r2.8.0/hadoop-kms/index.html#ACLs_Access_Control_Lists"&gt;this link&lt;/A&gt; for KMS ACL. &lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2017 23:51:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-KMS-functionality-behavior/m-p/220170#M62976</guid>
      <dc:creator>vperiasamy</dc:creator>
      <dc:date>2017-06-15T23:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger KMS functionality behavior</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-KMS-functionality-behavior/m-p/220171#M62977</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/47/vperiasamy.html" nodeid="47"&gt;@vperiasamy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks for confirm that Ranger ACL will work as-is. I will debug on it. Thanks for the help, you are the best... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2017 23:56:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-KMS-functionality-behavior/m-p/220171#M62977</guid>
      <dc:creator>bandarusridhar1</dc:creator>
      <dc:date>2017-06-15T23:56:31Z</dc:date>
    </item>
  </channel>
</rss>

