scholzj/strimzi-training

Lab 1 missing permissions for kafka user or create new file instead

Opened this issue · 0 comments

diff --git a/lab-1/examples/user/kafka-user.yaml b/lab-1/examples/user/kafka-user.yaml
index 88edef5..261e13d 100644
--- a/lab-1/examples/user/kafka-user.yaml
+++ b/lab-1/examples/user/kafka-user.yaml
@@ -1,9 +1,43 @@
 apiVersion: kafka.strimzi.io/v1alpha1
 kind: KafkaUser
 metadata:
-  name: my-connect
+  name: my-user
   labels:
     strimzi.io/cluster: my-cluster
 spec:
   authentication:
     type: tls
+  authorization:
+    type: simple
+    acls:
+      - resource:
+          type: topic
+          name: my-topic
+          patternType: literal
+        operation: Read
+      - resource:
+          type: topic
+          name: my-topic
+          patternType: literal
+        operation: Describe
+      - resource:
+          type: group
+          name: my-group
+          patternType: literal
+        operation: Read
+      - resource:
+          type: group
+          name: my-group
+          patternType: literal
+        operation: Describe
+      - resource:
+          type: topic
+          name: my-topic
+          patternType: literal
+        operation: Write
+      - resource:
+          type: topic
+          name: my-topic
+          patternType: literal
+        operation: Create
+