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

Hari Sekhon updated RANGER-2488:
--------------------------------
    Description: 
In a kerberized environment with Ranger, Kafka client is unable to list 
consumer groups to iterate over if the user only has Describe permission on 
their own topics rather than on all topics.
{code:java}
/usr/hdp/current/kafka-broker/bin/kafka-consumer-groups.sh --bootstrap-server 
<fqdn> --list{code}
It ends up with a blank output instead of the list of consumer groups.

If you then grant Describe permission to all topics, that command then gives 
you a list of consumer groups as expected.

I believe Kafka permissions have been improved to be more granular in 
KAFKA-6058.

Ranger needs to be updated to reflect these more granular Kafka permissions to 
allow listing consumer groups without having to also have describe permissions 
to all topics.

Interestingly I can still describe a consumer group after I have revoked my own 
permissions and agent policy has been updated if I know the name of the 
consumer group, but it omits the topic for which I no longer have permission.
{code:java}
/usr/hdp/current/kafka-broker/bin/kafka-consumer-groups.sh --bootstrap-server 
<fqdn> --describe --group <custom>.<custom>{code}

  was:
In a kerberized environment, Kafka client is unable to list consumer groups to 
iterate over if the user only has Describe permission on their own topics 
rather than on all topics.
{code:java}
/usr/hdp/current/kafka-broker/bin/kafka-consumer-groups.sh --bootstrap-server 
<fqdn> --list{code}
It ends up with a blank output instead of the list of consumer groups.

If you then grant Describe permission to all topics, that command then gives 
you a list of consumer groups as expected.

I believe Kafka permissions have been improved to be more granular in 
KAFKA-6058.

Ranger needs to be updated to reflect these more granular Kafka permissions.

Interestingly I can still describe a consumer group after I have revoked my own 
permissions and agent policy has been updated if I know the name of the 
consumer group, but it omits the topic for which I no longer have permission.
{code:java}
/usr/hdp/current/kafka-broker/bin/kafka-consumer-groups.sh --bootstrap-server 
<fqdn> --describe --group <custom>.<custom>{code}


> Ranger Kafka list consumer groups permission
> --------------------------------------------
>
>                 Key: RANGER-2488
>                 URL: https://issues.apache.org/jira/browse/RANGER-2488
>             Project: Ranger
>          Issue Type: Bug
>          Components: plugins, Ranger
>    Affects Versions: 0.7.0
>         Environment: HDP 2.6.5 + Kerberos
>            Reporter: Hari Sekhon
>            Priority: Major
>
> In a kerberized environment with Ranger, Kafka client is unable to list 
> consumer groups to iterate over if the user only has Describe permission on 
> their own topics rather than on all topics.
> {code:java}
> /usr/hdp/current/kafka-broker/bin/kafka-consumer-groups.sh --bootstrap-server 
> <fqdn> --list{code}
> It ends up with a blank output instead of the list of consumer groups.
> If you then grant Describe permission to all topics, that command then gives 
> you a list of consumer groups as expected.
> I believe Kafka permissions have been improved to be more granular in 
> KAFKA-6058.
> Ranger needs to be updated to reflect these more granular Kafka permissions 
> to allow listing consumer groups without having to also have describe 
> permissions to all topics.
> Interestingly I can still describe a consumer group after I have revoked my 
> own permissions and agent policy has been updated if I know the name of the 
> consumer group, but it omits the topic for which I no longer have permission.
> {code:java}
> /usr/hdp/current/kafka-broker/bin/kafka-consumer-groups.sh --bootstrap-server 
> <fqdn> --describe --group <custom>.<custom>{code}



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

Reply via email to