kafka/checkstyle
Dongnuo Lyu 36f19057e1
KAFKA-18813: ConsumerGroupHeartbeat API and ConsumerGroupDescribe API must check topic describe (#18989)
This patch filters out the topic describe unauthorized topics from the
ConsumerGroupHeartbeat and ConsumerGroupDescribe response.

In ConsumerGroupHeartbeat, 
- if the request has `subscribedTopicNames` set, we directly check the
authz in `KafkaApis` and return a topic auth failure in the response if
any of the topics is denied.
- Otherwise, we check the authz only if a regex refresh is triggered and
we do it based on the acl of the consumer that triggered the refresh. If
any of the topic is denied, we filter it out from the resolved
subscription.

In ConsumerGroupDescribe, we check the authz of the coordinator
response. If any of the topic in the group is denied, we remove the
described info and add a topic auth failure to the described group.
(similar to the group auth failure)

Reviewers: David Jacot <djacot@confluent.io>, Lianet Magrans
<lmagrans@confluent.io>, Rajini Sivaram <rajinisivaram@googlemail.com>,
Chia-Ping Tsai <chia7712@gmail.com>, TaiJuWu <tjwu1217@gmail.com>,
TengYao Chi <kitingiao@gmail.com>
2025-02-26 13:05:36 -05:00
..
.scalafmt.conf MINOR: Update to Scala 2.13.12 (#14430) 2023-09-24 06:05:12 -07:00
checkstyle.xml KAFKA-18050 Upgrade the checkstyle version to 10.20.2 (#17999) 2024-12-05 10:59:18 +08:00
import-control-coordinator-common.xml KAFKA-18813: ConsumerGroupHeartbeat API and ConsumerGroupDescribe API must check topic describe (#18989) 2025-02-26 13:05:36 -05:00
import-control-core.xml KAFKA-17836 Move RackAwareTest to server module (#19021) 2025-02-25 18:15:34 +08:00
import-control-examples.xml KAFKA-18658 add import control for examples module (#18812) 2025-02-11 06:07:40 +08:00
import-control-group-coordinator.xml KAFKA-18813: ConsumerGroupHeartbeat API and ConsumerGroupDescribe API must check topic describe (#18989) 2025-02-26 13:05:36 -05:00
import-control-jmh-benchmarks.xml KAFKA-17569 Rewrite TestLinearWriteSpeed by Java (#17736) 2024-11-26 23:43:01 +08:00
import-control-metadata.xml KAFKA-17587 Refactor test infrastructure (#18602) 2025-01-24 09:03:43 -05:00
import-control-server-common.xml KAFKA-17587 Refactor test infrastructure (#18602) 2025-01-24 09:03:43 -05:00
import-control-server.xml KAFKA-18728 Move ListOffsetsPartitionStatus to server module (#18807) 2025-02-13 10:36:46 +05:30
import-control-share-coordinator.xml KAFKA-18813: ConsumerGroupHeartbeat API and ConsumerGroupDescribe API must check topic describe (#18989) 2025-02-26 13:05:36 -05:00
import-control-storage.xml KAFKA-14484: Move UnifiedLog static methods to storage (#18039) 2025-02-11 09:55:32 +01:00
import-control-test-common-internal-api.xml KAFKA-17587 Refactor test infrastructure (#18602) 2025-01-24 09:03:43 -05:00
import-control-test-common-runtime.xml KAFKA-17587 Refactor test infrastructure (#18602) 2025-01-24 09:03:43 -05:00
import-control-test-common-util.xml KAFKA-17587 Refactor test infrastructure (#18602) 2025-01-24 09:03:43 -05:00
import-control-transaction-coordinator.xml KAFKA-17587 Refactor test infrastructure (#18602) 2025-01-24 09:03:43 -05:00
import-control.xml KAFKA-18483 Disable `Log4jController` and `Loggers` if Log4j Core absent (#18496) 2025-02-07 00:04:33 +08:00
java.header MINOR: improve license header check by providing head file instead of (prefix) header regex 2017-02-28 12:35:04 -08:00
suppressions.xml KAFKA-18614, KAFKA-18613: Add streams group request plumbing (#18979) 2025-02-26 16:33:26 +01:00