此内容没有您所选择的语言版本。
Chapter 119. AclRule schema reference
Used in: KafkaUserAuthorizationSimple
Full list of AclRule schema properties
Configures access control rules for a KafkaUser when brokers are using simple authorization.
Example KafkaUser configuration with simple authorization
Use the resource property to specify the resource that the rule applies to.
Simple authorization supports four resource types, which are specified in the type property:
-
Topics (
topic) -
Consumer Groups (
group) -
Clusters (
cluster) -
Transactional IDs (
transactionalId)
For Topic, Group, and Transactional ID resources you can specify the name of the resource the rule applies to in the name property.
Cluster type resources have no name.
A name is specified as a literal or a prefix using the patternType property.
-
Literal names are taken exactly as they are specified in the
namefield. -
Prefix names use the
namevalue as a prefix and then apply the rule to all resources with names starting with that value.
When patternType is set as literal, you can set the name to * to indicate that the rule applies to all resources.
For more details about simple authorization, ACLs, and supported combinations of resources and operations, see Authorization and ACLs.
119.1. AclRule schema properties 复制链接链接已复制到粘贴板!
| Property | Property type | Description |
|---|---|---|
| type | string (one of [allow, deny]) |
The type of the rule. Currently the only supported type is |
| resource |
| Indicates the resource for which given ACL rule applies. |
| host | string |
The host from which the action described in the ACL rule is allowed or denied. If not set, it defaults to |
| operation | string (one of [Read, Write, Delete, Alter, Describe, All, IdempotentWrite, ClusterAction, Create, AlterConfigs, DescribeConfigs]) |
The |
| operations | string (one or more of [Read, Write, Delete, Alter, Describe, All, IdempotentWrite, ClusterAction, Create, AlterConfigs, DescribeConfigs]) array | List of operations to allow or deny. Supported operations are: Read, Write, Create, Delete, Alter, Describe, ClusterAction, AlterConfigs, DescribeConfigs, IdempotentWrite and All. Only certain operations work with the specified resource. |