[ 
https://issues.apache.org/jira/browse/HADOOP-8152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Aaron T. Myers updated HADOOP-8152:
-----------------------------------

    Attachment: HADOOP-8152.patch

Here's a patch which addresses the issue. Let me summarize the changes:

* Both UserGroupInformation and SecurityUtil are currently marked 
InterfaceAudience.LimitedPrivate("HDFS", "MapReduce") and 
InterfaceStability.Evolving. This is unchanged.
* This patch adds InterfaceAudience.Public and InterfaceStability.Evolving 
annotations to getCurrentUser, getLoginUser, createRemoteUser, createProxyUser, 
and both variants of doAs in UserGroupInformation.
* This patch adds InterfaceAudience.Public and InterfaceStability.Evolving 
annotations  to both variants of the method "login" in SecurityUtil.
* This patch removes two cases of individual methods being marked 
InterfaceAudience.LimitedPrivate("HDFS", "MapReduce") in UserGroupInformation. 
Since the class is already annotated the same way, these seemed redundant.

My understanding of the nature of the InterfaceAudience and InterfaceStability 
annotations is that the most-specific annotation is what applies. Thus, just 
increasing the InterfaceAudience visibility of these methods should be 
sufficient for the purposes of dependent projects.

The methods that I chose here are the ones that I'm aware of dependent projects 
using.  If others are aware of more, I'd be happy to add them to this patch.
                
> Expand public APIs for security library classes
> -----------------------------------------------
>
>                 Key: HADOOP-8152
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8152
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: security
>    Affects Versions: 2.0.0
>            Reporter: Aaron T. Myers
>            Assignee: Aaron T. Myers
>         Attachments: HADOOP-8152.patch
>
>
> Currently projects like Hive and HBase use UserGroupInformation and 
> SecurityUtil methods. Both of these classes are marked 
> LimitedPrivate(HDFS,MR) but should probably be marked more generally public.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to