[ 
https://issues.apache.org/jira/browse/HDFS-6386?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14032177#comment-14032177
 ] 

Andrew Wang commented on HDFS-6386:
-----------------------------------

Thanks for doing the split, this was a lot easier to review :) A more thorough 
review:

* We need to rebase the fs-encryption branch (and this patch) on trunk. The 
xattr code has changed slightly, one example being where we log the edit (FSN 
now, not FSDir).

FSNamesystem:
* listEZ needs to only return EZs where the user has permission to know about 
the EZ path, else we're exposing the existence of the path
* In createEncryptionZone, we need to catch the KP exception such that it's 
logged in the retry cache.
* Using FSDirectory#getPathComponentsForReservedPaths doesn't look right, can 
you check that it's not returning null? Doing some more tests with multiple EZs 
would be good, I noticed your listEZ test doesn't check the size of the 
returned listing which might be masking an error here.
* KeyProvider should be a single word in javadoc

FSDirectory:
* I think the exception thrown from unprotectedSetXAttr contains the 
"system.xxx" xattr name. Maybe we should throw a fresh new exception rather 
than showing this to the user. Could also test for this explicitly rather than 
rethrowing an exception, since that's more expensive.
* Do we care about repeating IVs? I'm not a cryptographer, but a Google search 
turns up concerns for "stream cipher initialization vector birthday paradox".

KeyAndIv
* Need interface annotations

> HDFS Encryption Zones
> ---------------------
>
>                 Key: HDFS-6386
>                 URL: https://issues.apache.org/jira/browse/HDFS-6386
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: namenode, security
>            Reporter: Alejandro Abdelnur
>            Assignee: Charles Lamb
>             Fix For: fs-encryption (HADOOP-10150 and HDFS-6134)
>
>         Attachments: HDFS-6386.4.patch, HDFS-6386.5.patch, HDFS-6386.6.patch, 
> HDFS-6386.8.patch
>
>
> Define the required security xAttributes for directories and files within an 
> encryption zone and how they propagate to children. Implement the logic to 
> create/delete encryption zones.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to