// Module included in the following assemblies:
//
// assembly-securing-kafka-clients.adoc

[id='con-securing-client-acls-{context}']
= Defining ACL rules

[role="_abstract"]
The `simple` authorization mechanism uses ACL rules to manage access to Kafka brokers.
Enabling `simple` authorization for a Kafka cluster means access is denied unless explicit ACL rules are configured in the `KafkaUser` resource.
ACL rules define access rights for users, which you specify using the `acls` property.

.Example user with ACL rules configuration
[source,yaml,subs="+attributes"]
----
apiVersion: {KafkaUserApiVersion}
kind: KafkaUser
metadata:
  name: my-user
  labels:
    strimzi.io/cluster: my-cluster
spec:
  authentication:
    type: tls
  authorization:
    type: simple
    acls:
      - resource: # <1>
          type: topic
          name: my-topic
          patternType: literal
        operations: # <2>
          - Describe
          - Read
      - resource:
          type: group
          name: my-group
          patternType: literal
        operations:
          - Read
----
<1> Defines the Kafka resource type to which the ACL rules apply, such as `topic` or `group`, the name of the resource, and how the name is matched by `patternType`.
<2> Specifies the operations, such as `Describe`, `Read`, that the user is allowed to perform on the resource.

For more information about the `AclRule` object and the properties used to configure ACLs, see the link:{BookURLConfiguring}#type-AclRule-reference[`AclRule` schema reference^].
