dengziming commented on code in PR #12103:
URL: https://github.com/apache/kafka/pull/12103#discussion_r860398065
##########
shell/src/main/java/org/apache/kafka/shell/MetadataNodeManager.java:
##########
@@ -333,6 +339,34 @@ private void handleCommitImpl(MetadataRecordType type,
ApiMessage message)
producerIds.create("nextBlockStartId").setContents(record.nextProducerId() +
"");
break;
}
+ case ACCESS_CONTROL_ENTRY_RECORD: {
+ AccessControlEntryRecord record = (AccessControlEntryRecord)
message;
+ DirectoryNode acls = data.root.mkdirs("acl").mkdirs("id");
+ FileNode file = acls.create(record.id().toString());
Review Comment:
Just as KIP-778 described, each ACL is shown in /acl/id/<uuid> in its JSON
form. however, I should mention here that their schema in ZkNode is more
hierarchical:
```
get /kafka/kafka-acl/${resourceType}/${resourceName}
{
"version":1,
"acls":[
{
"principal":"User:kafka",
"permissionType":"Allow",
"operation":"Read",
"host":"1.1.1.1"
}
]
}
```
--
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]