[ https://issues.apache.org/jira/browse/SENTRY-2257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16502164#comment-16502164 ]
kalyan kumar kalvagadda edited comment on SENTRY-2257 at 6/5/18 5:34 PM: ------------------------------------------------------------------------- Here is the approach. There are two new API's that are exposed. # To list the owner privileges granted to an authorizable # update the owner privilege to new owner Here is the Flow. # SentryPolicyStoreProcessor would first get the list of privileges that are to be revoked. # Using the list of privileges that are to be revoked, list of PermissionsUpdate is generated using SentryPlug-in # SentryPolicyStoreProcessor would then use the new API to update the owner privileges. This way all the updated listed below happen in the same transaction # Revoking the exixting owner privilage for authorizable # Granting new owner privilege fot authorizable. # Adding delta update for owner privilege revoked # Adding delta update for owner privilege granted. was (Author: kkalyan): Here is the approach. There are two new API's that are exposed. # To list the owner privileges granted to an authorizable # update the owner privilege to new owner Here is the Flow. # SentryPolicyStoreProcessor would first get the list of privileges that are to be revoked. # Using the list of privileges that are to be revoked, list of PermissionsUpdate is generated using SentryPlug-in # SentryPolicyStoreProcessor would then use the new API to update the owner privileges. > Implement Sentry store API's to update owner privilege on a authorizable > ------------------------------------------------------------------------ > > Key: SENTRY-2257 > URL: https://issues.apache.org/jira/browse/SENTRY-2257 > Project: Sentry > Issue Type: Bug > Components: Sentry > Affects Versions: 2.1.0 > Reporter: kalyan kumar kalvagadda > Assignee: kalyan kumar kalvagadda > Priority: Major > Fix For: 2.1.0 > > Attachments: SENTRY-2257.001.patch, SENTRY-2257.002.patch > > > Implement functionality in sentry store to update owner privilege on an > authorizable. -- This message was sent by Atlassian JIRA (v7.6.3#76005)