How to grant a user to access more resource? #5151
barryzhounb
started this conversation in
General
Replies: 1 comment 1 reply
-
No, you have to add the whole block multiple times: apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaUser
metadata:
labels:
strimzi.io/cluster: my-cluster
name: my-user-1
spec:
authentication:
type: tls
authorization:
acls:
- host: '*'
operation: All
resource:
name: my-topic-1
patternType: literal
type: topic
type: allow
- host: '*'
operation: All
resource:
name: my-topic-2
patternType: literal
type: topic
type: allow
- host: '*'
operation: All
resource:
name: my-group-1
patternType: literal
type: group
type: allow
- host: '*'
operation: All
resource:
name: my-group-2
patternType: literal
type: group
type: allow
- host: '*'
operation: All
resource:
type: cluster
type: allow
type: simple Or you can also use the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Suppose I have the following user definition: my-user-1 has permission to access my-topic-1 and my-group-1.
Now I want to grant my-user-1 to access one more topic and one group. Could I change it as
Does it work for this change?
Beta Was this translation helpful? Give feedback.
All reactions