You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Min Zhou (JIRA)" <ji...@apache.org> on 2009/09/19 04:36:16 UTC

[jira] Commented: (HIVE-78) Authorization infrastructure for Hive

    [ https://issues.apache.org/jira/browse/HIVE-78?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12757615#action_12757615 ] 

Min Zhou commented on HIVE-78:
------------------------------

well, I've written a another Authorizer like your Authenticator yesterday
{noformat}
public enum Privilege {
   SELECT_PRIV,
   INSERT_PRIV,
   CREATE_PRIV,
   ALTER_PRIV,
   DROP_PRIV,
   CREATE_USER_PRIV,
   GRANT_PRIV,
   SUPER_PRIV
}
public interface Authenticator {
  public boolean authenticate(Privilege priv);
  public boolean authenticate(Privilege priv, Table table);
  public boolean authenticate(Privilege priv,  List<Table> table);
}

public class GenericAuthenticator {
  public GenericAuthenticator (Hive db, User user);
   ...
}
{noformat}
and added a Authenticator instance info thread local SessionState.

> Authorization infrastructure for Hive
> -------------------------------------
>
>                 Key: HIVE-78
>                 URL: https://issues.apache.org/jira/browse/HIVE-78
>             Project: Hadoop Hive
>          Issue Type: New Feature
>          Components: Server Infrastructure
>            Reporter: Ashish Thusoo
>            Assignee: Edward Capriolo
>         Attachments: hive-78-metadata-v1.patch, hive-78-syntax-v1.patch, hive-78.diff
>
>
> Allow hive to integrate with existing user repositories for authentication and authorization infromation.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.