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

kalyan kumar kalvagadda edited comment on SENTRY-2170 at 3/30/18 4:41 PM:
--------------------------------------------------------------------------

This include making changes to TPrivilegeChanges class.

 

enum TPrivilegeEntityType

{ ROLE, USER, OBJECT }

*New Definitions*
{noformat}
struct TPrivilegeEntity {
 # Type of the privilege entity
 1: required TPrivilegeEntityType type;

 # Value of entity
 2: required string value;
 }

{noformat}
 

*Here is the an initial thought on changes to TPrivilegeChanges.*

struct TPrivilegeChanges {
 # The authorizable object that needs to be updated.
 1: required string authzObj;

 # The privileges that needs to be added to
 # the authorizable object.
 2: required map<{color:#14892c}TPrivilegeEntity{color}, string> addPrivileges;

 # The privileges that needs to be deleted to
 # the authorizable object.
 3: required map<{color:#14892c}TPrivilegeEntity{color}, string> delPrivileges;
 }


was (Author: kkalyan):
This include making changes to TPrivilegeChanges class.

 

enum TPrivilegeEntityType

{ ROLE, USER, OBJECT }

*New Definitions*
{noformat}
struct TPrivilegeEntity {
 # Type of the privilege entity
 1: required TPrivilegeEntityType type;

 # Value of entity
 2: required string value;
 }

{noformat}
 

Here is the an initial thought on changes to TPrivilegeChanges.

struct TPrivilegeChanges {
 # The authorizable object that needs to be updated.
 1: required string authzObj;

 # The privileges that needs to be added to
 # the authorizable object.
 2: required map<{color:#14892c}TPrivilegeEntity{color}, string> addPrivileges;

 # The privileges that needs to be deleted to
 # the authorizable object.
 3: required map<{color:#14892c}TPrivilegeEntity{color}, string> delPrivileges;
 }

> update the thrift interface between sentry server and HDFS sentry client
> ------------------------------------------------------------------------
>
>                 Key: SENTRY-2170
>                 URL: https://issues.apache.org/jira/browse/SENTRY-2170
>             Project: Sentry
>          Issue Type: Sub-task
>          Components: Sentry
>    Affects Versions: 2.1.0
>            Reporter: kalyan kumar kalvagadda
>            Assignee: kalyan kumar kalvagadda
>            Priority: Major
>         Attachments: SENTRY-2170.001.patch
>
>
> Thrift interface between sentry server and hdfs sentry client should be 
> updated to send the send user privileges as well.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to