You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Chia-Ping Tsai (Jira)" <ji...@apache.org> on 2025/01/07 19:24:00 UTC

[jira] [Commented] (KAFKA-18440) Admin does not convert the AuthorizationException to fatal error in using bootstrap controllers

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

Chia-Ping Tsai commented on KAFKA-18440:
----------------------------------------

we should convert the authorized exception to fatal error, so users can see the true exception rather than timeout exception.

> Admin does not convert the AuthorizationException to fatal error in using bootstrap controllers
> -----------------------------------------------------------------------------------------------
>
>                 Key: KAFKA-18440
>                 URL: https://issues.apache.org/jira/browse/KAFKA-18440
>             Project: Kafka
>          Issue Type: Bug
>            Reporter: Chia-Ping Tsai
>            Assignee: Chia-Ping Tsai
>            Priority: Blocker
>             Fix For: 4.0.0
>
>
> Admin use DescribeClusterRequest to build metadata when using bootstrap controllers, and controller APIs may return ClusterAuthorizationException when users have no "ALTER" permission (see https://github.com/apache/kafka/pull/14306#discussion_r1312367762). 
> However, admin does not convert the authorized exception to fatal exception (https://github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/clients/admin/internals/AdminMetadataManager.java#L276), so it keeps sending the request to controller until timeout.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)