<?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 Re: HDFS encryption confusion in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/HDFS-encryption-confusion/m-p/39187#M2501</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Encryption at rest is used for protecting your data from an unauthorized user who has no read permission in hdfs&amp;nbsp;or has no access to cluster and is trying to read it from the disk directly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In your example the directory&amp;nbsp;&lt;SPAN&gt;/&lt;/SPAN&gt;tmp&lt;SPAN&gt;/user1zone1&lt;/SPAN&gt; has read access for all cluster users and hence user2 is allowed to read from it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;drwxr-xr-x - user1 supergroup 0 2016-02-10 02:42 /tmp/user1zone1&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Mar 2016 19:09:56 GMT</pubDate>
    <dc:creator>venkatsambath</dc:creator>
    <dc:date>2016-03-30T19:09:56Z</dc:date>
    <item>
      <title>HDFS encryption confusion</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HDFS-encryption-confusion/m-p/36860#M2496</link>
      <description>&lt;P&gt;I am new to HDFS Transparent encryption feature.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am using cloudera CDH 5.4.9 and trying to use hdfs encryption in following manner.&lt;BR /&gt;# I am using Java KeyStore and configured KMS service and integrated HDFS to use this JAVA KMS&lt;BR /&gt;# Create two users&lt;BR /&gt;useradd -m user1&lt;BR /&gt;passwd user1&lt;BR /&gt;useradd -m user2&lt;BR /&gt;passwd user2&lt;/P&gt;&lt;P&gt;# As a user1 perform following operations&lt;BR /&gt;# Create key and create user1 encryption zone&lt;BR /&gt;# link user1 zone to created key&lt;BR /&gt;su user1&lt;BR /&gt;hadoop key create user1key1&lt;BR /&gt;hadoop fs -mkdir /tmp/user1zone1&lt;BR /&gt;su hdfs&lt;BR /&gt;hdfs crypto -createZone -keyName user1key1 -path /tmp/user1zone1&lt;/P&gt;&lt;P&gt;# verify zone is created&lt;BR /&gt;hdfs crypto -listZones&lt;/P&gt;&lt;P&gt;# create file with user1 credential and put into user1 encryption zone&lt;BR /&gt;echo "Hello World" &amp;gt; /tmp/helloWorld.txt&lt;BR /&gt;hadoop fs -put /tmp/helloWorld.txt /tmp/user1zone1&lt;BR /&gt;hadoop fs -cat /tmp/user1zone1/helloWorld.txt&lt;BR /&gt;Hello World&lt;/P&gt;&lt;P&gt;# Verify if file is encrypted&lt;BR /&gt;su hdfs&lt;BR /&gt;hadoop fs -cat /.reserved/raw/tmp/zone1/helloWorld.txt&lt;BR /&gt;T▒▒6▒5▒▒7̼[&lt;/P&gt;&lt;P&gt;# Now login as another user&lt;BR /&gt;su user2&lt;BR /&gt;hadoop fs -cat /tmp/user1zone1/helloWorld.txt&lt;BR /&gt;Hello World&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If encryption zone was created by user1 then how another user2 is able to view the encrypted data.&lt;BR /&gt;I might be missing something very basic here.&lt;BR /&gt;&lt;BR /&gt;Can anyone shed some light on this?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:01:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HDFS-encryption-confusion/m-p/36860#M2496</guid>
      <dc:creator>vmshah</dc:creator>
      <dc:date>2022-09-16T10:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS encryption confusion</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HDFS-encryption-confusion/m-p/37172#M2497</link>
      <description>&lt;P&gt;First of all both users are accessing the file because u may not have set the permissions of both the users accordingly to access that file. Dont get confused with Encryption and permission. Question you asked is something related to file level permissions and encryption has lot more use cases compare to permissions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When creating a new file in an encryption zone, the NameNode asks the KMS to generate a new EDEK encrypted with the encryption zone’s key. The EDEK is then stored persistently as part of the file’s metadata on the NameNode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When reading a file within an encryption zone, the NameNode provides the client with the file’s EDEK and the encryption zone key version used to encrypt the EDEK. The client then asks the KMS to decrypt the EDEK, which involves checking that the client has permission to access the encryption zone key version. Assuming that is successful, the client uses the DEK to decrypt the file’s contents.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this clears your question!!!&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2016 04:58:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HDFS-encryption-confusion/m-p/37172#M2497</guid>
      <dc:creator>naveen1</dc:creator>
      <dc:date>2016-02-09T04:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS encryption confusion</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HDFS-encryption-confusion/m-p/37213#M2498</link>
      <description>&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Confusion i had was because of following question.&lt;/P&gt;&lt;P&gt;If let's say user1 has put&amp;nbsp;file into encryption zone&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hadoop fs -put /tmp/helloWorld.txt /tmp/user1zone1&lt;/P&gt;&lt;P&gt;drwxr-xr-x - user1 supergroup 0 2016-02-10 02:42 /tmp/user1zone1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now let's say as user2 execute following comand&amp;nbsp;&lt;/P&gt;&lt;P&gt;hadoop fs -cat /tmp/user1zone1/helloWorld.txt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;no matter whatever user i use to read content i am able to read the content of a file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should user2&amp;nbsp;able to see original text contents?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2016 21:31:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HDFS-encryption-confusion/m-p/37213#M2498</guid>
      <dc:creator>vmshah</dc:creator>
      <dc:date>2016-02-09T21:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS encryption confusion</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HDFS-encryption-confusion/m-p/37214#M2499</link>
      <description>&lt;P&gt;Vmshah,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do both users belong to the same group?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;d(rwx)(r)-x(r)-x -- according to permissions set, here user1 groups and others can read and execute the data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want only user 1 to read, write and execute the data then set the permissions accordingly.(eg: hadoop fs -chmod 700 /tmp/user1zone1/helloWorld.txt )&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2016 21:40:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HDFS-encryption-confusion/m-p/37214#M2499</guid>
      <dc:creator>naveen1</dc:creator>
      <dc:date>2016-02-09T21:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS encryption confusion</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HDFS-encryption-confusion/m-p/37215#M2500</link>
      <description>I understand that setting permission will control the read write.&lt;BR /&gt;&lt;BR /&gt;But then how encryption is useful to prevent other users reading your data.&lt;BR /&gt;&lt;BR /&gt;I understand if you get block level access to file, user will not be able&lt;BR /&gt;to read.&lt;BR /&gt;&lt;BR /&gt;For security related to other user in the same system seeing encrypted&lt;BR /&gt;data, I am not sure if there would be the use case for that or not&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Feb 2016 21:54:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HDFS-encryption-confusion/m-p/37215#M2500</guid>
      <dc:creator>vmshah</dc:creator>
      <dc:date>2016-02-09T21:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS encryption confusion</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HDFS-encryption-confusion/m-p/39187#M2501</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Encryption at rest is used for protecting your data from an unauthorized user who has no read permission in hdfs&amp;nbsp;or has no access to cluster and is trying to read it from the disk directly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In your example the directory&amp;nbsp;&lt;SPAN&gt;/&lt;/SPAN&gt;tmp&lt;SPAN&gt;/user1zone1&lt;/SPAN&gt; has read access for all cluster users and hence user2 is allowed to read from it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;drwxr-xr-x - user1 supergroup 0 2016-02-10 02:42 /tmp/user1zone1&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 19:09:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HDFS-encryption-confusion/m-p/39187#M2501</guid>
      <dc:creator>venkatsambath</dc:creator>
      <dc:date>2016-03-30T19:09:56Z</dc:date>
    </item>
  </channel>
</rss>

