Closed carloshn90 closed 4 years ago
The KafkaUser CRs look good at a quick glance. But in the Kafka CR, you do not enable authorization, so the ACLs you configure in the KafkaUser resources are not enforced. You will need to add the authorization:
authorization:
type: simple
For example:
entityOperator:
topicOperator: {}
userOperator: {}
kafka:
config:
log.retention.hours: 24
offsets.topic.replication.factor: 1
transaction.state.log.min.isr: 1
transaction.state.log.replication.factor: 1
listeners:
external:
authentication:
type: scram-sha-512
overrides:
bootstrap:
host: >-
cluster-url
brokers:
- broker: 0
url-broker
tls: true
type: route
authorization:
type: simple
metrics: {}
replicas: 1
storage:
type: ephemeral
zookeeper:
replicas: 1
storage:
type: ephemeral
Thank you @scholzj! you are totally correct I forgot to add the authorization into the kafka configuration. Sorry for this silly question!
No worries.
I would like to know if will be possible create different users and asign different topics to each user.
I created two users through kafkauser:
First user:
Second user:
kafka set up:
The problem here it is that I can access to all the topics using both users, describe them and send messages.
I'm using the following properties to connect:
Is it possible to use Acls to have different users with different levels of access topics?
Is it necessary to set up something else in the cluster to use Acls apart of the kafkauser?