[
https://issues.apache.org/jira/browse/HIVE-11826?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14804715#comment-14804715
]
Aihua Xu commented on HIVE-11826:
---------------------------------
Sorry. I didn't upstream 0.13 but in CDH5.3.3 with Hive-0.13 which seems to
have correct change. Then upstream 0.13 will also have the same issue. I will
update to use the newer version.
{noformat}
if (useProxy) {
clientUgi = UserGroupInformation.createProxyUser(
endUser, UserGroupInformation.getLoginUser());
// ensure that metastore user has privilege to impersonate the
requesting user
ProxyUsers.authorize(clientUgi,
getRemoteAddress().getHostAddress(), null);
remoteUser.set(clientUgi.getShortUserName());
LOG.debug("Set remoteUser :" + remoteUser.get());
{noformat}
> 'hadoop.proxyuser.hive.groups' configuration doesn't prevent unauthorized
> user to access metastore
> --------------------------------------------------------------------------------------------------
>
> Key: HIVE-11826
> URL: https://issues.apache.org/jira/browse/HIVE-11826
> Project: Hive
> Issue Type: Bug
> Components: Metastore
> Affects Versions: 2.0.0
> Reporter: Aihua Xu
> Assignee: Aihua Xu
> Attachments: HIVE-11826.2.patch, HIVE-11826.patch
>
>
> With 'hadoop.proxyuser.hive.groups' configured in core-site.xml to certain
> groups, currently if you run the job with a user not belonging to those
> groups, it won't fail to access metastore. With old version hive 0.13,
> actually it fails properly.
> Seems HadoopThriftAuthBridge20S.java correctly call ProxyUsers.authorize()
> while HadoopThriftAuthBridge23 doesn't.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)