sentry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Romain Rigaux (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SENTRY-1000) list_sentry_privileges_by_role could list privileges created by either API v1 or v2
Date Thu, 07 Jan 2016 19:36:40 GMT

     [ https://issues.apache.org/jira/browse/SENTRY-1000?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Romain Rigaux updated SENTRY-1000:
----------------------------------
    Description: 

V2
Thrift call: <class 'sentry_generic_policy_service.SentryGenericPolicyService.Client'>.list_sentry_privileges_by_role(args=(TListSentryPrivilegesRequest(component=u'hive',
requestorUserName=u'romain', serviceName=u'server1', roleName=u'test', protocol_version=2,
authorizables=None),), kwargs={})

Thrift call <class 'sentry_generic_policy_service.SentryGenericPolicyService.Client'>.list_sentry_privileges_by_role
returned in 7ms: TListSentryPrivilegesResponse(status=TSentryResponseStatus(message='', stack=None,
value=0), privileges=set([]))


V1
Thrift call: <class 'sentry_policy_service.SentryPolicyService.Client'>.list_sentry_privileges_by_role(args=(TListSentryPrivilegesRequest(authorizableHierarchy=None,
protocol_version=2, roleName=u'test', requestorUserName=u'romain'),), kwargs={})

Thrift call <class 'sentry_policy_service.SentryPolicyService.Client'>.list_sentry_privileges_by_role
returned in 5ms: TListSentryPrivilegesResponse(status=TSentryResponseStatus(message='', stack=None,
value=0), privileges=set([TSentryPrivilege(grantOption=0, serverName='server1', tableName='',
privilegeScope='DATABASE', createTime=1452130867207, URI='', columnName='', action='insert',
dbName='default')]))


  was:


V2
Thrift call: <class 'sentry_generic_policy_service.SentryGenericPolicyService.Client'>.list_sentry_privileges_by_role(args=(TListSentryPrivilegesRequest(component=u'hive',
requestorUserName=u'romain', serviceName=u'server1', roleName=u'test', protocol_version=2,
authorizables=None),), kwargs={})

Thrift call <class 'sentry_generic_policy_service.SentryGenericPolicyService.Client'>.list_sentry_privileges_by_role
returned in 7ms: TListSentryPrivilegesResponse(status=TSentryResponseStatus(message='', stack=None,
value=0), privileges=set([]))


V1
Thrift call: <class 'sentry_policy_service.SentryPolicyService.Client'>.list_sentry_privileges_by_role(args=(TListSentryPrivilegesRequest(authorizableHierarchy=None,
protocol_version=2, roleName=u'test', requestorUserName=u'romain'),), kwargs={})

Thrift call <class 'sentry_policy_service.SentryPolicyService.Client'>.list_sentry_privileges_by_role
returned in 5ms: TListSentryPrivilegesResponse(status=TSentryResponseStatus(message='', stack=None,
value=0), privileges=set([TSentryPrivilege(grantOption=0, serverName='server1', tableName='',
privilegeScope='DATABASE', createTime=1452130867207, URI='', columnName='', action='insert',
dbName='default')]))


     Issue Type: Improvement  (was: Bug)
        Summary: list_sentry_privileges_by_role could list privileges created by either API
v1 or v2  (was: list_sentry_privileges_by_role in API v2 does not return any privileges)

he V1 and V2 APIs are currently independent. That means if you a privilege using the V1 API,
you will be able to list them using the V1 API. If you create them using the V2 API you can
list them with the V2 API. You cannot list V1 privileges using the V2 APIs at this time. This
is something we may support in the future. 

> list_sentry_privileges_by_role could list privileges created by either API v1 or v2
> -----------------------------------------------------------------------------------
>
>                 Key: SENTRY-1000
>                 URL: https://issues.apache.org/jira/browse/SENTRY-1000
>             Project: Sentry
>          Issue Type: Improvement
>            Reporter: Romain Rigaux
>
> V2
> Thrift call: <class 'sentry_generic_policy_service.SentryGenericPolicyService.Client'>.list_sentry_privileges_by_role(args=(TListSentryPrivilegesRequest(component=u'hive',
requestorUserName=u'romain', serviceName=u'server1', roleName=u'test', protocol_version=2,
authorizables=None),), kwargs={})
> Thrift call <class 'sentry_generic_policy_service.SentryGenericPolicyService.Client'>.list_sentry_privileges_by_role
returned in 7ms: TListSentryPrivilegesResponse(status=TSentryResponseStatus(message='', stack=None,
value=0), privileges=set([]))
> V1
> Thrift call: <class 'sentry_policy_service.SentryPolicyService.Client'>.list_sentry_privileges_by_role(args=(TListSentryPrivilegesRequest(authorizableHierarchy=None,
protocol_version=2, roleName=u'test', requestorUserName=u'romain'),), kwargs={})
> Thrift call <class 'sentry_policy_service.SentryPolicyService.Client'>.list_sentry_privileges_by_role
returned in 5ms: TListSentryPrivilegesResponse(status=TSentryResponseStatus(message='', stack=None,
value=0), privileges=set([TSentryPrivilege(grantOption=0, serverName='server1', tableName='',
privilegeScope='DATABASE', createTime=1452130867207, URI='', columnName='', action='insert',
dbName='default')]))



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message