OmniaGM commented on code in PR #24340:
URL: https://github.com/apache/kafka/pull/24340#discussion_r4668443255
##########
clients/src/main/java/org/apache/kafka/common/resource/ResourceType.java:
##########
@@ -66,7 +66,12 @@ public enum ResourceType {
/**
* A user principal
*/
- USER((byte) 7);
+ USER((byte) 7),
+
+ /**
+ * A cluster mirror.
+ */
+ CLUSTER_MIRROR((byte) 8);
Review Comment:
I think `AclEntry::supportedOperations` and `AclEntry::authorizationError`
also need a `CLUSTER_MIRROR` case, otherwise they throw Not a concrete resource
type / Authorization error type not known as soon as `AuthHelper `(e.g.
`includeAuthorizedOperations` in DescribeClusterMirrors) or `AclCommand` uses
the new type. From the KIP's ACL tables the supported operations would be
`READ`, `CREATE`, `ALTER`, `DELETE`, `DESCRIBE`, `ALTER_CONFIGS`,
`DESCRIBE_CONFIGS`, and the error `CLUSTER_MIRROR_AUTHORIZATION_FAILED`. Could
we add them here, with a small test? WDYT?
--
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]