You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@sentry.apache.org by "Hadoop QA (JIRA)" <ji...@apache.org> on 2019/07/03 11:06:00 UTC

[jira] [Commented] (SENTRY-2276) Sentry-Kafka integration does not support Kafka's Alter/DescribeConfigs and IdempotentWrite operations

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

Hadoop QA commented on SENTRY-2276:
-----------------------------------

Here are the results of testing the latest attachment
https://issues.apache.org/jira/secure/attachment/12973538/SENTRY-2276.002.patch against master.

{color:red}Overall:{color} -1 due to 2 errors

{color:red}ERROR:{color} mvn test exited 1
{color:red}ERROR:{color} Failed: org.apache.sentry.kafka.authorizer.SentryKafkaAuthorizerTest

Console output: https://builds.apache.org/job/PreCommit-SENTRY-Build/4425/console

This message is automatically generated.

> Sentry-Kafka integration does not support Kafka's Alter/DescribeConfigs and IdempotentWrite operations
> ------------------------------------------------------------------------------------------------------
>
>                 Key: SENTRY-2276
>                 URL: https://issues.apache.org/jira/browse/SENTRY-2276
>             Project: Sentry
>          Issue Type: Bug
>          Components: kafka-integration
>         Environment: Cloudera's Kafka (CDK 3.1.0) and Sentry Distribution, as included with CDH 5.13
>            Reporter: Julian Eberius
>            Assignee: Gergo Wilder
>            Priority: Minor
>         Attachments: SENTRY-2276.002.patch
>
>
> When sending AlterConfigs or DescribeConfigs requests using Kafka's AdminClient class to a Sentry-enabled Kafka broker, I noticed that the request would fail on the broker side with a NullPointerException in ResourceAuthorizationProvider::buildPermissions, the action being null.
> However, other requests, such as DescribeTopics, would work fine. I discovered that these request type are not covered in Sentry's [KafkaActionFactory|https://github.com/apache/sentry/blob/branch-2.0/sentry-core/sentry-core-model-kafka/src/main/java/org/apache/sentry/core/model/kafka/KafkaActionFactory.java] which leads to null values being returned as Actions, e.g., from getActionByName.
> Sentry's Kafka binding does not support the following actions that are defined by Kafka's authorization model:
>  * AlterConfigs
>  * DescribeConfigs
>  * IdempotentWrite
> It does not support the TransactionalId authorizable resource either that is required for using Kafka's transactional capabilities in combination with Sentry authorizer.
>  



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