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

Sergio Peña commented on SENTRY-2154:
-------------------------------------

I see the same circular dependency with roles and dependencies

privileges->roles->privileges
{noformat}
MSentryPrivilege {
  Set<MSentryRole> roles;
}

MSentryRole {
  Set<MSentryPrivilege> privileges;
  Set<MSentryUser> users;
}{noformat}
How does DN work differently between these two JDO objects? 

privileges->roles->users->privileges?
{noformat}
MSentryPrivilege {
  Set<MSentryRole> roles;
}

MSentryRole {
  Set<MSentryPrivilege> privileges;
  Set<MSentryUser> users;
}

MSentryUser {
  Set<MSentryPrivilege> privileges;
  Set<MSentryRole> roles;
}{noformat}

> Update schema to grant privileges to user
> -----------------------------------------
>
>                 Key: SENTRY-2154
>                 URL: https://issues.apache.org/jira/browse/SENTRY-2154
>             Project: Sentry
>          Issue Type: Sub-task
>          Components: Sentry
>    Affects Versions: 2.1.0
>            Reporter: Na Li
>            Priority: Major
>             Fix For: 2.1.0
>
>
> Need to add new DB table to support grant user to privileges
> Also, a flag should be added in privilege table to indicate the privilege is 
> created by user, or created by sentry implicitly. User can view the implicit 
> privileges, but cannot change it directly



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

Reply via email to