Icewind52 commented on PR #24340: URL: https://github.com/apache/kafka/pull/24340#issuecomment-7090789250
Hi @fvaleri, this adds ResourceType.CLUSTER_MIRROR((byte) 8) as specified in KIP-1279. A couple of questions before this is ready: 1. ACL RPC versions. When USER was added for KIP-373 (#10738), CreateAcls/DescribeAcls/DeleteAcls were bumped from v2 to v3 with the comment "Version 3 adds user resource type", although KIP-373 didn't specify it and no code checks the version against the resource type. Should we do the same (v4) for CLUSTER_MIRROR, or isn't it needed here? 2. AclEntry.supportedOperations. Should I add CLUSTER_MIRROR to AclEntry.supportedOperations in this PR (Read, Create, Alter, Delete, Describe, AlterConfigs, DescribeConfigs, per the KIP's permission table), or leave it for the kafka-acls.sh task? authorizationError would wait for the CLUSTER_MIRROR_AUTHORIZATION_FAILED error code, which is still TBD in the KIP. Additionally, Like other new resource types, CLUSTER_MIRROR ACLs show as UNKNOWN if the software is rolled back to a version without it, and are lost after re-upgrading if a snapshot was taken in between. Same behavior as when USER was added. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
